Decimal Precision Error
-
Hi,
Have a bit of a problem with trying to checkout some items, it looks like a decimal issue but only happens on some items! (I’ve posted the error I’m getting below).I have 3 item, each item has 2 options (I’m using the options to set postage costs).
Price is set to £Product 1 is 11.99.
Option 1 is 5 – FAILS
Option 2 is 13.52 – FAILSProduct 2 is 19.99.
Option 1 is 5 – WORKS
Option 2 is 13.52 – WORKSProduct 3 is 37.99.
Option 1 is 5 – WORKS
Option 2 is 13.52 – FAILSThe site is using the WP Twenty Twenty Template with Twentig.
I’ve tried recreating the product that are erroring but that didn’t help.
Advanced setting:
Currency Position left (£1.00)
Decimal Separator .
Thousand Separator ,
Number of Decimals 2Do you have suggestions?
Error I’m getting
`{“name”:”UNPROCESSABLE_ENTITY”,”details”:[{“field”:”/purchase_units/@reference_id==’default’/amount/breakdown/item_total/value”,”value”:”51.510000000000005″,”issue”:”DECIMAL_PRECISION”,”description”:”If the currency supports decimals, only two decimal place precision is supported.”}],”message”:”The requested action could not be performed, semantically incorrect, or failed business validation.”,”debug_id”:”78d561b4f6435″,”links”:[{“href”:”https://developer.paypal.com/docs/api/orders/v2/#error-DECIMAL_PRECISION”,”rel”:”information_link”,”method”:”GET”}]}
The topic ‘Decimal Precision Error’ is closed to new replies.