Error on payment execute

strunk
Contributor
Contributor

Hello,

 

last evening I got a Http 503 (service unavailable) while executing a payment in the sandbox environment. When I checked the seller account later, I saw that the payment was successfully executed and in the payer account also.

 

The problem is that our system thoughts, due to the error, that the payment was not successful and gave an error message to the user. The user places then a new order which has lead to a new payment. The result at the end was that there were two payments.

 

I'm wondering if this is a normal situation and what the correct error handling in such a situation is. Should the system try to execute again? Or check the status of the payment? And when?

 

 

Login to Me Too
1 ACCEPTED SOLUTION

Accepted Solutions
Solved

MTS_Andre
Moderator
Moderator

Hi, in this case looks like the system could not execute it immediately as http 503 means "The server cannot handle the request for a service due to temporary maintenance".

 

You can either catch this error message and take some actions in your code or rely on the IPN / WebHook notifications that, once the transaction will be completed, will notify your backend.

View solution in original post

Login to Me Too
1 REPLY 1
Solved

MTS_Andre
Moderator
Moderator

Hi, in this case looks like the system could not execute it immediately as http 503 means "The server cannot handle the request for a service due to temporary maintenance".

 

You can either catch this error message and take some actions in your code or rely on the IPN / WebHook notifications that, once the transaction will be completed, will notify your backend.

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.