Hello @problematichild
In a few cases it is related to caching issues for e.g. when the cart or checkout page will be severed from the cache. Also some security plugins may cause that error for e.g. word fence etc.
I would recommend to perform a full conflict test to rule out eventual issues with the theme or a different plugin. We recommend temporarily activating the default theme Storefront and disabling all other plugins except for WooCommerce and PayPal Payments to see if the behavior persists.
Here’s a guide that explains the steps in more detail: How to test for conflicts
Kind regards
Andreas
Hi @aweissinpsyde
I just rechecked the orders that came through using PayPal as a payment gateway and the error is no longer there. I haven’t made any conflict tests yet so I’m not sure what is the main cause.
To wrap up this issue, I just would like to ask how can we prevent this from happening again?
Best Regards
Hi @problematichild,
The INVALID_RESOURCE_ID error is coming from the PayPal API and is fairly generic. So it’s not easy to pinpoint the potential cause by the error alone. The PayPal MTS sometimes can provide more insights into what caused the API to respond with an error.
But the MTS usually needs the debug ID from the plugin log files, which are only created when the Logging option is enabled in the Connection tab.
So the error could be a temporary issue on PayPal’s end, or it could also be that the plugin sends invalid data to PayPal. The latter could potentially happen as a result with a different plugin.
But it’s difficult to tell unless you are able to reproduce the problem.
Kind regards,
Niklas
Hi @niklasinpsyde ,
We already contacted Paypal Tech Support and sent more details.
Thank you so much for your help, I really appreciate it.
Best Regards.
I assume the PayPal MTS was able to shed some light on the source of the problem, so I’m marking this thread as resolved.
If you have any further questions, please feel free to reopen this topic or better create a new one.
Thanks!
Kind regards,
Niklas