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
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | payapl-show-payment-amount-1304604.patch | 1.64 KB | aaronbauman |
Comments
Comment #1
longwaveThis 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.
Comment #2
vadim.eremeev commentedYeah 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
Comment #3
aaronbaumanHere'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.
Comment #4
longwaveThis 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