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
Callback request body
Request Body schema: application/json
object (PaymentCallbackDto) Payment callback DTO, same as the regular payment DTO but the dates are expressed as milliseconds since epoch | |||||||||||||||||||||||||||||||
|
application/json
{- "payment": {
- "id": "7e16763b-9517-05a7-75d9-fcad069f54a7",
- "merchantId": "sdk-test-merchant",
- "type": "PAYMENT",
- "status": "AUTHORIZED",
- "created": 1599212538000,
- "cardAlias": "sdk-test-swish",
- "cardType": "SWISH",
- "amount": 123.12,
- "currency": "SEK",
- "purchaseReference": "350266",
- "processorReference": "swmock-ef5c7b71-e2e5-b5b7-cba2-b7c2b4b65bcd",
- "processorCompleted": 1599212542126,
- "callback": true
}
}
Response
Should return an HTTP 200 response code.