[go: nahoru, domu]

Skip to content

Latest commit

 

History

History
62 lines (42 loc) · 1.85 KB

PaymentApi.md

File metadata and controls

62 lines (42 loc) · 1.85 KB

GeinsSdkApiMgmtJavascript.PaymentApi

All URIs are relative to https://mgmtapi.geins.io

Method HTTP request Description
queryPaymentOptions POST /API/Payment/Query Query payment options

queryPaymentOptions

[PaymentModelsPaymentOption] queryPaymentOptions(query)

Query payment options

Example

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);
  }
});

Parameters

Name Type Description Notes
query PaymentModelsPaymentOptionQuery The payment query

Return type

[PaymentModelsPaymentOption]

Authorization

apiKey, basicAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json