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

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.

Hello Lyse

hope this fix helps

Hi Pablo,

I had one order come in from the US and did not fail. I want to see if our SilviaFindings orders for more of the DIY Jewelry orders continue to process upon submission.

I'm keeping my fingers crossed.

Thanks

Lyse

Hi Pablo,

Just had a US order placed successfully on the SilviaFindings website after I removed the last fix applied (commented line 38).

This is confusing. I continue to watch closely.

Lyse

Hello Lyse

it looks like these payment systems use REST API

I think this fix should solve the problem

 

Hi Pablo,

I have a Shop Manager account, one who adds/modifies products on the https://silviafindings.com/ website is reporting issues with editing, viewing, adding products in WooCommerce. Here are some of the screenshots he shared:

"...when I go back to edit the variations, I get this:

"... All the attributes are there and duly populated."   https://snipboard.io/CDr4Bk.jpg

"...OK, magically that error message went away and I got my variations back."

Something really weird is happening on that account. I created a new account for him and he gets the same issues. Only him though....?????

I'm not sure the last fix we did is causing him grief.

Your thoughts are appreciated.

Lyse

 

Hi Pablo,

Just received a failed order from the US on the SilviaFindings website then 15 minutes later processed successfully. The issue displays the same error:

Failed to process the payment. Please try again or contact the shop admin. [UNPROCESSABLE_ENTITY] The requested action could not be performed, semantically incorrect, or failed business validation. https://developer.paypal.com/docs/api/orders/v2/#error-CANNOT_MIX_CURRENCIES PayPalGateway.php:525 [UNPROCESSABLE_ENTITY] The requested action could not be performed, semantically incorrect, or failed business validation. https://developer.paypal.com/docs/api/orders/v2/#error-CANNOT_MIX_CURRENCIES OrderEndpoint.php:551 Order status changed from Pending payment to Failed.

Then 15 minutes later it processes.

Sorry but something is still now right.

Thank you for your patience.

Lyse

Hello Lyse

Can  you  drop me  Shop Manager access  to  your staging site?  + FTP access

Check this code on the main site - https://share.pluginus.net/image/i20230123095947.png - and  delete  it (to test)

 

Hi Pablo

Sorry for the delay I had meetings for the last 2 days.

  1. I can't access the image link
  2. I have created a Shop Manager account for you
  3. I created an SFTP access on the staging

All credentials have been added to the private area.

Thank you

Lyse

Hello Lyse

I  did a test. But I can't repeat the error with Shop Manager account

  1. I can't access the image link - https://share.pluginus.net/image/i20230123095947.png

Hi Pablo

Today another US order failed with the same error:

Failed to process the payment. Please try again or contact the shop admin. [UNPROCESSABLE_ENTITY] The requested action could not be performed, semantically incorrect, or failed business validation. https://developer.paypal.com/docs/api/orders/v2/#error-CANNOT_MIX_CURRENCIES PayPalGateway.php:525 [UNPROCESSABLE_ENTITY] The requested action could not be performed, semantically incorrect, or failed business validation. https://developer.paypal.com/docs/api/orders/v2/#error-CANNOT_MIX_CURRENCIES OrderEndpoint.php:551 Order status changed from Pending payment to Failed.

Looking at my error log I also see the following notice:  The WC_Order::get_order_currency function is deprecated since version 3.0. Replace with WC_Order::get_currency., referer: https://silviafindings.com/checkout

Is there any thing else we can try here to fix this issue.

Thank you

Lyse

Hello Lyse

Code  of the  plugin  on  your  site - https://share.pluginus.net/image/i20230202094659.png  My  message - https://share.pluginus.net/image/i20230202094739.png Have you changed this code(uncomment)?

also  I  added  code - https://share.pluginus.net/image/i20230202095809.png (\wp-content\plugins\woocommerce-currency-switcher\classes\woocs.php ) - This should improve work with caching plugins

 

Hi Pablo,

The code change in the index.php file on line 38 did not have"//" in front of the return;, so I just fixed that now.  It now looks like this:     // return; //!!it is important for different reports to exclude WOOCS influence

I see the second change.

Hope this helps. I'll see what happens now.

Thank you

Lyse

Hello Lyse

so I just fixed that now. - This should fix the issue if the payment system is using the REST API

Hope everything works well

Hi Pablo,

I hope so too! I'll be keeping an eye out on all international orders. Yesterday received one from FR and US without a glitch. I'm hoping to get at least one from Australia since we implemented the fix.

Will I have to make these 2 changes to the DIY Jewelry (our US-based website) when we reactivate the currency plugin when we start selling from the US internationally? Or will these changes be part of the ore plugin updates?

Thank you so very much for all your persistent support.

Lyse

Hi Pablo

Just now got a failed order from the US. It’s a very large order that we are loosing.

Error is

Failed to process the payment. Please try again or contact the shop admin. [UNPROCESSABLE_ENTITY] The requested action could not be performed, semantically incorrect, or failed business validation. https://developer.paypal.com/docs/api/orders/v2/#error-CANNOT_MIX_CURRENCIES PayPalGateway.php:525 [UNPROCESSABLE_ENTITY] The requested action could not be performed, semantically incorrect, or failed business validation. https://developer.paypal.com/docs/api/orders/v2/#error-CANNOT_MIX_CURRENCIES OrderEndpoint.php:554 Order status changed from Pending payment to Failed.

This is getting very serious for us and we need an  urgent solution

thank you

Hello Lyse

This is getting very serious for us and we need an  urgent solution - I understand you, but unfortunately I do not have a 100% guaranteed solution.  Because I can't determine the reason for this behavior

I can only suggest a possible solution

Please  try  to  add  this  code in  functions.php:

if (isset($_SERVER['SCRIPT_URI'])) {
$uri = parse_url(trim($_SERVER['SCRIPT_URI']));
$uri = explode('/', trim($uri['path'], ' /'));
if ($uri[0] === 'wp-json') {
$show_legacy = array('cart');
$match = array_intersect($show_legacy, $uri);
//serialize($uri)();
if (count($match) > 0 && class_exists('WOOCS')) {
global $WOOCS;
$WOOCS->set_currency('CAD');
}
}
}

I think the reason for the error is in this button - https://share.pluginus.net/image/i20230206105259.png - this button makes a request to paypal in the current currency, then paypal accesses the site (to create an order). And maybe when paypal makes a request to your site, my plugin treats it as a new user and switches currency according to GeoIP rules.  This code should switch currency to CAD when changing or placing an order on any page

Try it, but be sure to test it. There should be no fatal errors, but possibly incorrect behavior for users

Hi Pablo,

I haven't implemented the code yet, just too hesitant on disrupting the customers as I have a concerned client who's customers are extremely important. US orders appear to be placed correctly the first time, but I'm observing this very closely.

Your plugin is up for renewal and I'm not sure if I should recommend to my client to continue or look for another solution. I've seen others reporting the same issue I have with PayPal mixed currencies but there no knowing if or when anything will be done to fix this issue.

Just thought I'd give you an update.

Thanks

Lyse

Hello Lyse

Please update the plugin to the latest version if possible. This fixes some issues with the current currency.

Hi Pablo,

I have renewed the currency plugin and updated to the latest PayPal Payments plugin.

We are still getting failed orders. I have again reported this to WooCommerce PayPal Payments and I await their recommendation.

I'm still hesitant in trying the last code change you suggested.

I'll update as soon as I hear back from them.

Thanks

Lyse

Hello Lyse

I will wait for your answer!

This code i gave is currency switching for rest api