Skip to main content

Transaction Management

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)
Origin URL or IP address provided to AndDone as an allowed origin.
Content-Type application/json
Query Params
id Payment Token
Example Request
https://api.uat.anddone.com/secure/paymentintents/expirations?id=jxbamKvD

Path Parameters

Parameter Description
Payment Token The token used to initiate AndDoneJS

Body Response Example (JSON)