All URIs are relative to https://api.elepay.io, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
listCodePaymentMethods() | GET /code-setting/payment-methods | List all enabled EasyQR payment methods |
listCodePaymentMethods(): \Elepay\Model\CodePaymentMethodResponse
List all enabled EasyQR payment methods
EasyQR利用できる決済方法を取得します。
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
$config = Elepay\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
// Configure Bearer authorization: bearerAuth
$config = Elepay\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Elepay\Api\CodeSettingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->listCodePaymentMethods();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CodeSettingApi->listCodePaymentMethods: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
\Elepay\Model\CodePaymentMethodResponse
- Content-Type: Not defined
- Accept:
application/json;charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]