Problem with non decimal currency
-
Some currency not use decimal value.
If base currency configured to non decimal value in woocommerce setting page.
You have to round paypal payment request to integer value.Example:
Product price 1100 HUF
Shipping price (table rate): 850 HUF
VAT= 27%
Price without VAT (1/1,27)*1100=866,14
Shipping without VAT (1/1,27)*850=669,29
You have round to 866 HUF and 669 HUF
VAT value is 1950-(866+669)=395 HUF
Total AMT= 1950 HUFPaypal send back error 10426,10429,10431,10413 if you dont round payment request for non-decimal currencies.
This problem exist Woothemes and your Paypal Express gateway. Standard Paypal gateway works fine with all currecies. If I use currecy switcher, and I change to decimal currencies example: euro same payment gateway working fine.
Why don’t ask Woocommerce decimal settings?
Why send this plugin illegal currency value to Paypal?Thanks.
- The topic ‘Problem with non decimal currency’ is closed to new replies.