woocommerce-gateway-amazon-pay
woocommerce-gateway-amazon-pay copied to clipboard
Error when using a non standrad decimal amount for a currency
Describe the bug https://wordpress.org/support/topic/error-when-4-digits-are-used-instead-of-2/
In this case, the user is using "Number of decimals" = 4 for EUR and showing 2 decimals on Front End
To Reproduce Steps to reproduce the behavior:
- Set 4 decimals for EUR or USD
- Go to the site and add the product to the cart
- go to the cart and open the console of the browser
- See the error
Screenshots
Expected behavior No console error should be displayed, the decimals should be truncated to the default for each currency
Isolating the problem (mark completed items with an [x]):
- [x] I have deactivated other plugins and confirmed this bug occurs when only the extension is active.
- [x] I can reproduce this bug consistently using the steps above.