When customers checkout while offering both Paypal, Paypal Advanced and WooPayments, when they are NOT using PayPal to checkout but using a Visa, MC or Amex via Woo Payments, an Exception is thrown stating:
Error during status transition. PayPal order ID not found in meta.
I am not sure why this is occurring when PayPal was not used for the payment method.
The Woo Payments transaction is successful but our orders never change from processing to completed as a result of this exception.
The first part of that error is from WooCommerce function status_transition which has an exception break, thus why the status isn’t changed.
The second half of that error is from WPP function ppcp_get_paypal_order which I am not sure why it is executing but lacking the meta data it requires results in the exception.
I found two methods VOID and CANCEL that call this function, not sure how these come into play either.
WC, WPP and WP all appear to be current.
The WC logs show:
2023-10-06T01:58:21+00:00 ERROR Status transition of order #58395 errored! 2023-10-06T07:26:19+00:00 ERROR Status transition of order #58431 errored! 2023-10-06T16:36:57+00:00 ERROR Status transition of order #58439 errored!
Any help or direction is greatly appreciated. Thank you.
Thank you for reaching out to us, we are here to help.
With the provided details, we cannot give much of a response, because it can be anything at this point. We must perform some testing with the Woo Payments plugin. It’s not so super easy to test, but it’s possible.
Would it be possible to provide the exact steps in order to reproduce this situation? If so, we could investigate this in the coming days. If you don’t feel comfortable sharing those details on a public forum, please open a ticket with our service desk. You can find the instruction for this here: https://paypal.inpsyde.com/docs/request-support/ (please add the URL of this thread in the ticket as well)
if this only occurs with Woo Payments, then I would suggest to reach out to their support team and see if they have any known bug for this and if they possibly have a fix available for this issue.
If I understand incorrectly and the issue also occurs with our plugin, please let us know and we will reopen this thread. If you have other details that you can share with us, you might want to open a private ticket with our service desk. You can find the instruction for this here: https://paypal.inpsyde.com/docs/request-support/ (please add the URL of this thread in the ticket as well)
Correct, the issue only occurs when using a payment method other than PayPal such as WooPayments or Stripe as well as only happens for Subscription products and only when being renewed.
The error however is generated from this plugin and backtraces to ppcp_get_paypal_order.
If PayPal is not the payment method being used, why are we getting an error from this PayPal plugin?
This reply was modified 11 months, 2 weeks ago by pingram.
This reply was modified 11 months, 2 weeks ago by pingram. Reason: revise wording for clarity
Any update on this issue I’m also facing it, using stripe payments but it is showing this in error log: Error during status transition. PayPal order ID not found in meta.
this issue was addressed, and a fix has been added to the next release. Currently, the fix can be tested with the 2.4.0_rc2 release that is available here.
Please take a look and let us know if this issue persists when using this package.
Oh my, I spoke too soon. As you can see, I flipped the circumstance in my previous response from my original, where it is the INITIAL subscription order and NOT renewals that fail with this error.
The error being: Error during status transition. PayPal order ID not found in meta.
This is not a PayPal order so there should be no seeking of a PayPal order ID in the product meta when other payment method is used, most esp. successfully. Hopefully this screen shot will help. Let me know if you need anything from me. Thanks Joost.
Since this is being caused while using the Stripe & Woo Payments payment method, I would expect this to be a conflict with them. However, we have many people using our and Stripe/Woo as the payment method and only have you and @satindersingh reporting this issue, so I would expect there has to be some specific setup present for this to occur. Otherwise, we would be getting many more reports about this.
In order to further investigate this, I would still want to ask you to share full logs, system report and possibly screenshots of the order notes with us, so we have the full view on this situation. I would insist on opening a private ticket with our service desk in order to share such details easier and more securely than via this public forum. You can find the instruction for this here: https://paypal.inpsyde.com/docs/request-support/ (please add the URL of this thread in the ticket as well).
Thank you Joost. One thing remains, the error is indeed of this plugin as a result of a method (ppcp_get_paypal_order) within a class being called which should not be called when PayPal is not the payment method being used.
Stripe has been disabled yet the error continues.
Not an educated guess but we saw PayPal Advanced Card Processing enabled, which is explained as for the ability to process credit cards using PayPal which seems unnecessary if WooPayments is handling credit card processing.
We have now disabled PayPal Advanced Card Processing and will monitor the issue, if it continues, we will follow your instructions and open a ticket w/ your service desk.
p.s. A screenshot of the order notes was provided in my previous post, the first url is the larger full size image. Sorry, I fail to understand how people post actual images in these wp.org threads, it’s not very intuitive.
I already informed pingram3541vian the private engagement I already, so let me post it here as well.
We have received some more reports on this issue since the 2.3.1 release, and already have a bug open for this case. We are waiting for our developer to take a look at this, but believe we have already an idea what could be causing this problem (The error is generated from this plugin and back traces to our ppcp_get_paypal_order function).
At this moment, there is not much we can do for you, but luckily this issue should only affect the status change of the orders. I have linked your support thread to the bug, so that when we have any fix/package available for you, we will let you know.
This upcoming fix should be included in our upcoming release 2.4.1. Testing should commence soon, so keep an eye on the beta releases here, that could already help you fix the issue.
FYI, this is happening with Square Payments plugin too … although we couldn’t find yet a pattern in this behaviour like the above mentioned (only for subscription renewals). We had only a few incidents, but the transactions that remained in ‘Processing’ were similar to other transactions ‘Completed’ on the same day
Order notes
Error during status transition. PayPal order ID not found in meta.
October 24, 2023 at 5:46 pm Order status changed from Pending payment to Processing.
October 24, 2023 at 5:46 pm Square Charge Approved for an amount of…