“DECIMAL_PRECISION” Error Version 1.9.0
-
Hi,
Version 1.9.0 has a rounding number issue.
Customers claimed this error occured:
“DECIMAL_PRECISION If the currency supports decimals, only two decimal place precision is supported.”
In logfiles there is this:022-07-05T22:15:44+00:00 DEBUG POST https://api.paypal.com/v2/checkout/orders Request Body: {"intent":"CAPTURE","purchase_units":[{"reference_id":"default","amount":{"currency_code":"EUR","value":"140.00","breakdown":{"item_total":{"currency_code":"EUR","value":"117.65"},"shipping":{"currency_code":"EUR","value":"0.00"},"tax_total":{"currency_code":"EUR","value":"22.35"}}},"description":"","items":[{"name":"XXX","unit_amount":{"currency_code":"EUR","value":117.65000000000001},"quantity":1,"description":"XXX","sku":"KOP8EPR1","category":"DIGITAL_GOODS"}],"payee":{"merchant_id":"XXX"}}],"application_context":{"user_action":"CONTINUE","shipping_preference":"NO_SHIPPING","landing_page":"LOGIN","locale":"de-DE","brand_name":"XXX","return_url":"https:\/\/psycho-vision.de\/?wc-ajax=ppc-return-url&elementor_page_id=25486","cancel_url":"https:\/\/psycho-vision.de\/kasse\/"},"payer":{"name":{"given_name":"XXX","surname":"XXX"},"email_address":"XXX","address":{"country_code":"DE","address_line_1":"XXX","admin_area_1":"DE-BY","admin_area_2":"XXX","postal_code":"XXX"}},"payment_method":{"payee_preferred":"IMMEDIATE_PAYMENT_REQUIRED","payer_selected":"PAYPAL"}} Response Debug ID: f68ebf61d7078 Response: Array ( [code] => 422 [message] => Unprocessable Entity ) Response Body: {"name":"UNPROCESSABLE_ENTITY","details":[{"field":"/purchase_units/@reference_id=='default'item/0/unit_amount/value","value":"117.65000000000001","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":"f68ebf61d7078","links":[{"href":"https://developer.paypal.com/docs/api/orders/v2/#error-DECIMAL_PRECISION","rel":"information_link","method":"GET"}]} 2022-07-05T22:15:44+00:00 WARNING Failed to create order. PayPal API response: [UNPROCESSABLE_ENTITY] The requested action could not be performed, semantically incorrect, or failed business validation. https://developer.paypal.com/docs/api/orders/v2/#error-DECIMAL_PRECISION 2022-07-05T22:15:44+00:00 ERROR Order creation failed: [UNPROCESSABLE_ENTITY] The requested action could not be performed, semantically incorrect, or failed business validation. https://developer.paypal.com/docs/api/orders/v2/#error-DECIMAL_PRECISION 2022-07-05T22:15:44+00:00 ERROR Order creation failed: [UNPROCESSABLE_ENTITY] The requested action could not be performed, semantically incorrect, or failed business validation. https://developer.paypal.com/docs/api/orders/v2/#error-DECIMAL_PRECISION 2022-07-05T22:15:49+00:00 DEBUG GET https://api.paypal.com/v1/customer/partners/K8SKZ36LQBWXJ/merchant-integrations/ZTC8HDBXALXWG Response Debug ID: c72ade4477405 Response: Array ( [code] => 200 [message] => OK )
Replaced some information with XXX
After installing 1.8.1 again, it worked.
Regards,
Gerd Friedrich
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘“DECIMAL_PRECISION” Error Version 1.9.0’ is closed to new replies.