PayPal Express Checkout - how to properly capture shipping address (for shipping costs calculations)?

StackOverflow https://stackoverflow.com/questions/10524599

Question

I need to capture buyer's shipping address BEFORE going to paypal express checkout so I can properly estimate shipping costs. As far as I understand, I need to use "Payment Flow" option of express checkout - pls go to https://www.paypal-labs.com/integrationwizard/ecpaypal/intro.php and click on "Payment Flow" tab to see it.

Question is: if I have "Checkout with PayPal" button on the shopping cart screen (first one) and user clicks it - then user will NOT be redirected to PayPal page but instead will go to "Enter your shipping address" page on my website. And only after that user will redirected to the PayPal page. I think it's confusing and probably violation of PayPal rules. Am I right? How the correct workflow should look like in this case?

Thank you.

Was it helpful?

Solution

I think I found the answer - in order to provide shipping costs options based on user's shipping address, Instant Update API should be used. That will be a webservice call on your server from PayPal with buyer's selected address.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top