saucal / woocommerce-gateway-amazon-pay

Amazon Pay Gateway
0 stars 1 forks source link

Adds support for Amazon Pay in Product Pages #147

Closed dpanta94 closed 2 years ago

dpanta94 commented 2 years ago

All Submissions:

Changes proposed in this Pull Request:

Adds support for the Amazon Pay button in Product Pages.

Technical details

When the amazon pay button located in the product page is clicked an AJAX request is taking place which saves the active cart in WooCommerce's session, empties current cart and adds only the selected product and finally provides the JS with required parameters for amazon to initiate the new checkout session.

When the checkout session is completed, the cart that was stored gets restored.

This PR should be reviewed and merger after #146.

Other information:

Changelog entry

Add - Support for Amazon Pay button on Product pages.