Hello,

Instead of total price I see "You'll be able to see your order details before you pay". I have checked x.com and seems problem that URL should contain useraction=commit parameter.

  header('Location: https://www.'. $sandbox .'paypal.com/cgi-bin/webscr?cmd=_express-checkout&useraction=commit&token='. $_SESSION['TOKEN']);

Is there any reasons why we cant use this parameter? Maybe it somehow related with discount calculations?

Thanks,
Vadim

Comments

longwave’s picture

This is by design, as shipping costs and taxes depend on the billing and delivery addresses, which are not available until the user has returned from PayPal.

I guess this could be added as an option for stores where the cart price will always be the final price paid and the final review page can be skipped.

vadim.eremeev’s picture

Yeah would be good to have an option to choose display or not display total price. We would like to display total price for our customers. What do you think can I put useraction=commit to URL safety or do I need to do any validations before?

Thanks,
Vadim

aaronbauman’s picture

Version: 6.x-2.6 » 6.x-2.x-dev
Status: Active » Needs review
StatusFileSize
new1.64 KB

Here's a patch that creates a new setting, "Enable the order price on the Review payment page.", under EC settings at admin/store/settings/payment/edit/gateways
If checked, this option will add the commit=action param to the paypal url so that the payment amount is displayed on paypal.com and the user has a reminder of how much their in for.
Patched against an old version, but will hopefully apply to head with fuzz.

longwave’s picture

Status: Needs review » Closed (duplicate)

This is actually a duplicate of #898680: PayPal Express checkout review should be optional/not used if the form is empty?. The patch here is not always suitable, as noted in #1