Fixing a broken Amazon Pay checkout flow in Magento 126.96.36.199
If your Magento installation uses version 188.8.131.52 or if you've installed the security patch release from Magento, follow these steps for applying the fix, making sure to try it first on your staging server before applying it to your production site.
Note: This fix does not apply to Magento 2 installations.
- Make a backup of your staging and production sites.
- Connect to your Magento server via SSH.
- On the admin page for your Magento instance, click System, and then click Cache Management.
- On the Cache Storage Management page, click Flush Magento Cache.
- Test out the buyer flow and confirm that the cart persists.
- Place an order with Amazon Pay and confirm that the order and its details come in to your Order page as expected.
- If you see any issues, do this:
- Remove the Customer.php file with this command:
- Rename Customer.php.bak to Customer.php with this command:
mv Customer.php.bak Customer.php
- Confirm that your site is functioning as normal.
- If everything works as expected, apply this fix on your production server by repeating the steps above.
cd <to Amazon Pay plugin> cd app/code/community/Amazon/Payments/Model/ mv Customer.php Customer.php.bak wget https://raw.githubusercontent.com/amzn/amazon-payments-magento-plugin/master/app/code/community/Amazon/Payments/Model/Customer.php
If you run into problems, Contact us via your Seller Central account and choose Technical troubleshooting.