• Resolved gfriedrich

    (@gfriedrich)


    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)
  • Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @gfriedrich

    thank you for reaching out to us, we are here to help.

    This issue looks very similar to the issue that we have seen that causes the error ITEM_TOTAL_MISMATCH. In your case, you get the error DECIMAL_PRECISION, but the behaviour looks very similar to the other. The current solution you use to revert back to 1.8.1 also works for the other issue, so I am hoping the fix has worked on will resolve your issue as well. The details on this fix can be found here.

    We have released a beta version for 1.9.1 today and is available here. Do you have the possibility to test if this resolves your issue as well?
    If it does not, we would have to take a closer look into this problem and see how we can reproduce and resolve it with our developers.

    Please let us know if you can test this and if the beta resolves your issue.

    Kind regards,
    Joost

    Thread Starter gfriedrich

    (@gfriedrich)

    Hello Joost,

    I just tested 1.9.1 in a staging environment.

    It did not fix the decimal precision error.

    Regards,
    Gerd Friedrich

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @gfriedrich

    in that case, we need to take a closer look at your setup. We would like to review your logs and the system report to identify if your situation might be related to an already known issue. You can copy the logfiles from here:
    – WooCommerce > Status > Get system report > Copy for support
    – WooCommerce > Status > Logs > select “woocommerce-paypal-payments…” in the dropdown and click on view.

    If you don’t feel comfortable sharing those details on a public forum, please open a ticket with our service desk. You can find the instruction for this here: https://paypal.inpsyde.com/docs/request-support/
    (please add the URL of this thread in the ticket as well)

    Kind regards,
    Joost

    Thread Starter gfriedrich

    (@gfriedrich)

    Hello Joost,

    I sent the logs from staging environment to support

    Regards,
    Gerd Friedrich

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @gfriedrich

    we have found out that this is most likely being caused by a conflict with another plugin. In your case, it is the “Uncanny Groups for LearnDash”. You are getting in contact with them to see how we can get this resolved (on their or our side), but this will most likely take some time.
    I will mark this thread as resolved, since we will continue working the issue on our service desk and now updates will follow here.

    Kind regards,
    Joost

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘“DECIMAL_PRECISION” Error Version 1.9.0’ is closed to new replies.