Revoke authorization
When a buyer is to disable the Scan to Link service, they may cancel the service within your client or the payment method client. How they cancel the service determines your required actions:
- If the buyer cancels the service within your client, invalidate the payment token of the payment method using the revoke API. In the API request, specify the payment token (accessToken) used to initiate an Scan to Link payment. After a successful API call, the payment token (accessToken) will become invalid.
- Some payment methods support buyers canceling the Scan to Link service within the payment method client. In this case, you need to configure the address to receive authorization cancellation notifications. When an Scan to Link authorization is canceled within the payment method client, you will receive an authorization cancellation notification. The notification will indicate the payment token (accessToken) that is invalidated for the canceled Scan to Link service. The following example shows an asynchronous notification of an authorization cancellation:
copy
{
"authorizationNotifyType": "TOKEN_CANCELED",
"accessToken": "28100103_20215703001538122119",
"result": {
"resultCode": "SUCCESS",
"resultMessage": "success",
"resultStatus": "S"
}
}
After receiving the asynchronous notification, return a response as instructed in the Requirements. Otherwise, Antom will resend the asynchronous notification.