Anchor | ||||
---|---|---|---|---|
|
Return Webhook
POST https://<return_url>?res=12345
Headers
Content-Typestring
Content type.
Authorizationstring
Access token generated from create token request.
Attributes
transaction_idstring
Transaction ID.
statusstring
Status.
notestring
Note.
Request
Code Block |
---|
POST https://my_domain/return?res=QkwtMDBGN0Q…..1Ng%3D%3D Content-Type: application/json Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbG... { "transaction_id": 210542***, "status": "Captured", "message": "Status changed to Captured." } |
Response
Code Block |
---|
{ } |
Anchor | ||||
---|---|---|---|---|
|
Notification Webhook
POST https://<notification_url>
Headers
Content-Typestring
Content type.
Authorizationstring
Access token generated from create token request.
Attributes
transaction_idstring
Transaction ID.
statusstring
Status.
notestring
Note.
Request
Code Block |
---|
POST https://my_domain/notifications HTTP/1.1
Content-Type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbG...
{
"transaction_id": 210542***,
"status": "Captured",
"note": "Status changed to Captured."
} |
Response
Code Block |
---|
HTTP/1.1 200 OK
Content-Type: application/json
{
"message": "Success"
} |