2
votes

On my Magento store I have a problem with PayPal. Magento is not redirecting PayPal payments to the mobile PayPal template if the customer is using a mobile phone or tablet. I contacted PayPal and they let me know that the variable "discount_amount_cart" should be removed in order to redirect customers to the mobile PayPal site.

I'm using the standard, built-in PayPal Website Payments Standard payment method. I searched the internet, but I can't find out what the consequences are when I remove that variable, and how I can do that.

Do you have any idea?

Thank you.

2

2 Answers

1
votes

The only place this variable seems to be set is in this method: Mage_Paypal_Model_Api_Standard::getStandardCheckoutRequest(). In my opinion the discount should not be related to the mobile page, but you can try to remove it anyway.

discount_amount_cart is a optional field:

Single discount amount charged cart-wide. It must be less than the selling price of all items combined in the cart. This variable >overrides any individual item discount_amount_x values, if present. Applies only to the Cart Upload command. -- PayPal - HTML Variables for Shopping Carts

1
votes

I've got an answer back from PayPal: Unfortunately, there is no workaround for this currently. You cannot use the discount parameter and still use the mobile optimized checkout.

Bummer! We have to use the default website. Thank you, Simon H, for your help!