Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Matt Brailsford 4125 posts 22222 karma points MVP 9x c-trib
    May 19, 2010 @ 16:34
    Matt Brailsford
    0

    Integrating PayPal

    Hi Guys (More specificaly Soren ;)

    I've managed to figure out how everthing peices together to create an order and am putting together a PayPal PaymentMethodService. From what I can gather, what I should be doing is creating a RequestPayment which redirects to PayPal for them to process payment. Now, there are just a couple of things I nee to clarify.

    PayPal offers an Instant Payment Notification service, which can call a webpage on your site to notify it of payment, so I was thinking that as suggested in the docs, to create a HTTPHandler to handle this and to update the order. My question is, how far should this handler go? Would you be calling the SubmitBasket method on the CheckoutService at this point? Or just update status and any transaction ID? And if the later, when would you call SubmitBasket? as the user may not actualy come back to the site, which would mean, the order would effectivley be lost on the system.

    What do you recommend?

    Matt

  • Søren Spelling Lund 1797 posts 2786 karma points
    May 19, 2010 @ 19:33
    Søren Spelling Lund
    0

    I often go with the option of creating the order before requesting payment and then just setting a status on it afterwards as it makes the easier to support multi payment scenarios.

  • Matt Brailsford 4125 posts 22222 karma points MVP 9x c-trib
    May 19, 2010 @ 19:42
    Matt Brailsford
    0

    Ahhhh, ok, so you don't have to do them in the order laod out in the demo.

    So, I should just be able to have the user to confirm the order, then redirect to paypal.

    Cool

    Cheers

    Matt

  • Matt Brailsford 4125 posts 22222 karma points MVP 9x c-trib
    May 20, 2010 @ 09:59
    Matt Brailsford
    0

    Hi Soren,

    When you say "creating the order before requesting payment", do you mean you call CheckoutService().SubmitBasket? Or do you manualy create the order? And call SubmitBasket later on?

    Cheers

    Matt

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jun 03, 2010 @ 09:24
    Søren Spelling Lund
    0

    You have to do CreatePayment before running CheckoutService().SubmitBasket as this call promote your basket to an order, which means the basket will no longer be available for adding new payments.

    I'm working on refining this to enable splitting creating and requesting payments where they are just one call today.

Please Sign in or register to post replies

Write your reply to:

Draft