• Resolved Daniel P.

    (@danidub)


    Hello, I’m testing you basic plugin with PayPal.
    Our problem is that when sending data to PayPal, the wrong currency code is sent [currency_code] => UYU instead of US dollars that the customer selected.

    We have enabled all countries but one to use US dollars.
    In the checkout we see the correct conversion to USD when selecting the country but the default shop currency code UYU is sent to PP.

    You can check the PP log form our WooCommerce store:

    
    2020-05-15T12:01:52+00:00 INFO Generating payment form for order 81176. Notify URL: https://***/wc-api/WC_Gateway_Paypal/
    2020-05-15T12:01:52+00:00 INFO PayPal Request Args for order 81176: Array
    (
        ...
        [currency_code] => UYU
        ...
        [amount_1] => 4930391.21
        ...
    )
    

    The amount from UYU to USD is perfectly converted but the currency_code is not the correct one.

    Any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Oscar Gare

    (@oscargare)

    What’s the currency of the order? the PayPal gateway sends the order currency.

    This iss strange because PayPal does not support UYU and WooCommerce disables PayPal when the currency it’s not supported.

    Do a test only with WooCommerce, and the Price Based on Country plugin active.

    Thread Starter Daniel P.

    (@danidub)

    Oscar the problem was myself. I have not realized that I have changed both currencies to work on UYU.

    Thank you for your time, I’ll mark this issue as solved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sending wrong currency code to PayPal’ is closed to new replies.