woocommerce / woocommerce-gateway-amazon-pay

Amazon Pay Gateway
20 stars 23 forks source link

chargeAmount.Amount is invalid when changing currency after selecting other shipping address #257

Open ChristianAF opened 1 year ago

ChristianAF commented 1 year ago

Describe the bug Using: Price Based on country plugin for multi-currency, only happens with the free version because of the decimals in JPY currency that should not have any. With Pro version the decimals can be changed to 0 and the issue is fixed.

Steps to Reproduce: 1- Setup Amazon with Price based on country 2- Add product to cart and use the Express Checkout. 3- Select other shipping address that changes the amount (like JPY) 4- Try to place order

Screenshots image

Expected behavior Trnsactions is JPY should remove the decimals

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