Reputation: 18680
I'm trying to use PP Express Checkout Flow on my website to sell items through PayPal and I use this wizard, but I have some doubts around the process itself. I'll explain what I did and then ask for doubts.
Now in expresscheckout.php
they call the method CallShortcutExpressCheckout()
which call inside SetExpressCheckout
. With just that piece of code and without doing anything with code from point 4, 5 and 6 step the application redirects to PayPal and aparently did something in Sandbox but when I call the method GetExpressCheckoutDetails()
I get PaymentActionNotInitiated
in CHECKOUTSTATUS
so transaction wasn't made. Then,
SetExpressCheckout
guide me through PayPal directly and not through the wizard? Upvotes: 1
Views: 697
Reputation: 1945
This page has a diagram that may help you visualize how the flow was intended to work: https://developer.paypal.com/docs/classic/express-checkout/gs_expresscheckout/ it illustrates 3 API calls, the SetExpressCheckout is called to set up the transaction and define the URL to which the customer is returned after the customer authorizes payment. The GetExpressCheckoutDetails call to get customer shipping info so you can calculate tax and shipping information to display to customer for final approval. Then, DoExpressCheckoutPayment is called to complete the transaction.
Upvotes: 2
Reputation: 6463
Basically, after the setexprescheckout
you need to do DoExpressCheckout in order to complete the payment.
Upvotes: 0