• Resolved pansmuggler

    (@pansmuggler)


    Hello,
    I am getting following error:

    It only happens with some currencies that have “, and . inside them”. I use CURCY plugin that is changing currencies based on location. When I edited it to 0 decimals instead of 2 the payment went throught, but it’s not best fix. This is really weird and I think it needs official fix or something that would help interpret to paypal amount in currency with both dot and comma.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @pansmuggler

    According to PayPal’s documentation, HUF does not support decimals. That error message you’re seeing is coming directly from PayPal’s API, so they’re rejecting requests for HUF when there are decimal places.

    There is conflicting information online as other sources state HUF supports 2 decimal places.

    Can you confirm if 2 decimal places is supported in Hungary?

    I have submitted a request to PayPal’s engineering team regarding this issue.

    Can you navigate to your WooCommerce > Status > Logs page and in the wc-ppcp log file find the entry that corresponds to the error message? That will have a debug_id that will assist the PayPal engineers.

    Kind Regards

    Plugin Author Payment Plugins

    (@mrclayton)

    @pansmuggler PayPal’s engineering team responded. According to the international standards, HUF stopped using decimals in the last decade, therefore their API does not accept decimals.

    My recommendation would be to set decimals to 0 for HUF.

    Kind Regards,

    Thread Starter pansmuggler

    (@pansmuggler)

    It’s also happening for other currencies for example ARS, CLP, INR, IDR and so on, but thanks for your reply & help. It’s only happening with paypal API, stripe is working fine.

    Plugin Author Payment Plugins

    (@mrclayton)

    It’s only happening with paypal API, stripe is working fine.

    You can’t really compare Stripe to PayPal. It’s not happening with the Stripe API because Stripe’s API receives amounts in cents, so something like $10.50 is sent to Stripe as 1050 cents. So the concept of decimals doesn’t exist in Stripe.

    But PayPal’s API receives amounts in the currency so if the currency doesn’t support decimals you need to correctly configure your currency switcher to use the currency’s proper number of decimals.

    Kind Regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Currency does not support decimals’ is closed to new replies.