Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: America/Los_Angeles (GMT-08:00)

This topic contains 17 replies, has 3 voices.

Last updated by Ilyes 7 months, 3 weeks ago.

Assisted by: Bobby.

Author Posts
February 27, 2024 at 2:45 pm #15349640

louisN-4

Issue woocommerce-paypal-payments (alternative) + wcml

I spoke to the support of
https://wordpress.org/support/plugin/woocommerce-paypal-payments/

they blame wcml

it seems when people are trying to pay with iDEAL or any other form of alternative payment
the confirmation from paypal is somehow bringing them a different currency,

they blame it on wcml, although i am unsure, and more unsure how can you even resolve it

what i suggest is to mark this plugin is not wpml compatible until this is resolved

when creating an order with EURO, for some reason you are transmiting to them USD

and then paypal giving back an error

It appears that the order was indeed created in EUR (11.80 Euro), but was incorrectly patched to PayPal as USD (11.80 USD). This mismatch in currencies is likely what led to the transaction failure, as PayPal cannot process payments with mixed currencies.
The error message clearly indicates that the system attempted to perform an action with mixed currencies, which is not allowed.
"CANNOT_MIX_CURRENCIES","description":"CANNOT_MIX_CURRENCIES"}],"message":"The requested action could not be performed, semantically incorrect, or failed business

February 28, 2024 at 12:40 am #15351693

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hi,

To be of better help, can you please provide your WPML Debug information in the debug field below? http://wpml.org/faq/provide-debug-information-faster-support/

Please make sure to update WooCommerce Multilingual to our latest released version of 5.3.5 and let me know your results.

February 28, 2024 at 1:11 am #15351699

louisN-4

is this error something you have experienced before, or something you have fixed?

if you ask me its a plugin bug, why i believe so, because paypal normal payments don't have this issue

February 29, 2024 at 1:45 am #15356217

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Yes, while not many reports there have been reports in the past of this issue.

Our team will be releasing a fix that is included in the next WCML version, however, some users have reported positive results after updating to 5.3.5.

Were you able to update to 5.3.5 and does that help?

If the issues persists after updating the plugin, I'd like to take a closer look

I would like to request temporary access (wp-admin and FTP) to your site to test the issue.
(preferably to a test site where the problem has been replicated if possible)

**Before we proceed It is necessary to take FULL BACKUP of your database and your website. Providing us with access, you agree that a backup has been taken **

I often use the Duplicator plugin for this purpose: http://wordpress.org/plugins/duplicator/
You will find the needed fields for this below the comment area when you log in to leave your next reply.
The information you enter is private which means only you and I have access to it.

NOTE: If access to the live site is not possible and the staging site does not exist please provide me with a duplicator package created with the duplicator plugin.

Thank you,
Bobby

March 1, 2024 at 6:46 am #15361012

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Thank you for the access details!

Before proceeding, on the staging site that you updated to 5.3.5, are you still receiving the same Paypal error for mixed currencies?

There is an open issue that this is most likely related to here:
https://wpml.org/errata/woocommerce-checkout-add-ons-and-woocommerce-paypal-payments-fees-not-added-to-paypal-in-multicurrency-setup/

March 1, 2024 at 11:00 am #15362423

louisN-4

my issue is similar but not the same

i gave you production not staging !

so do not update plugins or disable without speaking to me first.

March 1, 2024 at 9:20 pm #15364966

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

No changes will be made on the live site, and if any plugins need to be installed I will notify you beforehand.

At the moment, the only 2 plugins I think we need are Duplicator or Cloudways if we need to investigate further moving the site to a staging environment.

Do I have your permission to install the Duplicator plugin, debugging locally allows to activate/deactivate plugins without the worry of affecting a live site.

1. I can see you are now using 5.3.5 WCML, is this error still happening:
"CANNOT_MIX_CURRENCIES","description":"CANNOT_MIX_CURRENCIES"}],"message":

2. South African rand [R] is currently not supported by PayPal
hidden link
Disabling that currency, does it help with the issue you are experiencing?

3. Are you able to update the following:

WooCommerce PayPal Payments

WooCommerce CoinPayments.net Gateway

March 1, 2024 at 9:42 pm #15364979

louisN-4

Hi Bobby,

Yes you can install duplicator and copy our system BUT

i can just give you admin access to our staging.kideno.com and you can perform your tests there - if you want, open a box and i will give you admin access to our staging

the issue actually happened with EUR , someone tried to paid 11.80 EUR, and paypal reported back as if it was 11.80 US, this is where the error came

CANNOT_MIX_CURRENCIES","description":"CANNOT_MIX_CURRENCIES"}],"message":

it makes me think that maybe the paypal alternative buttons were getting the wrong currency or not getting currency at all and then paypal by default reported 11.80

March 4, 2024 at 8:51 pm #15372135

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Thank you, yes let's test on the staging site since it is possible.

Private reply has been enabled.

March 7, 2024 at 1:13 am #15381904

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hi,

Please Go to WooCommerce->WooCommerce Multilingual -> Settings-> Switching currencies when there are items in the cart and switch it to "Prompt for a confirmation and reset the cart"

Please let me know if that helps.

March 7, 2024 at 1:33 am #15381924

louisN-4

HI Bobby,

are you saying that because they changed currency while being in the cart, this caused issues for the paypal alternative payments to understand which currency to charge?

it doesn't make sense to me, give me more information

- bear in mind, we don't have this issue with any credit card processor or paypal, its only with paypal alternative, and iDEAL especially (which is paypal alternative)

March 8, 2024 at 12:48 am #15387134

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

I am merely assuming that this is the case here.

If you take a look at our documentation here:
https://wpml.org/documentation/related-projects/woocommerce-multilingual/clearing-cart-contents-when-language-or-currency-change/#prompt-for-a-confirmation-and-reset-the-cart

This is the feature we recommend when there are issues with the cart, at this moment I am not suggesting this as a solution, but rather a test.

Please try this feature and let me know your results, and our team will further investigate.

Note: I have not been able to trigger the Paypal error on the staging site, which is also why I would like you to test this and let me know your results, please.

March 8, 2024 at 11:15 pm #15390929

louisN-4

i don't believe i should do this, as cart changes will affect other users

what about this case?
https://wpml.org/errata/woocommerce-checkout-add-ons-and-woocommerce-paypal-payments-fees-not-added-to-paypal-in-multicurrency-setup/

March 11, 2024 at 5:36 pm #15396877

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

You have shared with me a staging environment, are you able to test it there so we can know it's behavior with PayPal, please. That should not affect your live environment and users.

The errata you shared with me is an active investigation and while it does not seem related to your case it does not have an active workaround at the moment.

If you cannot perform the above test, please share with me how I can reproduce the error on your staging site as I have not been able to do so yet. I have been able to add a product-> go to checkout and get re directed to PayPal without reproducing the error.

March 11, 2024 at 8:13 pm #15397103

louisN-4

lets keep this ticket open until you resolve the other case which directly relates to my case

The topic ‘[Closed] Issue woocommerce-paypal-payments (alternative) + wcml’ is closed to new replies.