All URIs are relative to https://api.elepay.io
| Method | HTTP request | Description |
|---|---|---|
| listCodePaymentMethods | GET /code-setting/payment-methods | List all enabled EasyQR payment methods |
CodePaymentMethodResponse listCodePaymentMethods()
List all enabled EasyQR payment methods
EasyQR利用できる決済方法を取得します。
// Import classes:
import io.elepay.client.charge.ApiClient;
import io.elepay.client.charge.ApiException;
import io.elepay.client.charge.Configuration;
import io.elepay.client.charge.auth.*;
import io.elepay.client.charge.models.*;
import io.elepay.client.charge.api.CodeSettingApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.elepay.io");
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
CodeSettingApi apiInstance = new CodeSettingApi(defaultClient);
try {
CodePaymentMethodResponse result = apiInstance.listCodePaymentMethods();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CodeSettingApi#listCodePaymentMethods");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json;charset=utf-8
| Status code | Description | Response headers |
|---|---|---|
| 200 | EasyQR利用できる決済方法リスト | - |