All URIs are relative to https://mgmtapi.geins.io
Method | HTTP request | Description |
---|---|---|
queryPaymentOptions | POST /API/Payment/Query | Query payment options |
[PaymentModelsPaymentOption] queryPaymentOptions(query)
Query payment options
import GeinsSdkApiMgmtJavascript from '@geins/sdk-api-mgmt-javascript';
let defaultClient = GeinsSdkApiMgmtJavascript.ApiClient.instance;
// Configure API key authorization: apiKey
let apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';
// Configure HTTP basic authorization: basicAuth
let basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME';
basicAuth.password = 'YOUR PASSWORD';
let apiInstance = new GeinsSdkApiMgmtJavascript.PaymentApi();
let query = new GeinsSdkApiMgmtJavascript.PaymentModelsPaymentOptionQuery(); // PaymentModelsPaymentOptionQuery | The payment query
apiInstance.queryPaymentOptions(query, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
query | PaymentModelsPaymentOptionQuery | The payment query |
- Content-Type: application/json
- Accept: application/json