amzn / amazon-payments-magento-2-plugin

Extension to enable Amazon Pay on Magento 2
https://amzn.github.io/amazon-payments-magento-2-plugin/
Apache License 2.0
109 stars 77 forks source link

Add checkout cancel url to config #1135

Closed haelbichalex closed 2 years ago

haelbichalex commented 2 years ago

What I expected

We have a PWA integration using this extension. When calling the config endpoint, we get the paynow_payload containing the checkoutCancelUrl, which redirects the user back to our shop. I suppose this URL should be configurable, as many other are in the configuration of the module, for example checkoutReviewReturnUrl.

What happened instead

The checkoutCancelUrl contains the URL of Magento, since we cannot configure this in the backend, and the user gets redirected to the password protected Magento instance.

Steps to reproduce the issue

Your setup

sgabhart22 commented 2 years ago

Hello @haelbichalex ,

Thank you for raising the issue, I think you're correct; it makes sense to have the checkoutCancelUrl be a configurable URL as well, especially in a headless Magento setup. We have created a ticket for this internally and will update you as progress is made.

Thanks again, Spencer

zichicc commented 2 years ago

solved by https://github.com/amzn/amazon-payments-magento-2-plugin/pull/1139

sgabhart22 commented 2 years ago

Hello again @haelbichalex ,

Just wanted to reach out and let you know that version 5.14.0 of the Amazon Pay module is now available on the Magento Marketplace and includes the ability to configure the checkoutCancelReturnUrl. Thanks again for raising the issue, and please let us know if you have any problems with the module in the future!

Spencer