[UNPROCESSABLE_ENTITY], but payment went through

vmladin
New Community Member

I am testing my new woocommerce powered website that has Paypal as the credit/debit card gateway.

The problem I got was receiving this 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-ORDER_ALREADY_COMPLETED.

The order in Woocommerce is showing as failed, but the payment went through as the amount was taken from the card and appeared in my paypal account. How do I fix this?

Login to Me Too
1 REPLY 1

MTS_John
Moderator
Moderator

Hello @vmladin

 

Thank you for posting to the PayPal Merchant Community.

 

The error ORDER_ALREADY_COMPLETED maps to the following description on our developer site: "The order cannot be patched after it is completed". This means there would have been a notification that the payment was captured successfully preceding this, and it is a subsequent Patch request generating the error. There may be an issue with how these notifications are being handled by your plugin which may need to be resolved with the plugin developers. 

 

Please let us know if you have any additional questions or need any further assistance, including any additional details you may have come across. You may also create an MTS ticket via the following URL: https://www.paypal-support.com/ where we can provide more guidance after looking into the transaction details more thoroughly.

 

Sincerely,
John
MTS
PayPal

If you found this post helpful, please give it a kudos or accept it as a solution so it can help others with a similar question.

 

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.