Each payment intent is assigned an expiration period when it is created. Once the expiration period has passed, the payment intent can no longer be used to perform transactions. In some cases, you may want to deactivate a payment intent before the expiration period has passed, for example when a customer cancels a transaction. The POST Payment Intent Expiration method can be used to immediately expire a payment intent by providing the paymentToken
associated with the intent.
This API is used to expire a specific payment intent by Id.
URI
|
secure/paymentintents/expirations
|
Method
|
POST
|
Authorization
|
API Key Authorization
|
x-api-key
|
API key {env_merchantAccessKey}
|
x-app-key
|
Merchant ID or App Key {env_merchantId}
|
x-version
|
API version (e.g., 2.1). If no version is specified, the call will default to version 2.0 of the API.
|
Origin
|
URL or IP address provided to AndDone as an allowed origin.
|
Content-Type
|
application/json
|
Query String Parameters
id
|
The payment intent id (payment token).
|
Body Response Example (JSON)