woocommerce / woocommerce-gateway-amazon-pay

Amazon Pay Gateway
20 stars 23 forks source link

Amazon Pay is still rendering if the total import is zero #287

Open ChristianAF opened 3 months ago

ChristianAF commented 3 months ago

Describe the bug A clear and concise description of what the bug is. Please be as descriptive as possible.

To Reproduce Steps to reproduce the behavior:

  1. Go to the shop page, add the product to the cart
  2. Go to Cart or Checkout and add a 100% discount coupon
  3. with classic Cart and checkout check that Amazon Pay is still visible and makes visible other payment methods.
  4. deactivate Amazon Pay, and check that all Payment Methods are hidden.
  5. With Cart and Checkout Woocommerce blocks is working as expected

Screenshots With Amazon Pay image

Without Amazon Pay image

Expected behavior Amazon py should not render if the total order is zero

Isolating the problem (mark completed items with an [x]):