Callback with approved status not being considered to proceed with the transaction
Payments
•
ID: 1129281
Backlog
Published on11/4/2024
•
Last updated on11/4/2024
1 min read
Summary
Even though the gateway correctly receives the callback indicating that the payment status is approved, the transaction does not progress to authorized
and then approved
. A subsequent authorization request is sent, and since the return is undefined
, the transaction remains in the authorizing
status until the number of retries is exhausted.
Simulation
For this issue to occur, the gateway must retry at the same timestamp as it received the callback. It is not simple to reproduce this behavior, as hitting the exact same timestamp is quite difficult.
Workaround
There are two actions the partner can take:
- If the payment is approved, respond to subsequent authorization request calls from the gateway with this status rather than undefined.
- Increase the number of retries (
delayToCancel
) so that the gateway makes more attempts.