Skip to main content

Payment Intents

POST Payment Intent Expiration

The POST Payment Intent Expiration method can be used to immediately expire a payment intent by providing the paymentToken associated with the intent.

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.

API Endpoint
https://api.uat.anddone.com/secure/paymentintents/expirations?id={paymentToken}

This API is used to expire a specific payment intent by Id.

API Data Details
URI secure/paymentintents/expirations
Method POST
Authorization API Key Authorization
Authorization
x-api-key API key {env_merchantAccessKey}
Request Headers
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

Parameter Description
id The payment intent id (payment token).

Body Response Example (JSON)