سؤال

In our scenario, we will use PayPal Express Checkout for Payflow Pro (important as it's different from PayPal Express Checkout).

Based on documentation, https://www.paypalobjects.com/webstatic/en_US/developer/docs/pdf/pfp_expresscheckout_pp.pdf, we have to provide shipping and tax values prior to knowing customer's Shipping Address.

I think it's not practical at all, so my question - Is it possible to Update (SetExpressCheckout with existing token) shipping/tax amount after address is chosen? Or somehow update (aka Instant Updates) shipping/tax values on PayPal pages?

Also if customer will go back to shopping cart page and add/remove products should customer go back to Paypal pages or we can only update Item Information and DoExpressCheckout with new amount?

Thanks, Stas

هل كانت مفيدة؟

المحلول

The usual, most general-purpose recommended EC flow is:

  1. Customer is on "View Cart" page and clicks the Checkout with PayPal button without having entered any address or other information into your site
  2. SetEC with provisional shipping/tax amounts (could be 0)
  3. Redirect customer to PayPal site
  4. Customer chooses shipping address at PayPal and returns
  5. GetEC to find out their selected address for the first time
  6. Calculate any new shipping or tax and display summary on an "order review" type page (which could allow them to select from multiple shipping options, like air/ground, if applicable)
  7. When the customer clicks a final "Place Order" sort of button, DoEC with the updated shipping and tax amounts.

Caveat: by default the total amount of the DoEC must be within 115% or $75 of the original SetEC amount, whichever is lesser. So if any of your pricing scenarios will exceed that threshold, the original SetEC should include some placeholder Shipping and Tax amounts, so that the final total is within 115%/$75.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top