Checkout
These are the events for which webhooks will be triggered
Payment_Status-specific events:
These are the events created and triggered when the payment_status of the checkout object changes.
Event | Description | Default (on/off) |
---|---|---|
checkout.paid | payment_status of the checkout object changes to paid. | On |
checkout.paid
{
"type":"checkout.paid",
"created_at":958793503,
"data":{
"id":"chk_ahfafooi7ibakbfahoan",
"object":"checkout",
"payin":"pay_bfiuafuiafianifnao",
"created_at":7942792,
"expiry_at":7967893,
"status":"expired",
"payment_status":"paid",
"invoice_currency":"usd",
"amount":"6700",
"customer_details":{
"country":"US",
"email":"[email protected]",
"name":"Adam Smith",
"phone":{
"country_code":"65",
"number":"67894321"
}
},
"transaction_description":"1 x Item",
"reference_id":"55679-7657",
"metadata":{},
......
...... //Entire checkout object
........
},
"id":"evt_auigfianfoangohuehg",
"object":"event"
}
Payment_Attempt Specific Events:
These events are created and triggered when something of interest happens for a payment attempt of a checkout.
Event | Description | Default (on/off) |
---|---|---|
payment_attempt.created | When a payment_attempt is created for the checkout | On |
payment_attempt.failed | When a payment_attempt fails for the checkout | On |
payment_attempt.processing | When the payment_attempt moves to the processing state | Off |
payment_attempt.succeeded | When the payment_attempt succeeds | On |
payment_attempt.created
{
"type":"payment_attempt.requires_action",
"created_at":958793503,
"data":{
"id":"pat_ahfafooi7ibakbfahoan",
"object":"payment_attempt",
"payin":"pay_bfiuafuiafianifnao",
"created_at":7942792,
....
.... ///Entire payment_attempt object
....
},
"id":"evt_auigfianfoangohuehg",
"object":"event"
}
payment_attempt.failed
{
"type":"payment_attempt.failed",
"created_at":958793503,
"data":{
"id":"pat_ahfafooi7ibakbfahoan",
"object":"payment_attempt",
"payin":"pay_bfiuafuiafianifnao",
"created_at":7942792,
....
.... ///Entire payment_attempt object
....
},
"id":"evt_auigfianfoangohuehg",
"object":"event"
}
payment_attempt.processing
{
"type":"payment_attempt.processing",
"created_at":958793503,
"data":{
"id":"pat_ahfafooi7ibakbfahoan",
"object":"payment_attempt",
"payin":"pay_bfiuafuiafianifnao",
"created_at":7942792,
....
.... ///Entire payment_attempt object
....
},
"id":"evt_auigfianfoangohuehg",
"object":"event"
}
payment_attempt.succeeded
{
"type":"payment_attempt.succeeded",
"created_at":958793503,
"data":{
"id":"pat_ahfafooi7ibakbfahoan",
"object":"payment_attempt",
"payin":"pay_bfiuafuiafianifnao",
"created_at":7942792,
....
.... ///Entire payment_attempt object
....
},
"id":"evt_auigfianfoangohuehg",
"object":"event"
}
Other Events:
These events are created and triggered when something interesting happens with the checkout object not related to a status change.
Event | Description | Default (on/off) |
---|---|---|
checkout.created | A checkout object is created | Off |
checkout.expired | An active checkout object gets expired | On |
checkout.tax_invoice_generated | Triggered when Tazapay generates a tax invoice | On |
checkout.created
{
"type":"checkout.created",
"created_at":958793503,
"data":{
"id":"chk_ahfafooi7ibakbfahoan",
"object":"checkout",
"payin":"pay_aohfoahnofanofna",
.....
..... //Entire Checkout object
.....
},
"id":"evt_auigfianfoangohuehg",
"object":"event"
}
checkout.expired
{
"type":"checkout.expired",
"created_at":958793503,
"data":{
"id":"chk_ahfafooi7ibakbfahoan",
"object":"checkout",
"payin" : "pay_aofnoianfoanfnafn",
....
.... //Entire checkout object
....
}
"id":"evt_auigfianfoangohuehg",
"object":"event"
}
checkout.tax_invoice_generated
{
"type":"checkout.tax_invoice_generated",
"created_at":"2024-04-01T08:04:47.649905272Z",
"data":{
"id":"chk_ahfafooi7ibakbfahoan",
"object":"checkout",
"payin" : "pay_aofnoianfoanfnafn",
"payment_status":"paid",
"transaction_documents":[
{
"type":"tax_invoice",
"url": "https://transacion.tazapay.com/invoice/download/invoiceDownload?U2FsdGVkX1/TvmUkxGLBYS/vAmk7l7wuzs2poo/pLQjjbITj8mVX0siR7guU3zA7goWnX3hLmWc2gtNdCoQv0g=="
}
],
....
.... //Entire checkout object
....
}
"id":"evt_auigfianfoangohuehg",
"object":"event"
}
Updated 8 months ago