All URIs are relative to https://api.swirepay.com/v1
Method | HTTP request | Description |
---|---|---|
getPayment | GET /payment | Get payment |
PaymentResponse getPayment(xApiKey)
Get payment
Get payment
import SwirepayPaymentApi from 'swirepay_payment_api';
let defaultClient = SwirepayPaymentApi.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
let apiInstance = new SwirepayPaymentApi.PaymentApi();
let xApiKey = "xApiKey_example"; // String |
apiInstance.getPayment(xApiKey, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
xApiKey | String |
- Content-Type: Not defined
- Accept: application/json