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

Problem with paypal payment

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. We are experiencing problems on the website and we believe the culprit is the FOX Currency Switcher Professional for WooCommerce plugin. I'll explain what we have and what happens to us.

The error is occurring on the website http://www.bigstamping.com . In this website, designed with Elementor and with multiple languages thanks to WPML, we use the EURO as the base currency. We have activated the currency selector so that users see the price in their currency but when they checkout they always pay in EUROS.

We have been using the plugin for a while but we have received an error when paying with Paypal.

We have seen that if you use any currency other than the Euro and visit the checkout page, although the summary appears in Euros, when you click to pay with Paypal, shows the error"Something went wrong. Please try again or choose another payment source".

If the customer goes back to the cart page and then returns to the checkout without touching anything (in the cart then appears the Euro as the base currency) and returns to pay in the checkout, then if you can make the payment with Paypal normally.

We think that the problem may be with your plugin, but we are not 100% sure, could you help us, does this error sound familiar to you?

Right now we have version 2.4.1.7 of your plugin and for Paypal we use"WooCommerce PayPal Payments" (version 2.4.3).

I look forward to hearing from you, best regards!

Hello

Please paste your license key here - https://share.pluginus.net/image/i20230222134241.png -> https://share.pluginus.net/image/i20230222134511.png and  wp-admin access - https://share.pluginus.net/image/i20230222134615.png - I will check it

Thank you for your response. I have updated the information you requested. Use it with care.

I would like to comment that besides returning to the cart and returning to the checkout, I have also noticed that once I get the error (it is usually given by your currency change to a currency other than euro and I go through the cart previously with the currency other than baes), if I refresh / update the checkout page, it stops giving the error message from the payment gateway.

I am waiting for your answer! Thank you very much.

Hello

Please  try  to check  this  option  - https://share.pluginus.net/image/i20240119103811.png and  do a  test

I think this should help

Hi. Again, thanks for the suggestion.

I have changed that option and tried the usual process again. Unfortunately, it still does the same thing.

I would like to comment that when it gives that error, if I press F5 on the computer (refresh / update) or swipe on the mobile, when I return to pay with paypal, it stops giving the error. I do not know what is storing in cache or that keeps the currency that is not the base for that to happen.

Can you think of anything else?

Please add  in  functions.php

add_filter('wp_head',function(){    
    if(is_checkout()){
        global $WOOCS;
        $WOOCS->set_currency('EUR');
    }
});

and  check  option - https://share.pluginus.net/image/i20240119131624.png

 

Hello, Thank you very much for the new proposed solution.

I have implemented it in function.php and I have made the adjustment in the options that you comment me. Unfortunately, the same thing is still happening.

One question, have you managed to replicate the error, have you seen what happens?

Try going to http://www.bigstamping.com . Then choose, for example, the Canadian version and go to products.

For example, look for the pack of acetates (it is at the end of the list of products) and after adding it to the cart try to make the purchase with Paypal. The first time I always get the error and after that, when I update, it allows to pay with Paypal and opens the data window of that payment gateway.

Hello, any news, can you think of anything that might happen?

We have seen that with the last changes, prices were showing variations in the versions of the web where the price was in a different currency than the euro. I have deleted the code that you gave me and changed the settings so that everything was as before.

It is no longer displayed, but the error in the checkout continues. We need a solution. I understand that this is not direct support, but if we continue with the problem, we will have to try another plugin to solve the issue.

Honestly, I wouldn't like it, I like the way yours works.

Hello

have you managed to replicate the error, have you seen what happens? - Yes of course I checked it on your site. I consulted with the developers. We need access for deeper testing, this is strange behavior

Please  drop me  ftp access - https://share.pluginus.net/image/i20230222134241.png ->https://share.pluginus.net/image/i20230222134615.png

 

Data sent. Hopefully we can find a quick solution, thank you!

Hello

We have found the cause of this error. Developers are already looking for a solution. I'll write to you as soon as we get the result

Hello

Please  do a test

Hi. It doesn't seem to fail anymore. I have seen that the LiteSpeed cache plugin is disabled, have you removed it to test?

I had disabled the cache in checkout and cart, was it a cache problem? If so, why did it start doing it now and not before with the same configuration?

I would like to know a little more about what happened.

Hello

yes I disabled the cache during the test

The problem was that paypal took the current currency before the plugin switched the currency on the checkout page. For this reason, reloading the page solved this problem

I added a hook that fixes this. This will be added in the next version

Yes, that's what I thought was happening, is this hook already applied in my version? Can I re-enable Litespeed cache without problems?

Any other precautions I should take? I'm going to remove the warning message for the error on the web and I want to be sure there are no bugs again.

By the way, I guess it has nothing to do, but since yesterday, Woocommerce analytics have stopped working. Has the adjustment you have made intervened in any way?

Let me know when I can act normally to disable the created accesses. THANK YOU!

Hello again, sorry for the insistence, but I would like to know what has been changed, if I can re-enable LiteSpeed Cache and if the hook you have added could have affected some functions of our Wordpress.

As I said, the Woocommerce Analysis section has stopped working and when I tried to remove the message that we had put about the incident with Paypal, I saw that Elementor does not work in any Spanish page. I have tried with the rest of languages and without problems. Curiously, if I change the language and enter in Analisis, then it works... it is very strange.

Please, tell me something.

Hello

LiteSpeed Cache - Yes you can activate it

All changes are only inside my plugin

Regarding the error(Analysis/elementor), I don't think that these changes can cause this. Check your browser console, this might be a JS error.

Ok. I will re-enable LiteSpeed Cache. I would have liked to know what happened with the plugin problem. I understand that the solution is already applied in our case and that it will be something added to the next versions, correct?

Thank you very much for your help. The support service has been excellent.

Yes, sure! This will be included in the next version