brnt
brnt

Reputation: 108

PayPal Express Checkout apply shipping costs after SetExpressCheckout call

I'm currenty implementing In-Context PayPal Express Checkout on our own e-commerce site. The flow I follow is this:

  1. Cart
  2. Redirect to PayPal
  3. Login, select shipping address and confirm
  4. Get back to e-commerce
  5. Get buyer's shipping address
  6. Choose a shipping option
  7. Show order summary, confirm order and DoExpressCheckoutPayment

My questions are:

I include the shipping costs in DoExpressCheckoutPayment call, but not in SetExpressCheckout and payments are completed(on sandbox at least). Are there any limitations/problems to that?

It bugs me that the In-Context popup says Pay Now before the user has chosen shipping option on our site and seen the complete summary of his/her order. Is there any way to change that text? Maybe something I need to pass with the call?

Maybe there's something I'm missing on how Express Checkout works?

Thanks!

Upvotes: 1

Views: 1844

Answers (1)

geewiz
geewiz

Reputation: 2206

This is exactly how EC is designed to be used. PayPal expects that final amount may not be the same as the initial amount. If it's within 20% things will essentially always work; if the cart value changes a lot (e.g. you upsell someone to add more goods into the purchase) then it's possible (rare, but possible) that the initial authorization won't stretch to the new value; in that case you can usually send them back to PayPal to re-authorize the higher amount.

As for the action button, I'm surprised that it says Pay Now; it normally says something like "Continue" unless you have turned on the feature to have the payment made immediately at PayPal rather than using DoEC. But the text of this button is not directly under your control; maybe PayPal has changed it because they did some user testing and found higher conversion rates? Not sure.

Upvotes: 2

Related Questions