Payment failed, getting PayPalGateway.php:500, not always but roughly 1/10

New Community Member

I'm using PayPal payment gateway on my woocommerce store. Everything was okay before July, then we started getting failed orders, all of them were reported as PayPalGateway.php:500. The chance of getting this is about one out of 10 paypal orders. Please advise, thanks!


The entire error message I got is -

Failed to process the payment. Please try again or contact the shop admin. [Error] Unknown error while connecting to PayPal. Status code: 0. PayPalGateway.php:500 [Error] Unknown error while connecting to PayPal. Status code: 0. OrderEndpoint.php:551 Order status changed from Pending payment to Failed.

Login to Me Too


Good day @geecc 


Thank you for posting to the PayPal community.


Please cross check your PayPal Business account and make sure it is verified and confirmed without any account limitations


Also, please try to process a test payment using a card that is not associated to your PayPal Account, since merchants can't process self-payments.


If your still facing issues, please create an MTS ticket via -  with the detailed information and error details.




PayPal MTS


If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.


Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.