Webhooks

Process webhook

After charge successful paid or expired you receive this webhook:
Header:
1
WebhookSignature: <COMPUTED_HMAC_FROM_JSON_BODY_WITH_SECRET_KEY>
Copied!
Body:
1
{
2
"code":"XBC12D", //payment code
3
"id":1, //payment id
4
"status":"PAID" // EXPIRED,PAID
5
"meta":{
6
"your-meta-key":"your-meta-value"
7
}
8
}
Copied!
after successful accepting you need send response:
1
{
2
"ok":true
3
}
Copied!
Last modified 2yr ago
Copy link