All URIs are relative to https://api.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 (string xApiKey, string xAppKey, float xVersion, string origin, string id)
This API expires the payment Intent or link.
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class SecurePaymentintentsExpirationsPostExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.anddone.com";
var apiInstance = new SecurePaymentIntentApi(config);
var xApiKey = "xApiKey_example"; // string | an authorization header
var xAppKey = "xAppKey_example"; // string | an authorization header
var xVersion = 8.14D; // float | x-version
var origin = "origin_example"; // string | origin
var id = "id_example"; // string | Payment Intent Id
try
{
// This API expires the payment Intent or link.
PaymentIntentExpiresResponse result = apiInstance.SecurePaymentintentsExpirationsPost(xApiKey, xAppKey, xVersion, origin, id);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling SecurePaymentIntentApi.SecurePaymentintentsExpirationsPost: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// This API expires the payment Intent or link.
ApiResponse<PaymentIntentExpiresResponse> response = apiInstance.SecurePaymentintentsExpirationsPostWithHttpInfo(xApiKey, xAppKey, xVersion, origin, id);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling SecurePaymentIntentApi.SecurePaymentintentsExpirationsPostWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| xApiKey | string | an authorization header | |
| xAppKey | string | an authorization header | |
| xVersion | float | x-version | |
| origin | string | origin | |
| id | string | Payment Intent Id |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful operation | - |
| 404 | Not Found | - |
| 500 | Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PaymentIntentResponse SecurePaymentintentsPost (string xApiKey, string xAppKey, float xVersion, string origin, PaymentIntentRequest? paymentIntentRequest = null)
This API is use to create Secure payment Intent.
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class SecurePaymentintentsPostExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.anddone.com";
var apiInstance = new SecurePaymentIntentApi(config);
var xApiKey = "xApiKey_example"; // string | an authorization header
var xAppKey = "xAppKey_example"; // string | an authorization header
var xVersion = 8.14D; // float | x-version
var origin = "origin_example"; // string | origin
var paymentIntentRequest = new PaymentIntentRequest?(); // PaymentIntentRequest? | Payment Intent Request (optional)
try
{
// This API is use to create Secure payment Intent.
PaymentIntentResponse result = apiInstance.SecurePaymentintentsPost(xApiKey, xAppKey, xVersion, origin, paymentIntentRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling SecurePaymentIntentApi.SecurePaymentintentsPost: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// This API is use to create Secure payment Intent.
ApiResponse<PaymentIntentResponse> response = apiInstance.SecurePaymentintentsPostWithHttpInfo(xApiKey, xAppKey, xVersion, origin, paymentIntentRequest);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling SecurePaymentIntentApi.SecurePaymentintentsPostWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| xApiKey | string | an authorization header | |
| xAppKey | string | an authorization header | |
| xVersion | float | x-version | |
| origin | string | origin | |
| paymentIntentRequest | PaymentIntentRequest? | Payment Intent Request | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful operation | - |
| 400 | Bad Request | - |
| 404 | Not Found | - |
| 500 | Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]