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.

EventDescriptionDefault (on/off)
checkout.paidpayment_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.

EventDescriptionDefault (on/off)
payment_attempt.createdWhen a payment_attempt is created for the checkoutOn
payment_attempt.failedWhen a payment_attempt fails for the checkoutOn
payment_attempt.processingWhen the payment_attempt moves to the processing stateOff
payment_attempt.succeededWhen the payment_attempt succeedsOn

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.

EventDescriptionDefault (on/off)
checkout.createdA checkout object is createdOff
checkout.expiredAn active checkout object gets expiredOn
checkout.tax_invoice_generatedTriggered when Tazapay generates a tax invoiceOn

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"
}