Callback
You can register a callback URL to receive asynchronous updates for a payment.
The URL needs to be https and support a PUT method
Request
PUT $(your-callback-url)
Accept: application/json
{
"payment": {
"id": "1d73c81d-39a6-44d1-bb45-69f6a49afa96",
"type": "PAYMENT",
"status": "AUTHORIZED",
"created": 1599212538000,
"cardAlias": "168cf1c7-b6c2-420a-bd98-ed7d51080bb2",
"cardType": "CARD",
"amount": 123.12,
"currency": "SEK",
"purchaseReference": "ref 123",
"callback": true
}
}
Response
Should return an HTTP 200 response code.