Direct Charge Webhook
Direct Charge Webhook
After a successful Direct Charge transaction, a webhook is sent to your webhook url with the details of that transaction.
Sample Response
{
"event": "direct_debit.success",
"transaction": {
"id": "8b0dd4ad-2652-4dbd-9f7f-354089257344",
"amount": 50000,
"channel": "direct_charge",
"refund": false,
"checkout": null,
"user": {
"reference": "73f03de5-1043-4ad1-bc2e-aa4d94ebee4f",
"name": "Post Malone",
"identifier": "posty",
"identifier_type": "username",
"email": "post@malone.com",
"created_at": "2021-04-19T19:50:26.000000Z",
"updated_at": "2022-02-14T22:58:25.000000Z"
},
"charge": 500,
"currency": "NGN",
"mode": "credit",
"reference": "f4fadb4627f358edfbef0cad39705dee",
"remark": "Direct Charge via Chain",
"status": "success",
"type": "peer",
"meta": null,
"peer": {
"business": {
"name": "Cash App",
"logo": "https://palaciodepeer.s3.us-east-2.amazonaws.com/business_logos/UJimBqYOu7KQIM3DwCWOuKjkDbBbVLYRuYRTgxKh.png",
"logo_colour": "#77cc33"
},
"user": {
"name": "Kamsi Oleka",
"identifier": "ezemmuo",
"identifier_type": "username"
}
},
"updated_at": "2023-05-19T16:13:31.000000Z",
"created_at": "2023-05-19T16:13:31.000000Z"
}
}
Webhook transaction object
Key | Description |
---|---|
channel | The channel the transaction went through. In this case, direct_charge |
user | This is the user funding their wallet |
peer.user | This is the user being charged for the transaction |
peer.business | This is the business processing the initiated charge request |