Payment Methods Request
Method to get the configured payment methods that can be used to generate a payment request
URL
GET
/merchant-api/v2/configs/payment-methods
HTTP response codes
200
- Successful operation401
- Unauthorized, maybe the credentials are missing. For more information, see security403
- Forbidden, the HMAC may be wrong or out of date. For more information, see security
Response
The endpoint returns an array of strings with all the payment methods available.
Example
Request
fetch('https://....../merchant-api/v2/configs/payment-methods', {
method: 'GET',
headers: {
Authorization: 'Basic xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
'X-Authorization': 'hmac example:xxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxx/xxx=:nonce:xxxxxxxxxx',
'Content-Type': 'application/json'
}
})
Response
[
"Credit",
"Invoice"
]