Payment created
Webhook event triggered when a new payment occurs.
Example
{
"event": {
"type": "payment_created",
"user": {
"id": "360262021515577867",
"email": "test_user@blink.net",
"lastName": "",
"createdAt": "2020-11-25T12:35:41.317225Z",
"firstName": ""
},
"payment": {
"id": "360262021448469001",
"amount": {
"amount": "0.05",
"currency": "usd",
"amountPrecise": 50000,
"amountInSubunits": 5,
"amountPreciseExponent": 6
},
"status": "succeeded",
"createdAt": "2020-11-25T12:35:41.987661Z",
"resource_id": "1234567890",
"resource_type": "purchase"
},
"merchant": {
"id": "20",
"alias": "MERCHANT"
},
"timestamp": "2020-11-25T12:35:42.003900Z"
}
}
Description
| name | type | always present | description |
|---|---|---|---|
event | Object | ☑ | an object describing the new payment details: user, payment and merchant |
event.type | String | ☑ | always payment_created |