woocommerce / woocommerce-gateway-amazon-pay

Amazon Pay Gateway
20 stars 23 forks source link

Feature/add estimated order amount pay button #213

Closed dpanta94 closed 2 years ago

dpanta94 commented 2 years ago

All Submissions:

Changes proposed in this Pull Request:

Add estimatedOrderAmoun attribute to Amazon Pay button.

How to test the changes in this Pull Request:

  1. Add a product to the cart.
  2. Make sure that amazon pay button is active.
  3. Try to update the cart items (change the quantity of the added item, add a new item or remove the existing one)
  4. The following message is logged on browser's console (sandbox mode): Estimated order amount for sandbox is {"amount":"XXX","currencyCode":"XXX"}

Other information:

Changelog entry

Add - Estimated order amount attribute on pay button.