Payin

These are the events for which webhooks will be triggered

Payin Status specific events

These are the events created and triggered when the status of the payin changes.

EventDescriptionDefault (on/off)
payin.requires_payment_methodTriggers when the status is requires_payment_methodOn
payin.requires_actionTriggers when the status is requires_actionOn
payin.processingTriggers when the status is processingOn
payin.succeededTriggers when the status is succeededOn
payin.cancelledTriggers when the payin is cancelledOff

payin.requires_payment_method

{
  "type":"payin.requires_payment_method",
  "created_at" : "2023-12-25 21:59:59",
  "data":{
    "id":"pay_ahfafooi7fibakbfahoan",
    "object":"payin",
    "status":"requires_payment_method",
    "metadata":{},
    ......
    ...... //Entire payin object
    ........
  },
  "id":"evt_auigfiafaaaufaeoanfgohuehg",
  "object":"event"
}

payin.requires_action

{
  "type":"payin.requires_action",
  "created_at" : "2023-12-25 21:59:59",
  "data":{
    "id":"pay_ahfafooi7fibakbfahoan",
    "object":"payin",
    "status":"requires_action",
    "payment_method_details":{
      ....
      .....
    },
    "latest_payment_attempt_data":{
      ....
      ....
    },
    "metadata":{},
    ......
    ...... //Entire payin object
    ........
  },
  "id":"evt_auigfiafaaaufaeoanfgohuehg",
  "object":"event"
}

payin.processing

{
  "type":"payin.processing",
  "created_at" : "2023-12-25 21:59:59",
  "data":{
    "id":"pay_ahfafooi7fibakbfahoan",
    "object":"payin",
    "status":"processing",
    "payment_method_details":{
      ....
      .....
    },
    "latest_payment_attempt_data":{
      ....
      ....
    },
    "metadata":{},
    ......
    ...... //Entire payin object
    ........
  },
  "id":"evt_auigfiafaaaufaeoanfgohuehg",
  "object":"event"
}

payin.succeeded

{
  "type":"payin.succeeded",
  "created_at" : "2023-12-25 21:59:59",
  "data":{
    "id":"pay_ahfafooi7fibakbfahoan",
    "object":"payin",
    "status":"succeeded",
    "payment_method_details":{
      ....
      .....
    },
    "latest_payment_attempt_data":{
      ....
      ....
    },
    "metadata":{},
    ......
    ...... //Entire payin object
    ........
  },
  "id":"evt_auigfiafaaaufaeoanfgohuehg",
  "object":"event"
}

payin.cancelled

{
  "type":"payin.cancelled",
  "created_at" : "2023-12-25 21:59:59",
  "data":{
    "id":"pay_ahfafooi7fibakbfahoan",
    "object":"payin",
    "status":"cancelled",
    "metadata":{},
    ......
    ...... //Entire payin object
    ........
  },
  "id":"evt_auigfiafaaaufaeoanfgohuehg",
  "object":"event"
}

Payment_Attempt Specific Events:

These events are created and triggered when something of interest happens for a payment attempt.

EventDescriptionDefault (on/off)
payment_attempt.failedWhen a payment_attempt failsOn
payment_attempt.succeededWhen the payment_attempt succeedsOff

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.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:

EventDescriptionDefault (on/off)
payin.createdA payin is createdOff

payin.created

{
  "type":"payin.created",
  "created_at" : "2023-12-25 21:59:59",
  "data":{
    "id":"pay_ahfafooi7fibakbfahoan",
    "object":"payin",
    "status":"requires_payment_method",
    "metadata":{},
    ......
    ...... //Entire payin object
    ........
  },
  "id":"evt_auigfiafaaaufaeoanfgohuehg",
  "object":"event"
}