PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Failed Orders with Mixed Currency Error for PayPal

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hi team,

I'm jumping in here for Megan from Mad Creations (https://madcreationshub.com/) on this ticket: https://pluginus.net/support/topic/mixed-currencies-failed-orders/

We've had several PayPal orders fail on the site due to the mixed currency issue at the PayPal Gateway for orders in USD; AUD is set as the default.

Not all orders through PayPal in USD fail. I do see some that have gone through.

This started happening after switching from PayPal Standard to the new PayPal Payments.

WooCommerce: 7.6.1

WooCommerce PayPal Payments: 2.0.4

FOX - Currency Switcher: 1.4.0

The setting following settings are set:

  • Is multiple allowed: Yes
  • Currency storage: FOX Session
  • I am using cache plugin on my site: Enabled
  • GEOIP is on

The site has both WP Rocket and Cloudflare cache. I see you say caching may be the issue. What do you mean by this?

The PayPal button shows up on the product, cart, and checkout.

After reading the error code, it seems like this is in the PayPal payload where the product"purchase_units > amount > currency_code" is different than the currency for payment that is sent.

I ran through a purchase on the site and see a POST error for api2.amplitude.com/2/httpapi with the URL that starts with"https://www.paypal.com/smart/buttons?" and contains"

currency=USD" so it seems to be set correctly here but maybe not at the"purchase_units" level?

Hello

can  you drop  me  wp-admin+FTP  to  your test site - https://share.pluginus.net/image/i20230222134241.png ->https://share.pluginus.net/image/i20230222134615.png

Hi Pablo,

I sent the credentials. Let me know what you find.

Thanks,

Crystal

Hello Crystal

I disabled wp-rocket and everything works correctly.

so it looks like the currency is cached for paypal requests

I added product pages to the exception - https://share.pluginus.net/image/i20230505161502.png - everything seems to work correctly, try to make tests

Hi Pablo,

Thanks for looking into this! Is there any way to be more specific to avoid this issue? What specifically is being cached? Is this a cookie or query?

Hello

I think the object is cached.

 Is there any way to be more specific to avoid this issue?  - Do not cache pages with paypal button