All URIs are relative to https://api.uat.anddone.com
| Method | HTTP request | Description |
|---|---|---|
| securePaymentintentsExpirationsPost | POST /secure/paymentintents/expirations | This API expires the payment Intent or link. |
| securePaymentintentsPost | POST /secure/paymentintents | This API is use to create Secure payment Intent. |
PaymentIntentExpiresResponse securePaymentintentsExpirationsPost(xApiKey, xAppKey, xVersion, origin, id)
This API expires the payment Intent or link.
import SecureApi from 'secure_api';
let apiInstance = new SecureApi.SecurePaymentIntentApi();
let xApiKey = "xApiKey_example"; // String | an authorization header
let xAppKey = "xAppKey_example"; // String | an authorization header
let xVersion = 3.4; // Number | x-version
let origin = "origin_example"; // String | origin
let id = "id_example"; // String | Payment Intent Id
apiInstance.securePaymentintentsExpirationsPost(xApiKey, xAppKey, xVersion, origin, id, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| xApiKey | String | an authorization header | |
| xAppKey | String | an authorization header | |
| xVersion | Number | x-version | |
| origin | String | origin | |
| id | String | Payment Intent Id |
No authorization required
- Content-Type: Not defined
- Accept: application/json
PaymentIntentResponse securePaymentintentsPost(xApiKey, xAppKey, xVersion, origin, opts)
This API is use to create Secure payment Intent.
import SecureApi from 'secure_api';
let apiInstance = new SecureApi.SecurePaymentIntentApi();
let xApiKey = "xApiKey_example"; // String | an authorization header
let xAppKey = "xAppKey_example"; // String | an authorization header
let xVersion = 3.4; // Number | x-version
let origin = "origin_example"; // String | origin
let opts = {
'paymentIntentRequest': new SecureApi.PaymentIntentRequest() // PaymentIntentRequest | Payment Intent Request
};
apiInstance.securePaymentintentsPost(xApiKey, xAppKey, xVersion, origin, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| xApiKey | String | an authorization header | |
| xAppKey | String | an authorization header | |
| xVersion | Number | x-version | |
| origin | String | origin | |
| paymentIntentRequest | PaymentIntentRequest | Payment Intent Request | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json