checkout_transaction event to receive notification
when new transaction is created or updated (captured/refunded or voided)
See Webhooks for more information about creating webhook subscription
Checkout transaction event
Example of event a subscription can receiveSee Checkout API to get more details about the transaction object
included in the event
Handling corrected events
An event on a transaction can include acorrection object when the event’s
own outcome didn’t reflect the transaction’s actual state. For example, a
capture can time out without a confirmed result even though the transaction was
captured. When this happens, Dintero adds a later event whose correction
object gives the real status and references the event(s) that rectify the transaction:
correction.status: The transaction status to use once this event is applied. Use this value to determine the transaction status.correction.event_ids: The IDs of the earlier events that have been added to rectify the transaction. It can be an empty array if no correction events were necessary.
correction object.
Note that you do not get a separate notification for correction events that are added
to rectify the transaction state.
See below for an example transaction:
3 is a capture attempt that initially appears to fail. Its correction.status
is AUTHORIZED with an empty event_ids, meaning no correction was done and the
transaction appeared to remain authorized.
Event 5 is a second capture attempt, but it fails as the transaction was
already captured (event 3 actually succeeded). So the event gets success=false,
but includes a correction pointing to event 4, which is the result of the
successful capture. The transaction status after the second capture can be
determined from correction.status in event 5.
In this example, you receive notifications for events 3 and 5. You do not
receive a notification for correction event 4, so handle it when you receive
the notification for event 5.
Note that in the above example you will get callbacks for event 3 and
event 5. There is no callback for the correction event 4, this needs to be handled
when receiving the callback for event 5.