Utility
https://sandbox-open.legionpays.com/v1/utility/payment/channelThis API will give you a list of payment methods.
Credentials
npx api install "@legionpay/v1.0#1k7d63fkmfdu9rlh"import legionpay from '@api/legionpay';
legionpay.getPaymentMethod({'x-signature': 'xxxx', 'x-timestamp': '1233232'})
.then(({ data }) => console.log(data))
.catch(err => console.error(err));{
"status": 200,
"success": true,
"data": [
{
"name": "BCA",
"code": "014",
"type": "va",
"isActive": true,
"img": "localhost/images/method/014-6419973dbedd18275e822258.webp"
},
{
"name": "BRI",
"code": "002",
"type": "va",
"isActive": true,
"img": "localhost/images/method/002-6419973dbedd18275e82225a.webp"
},
{
"name": "CIMB",
"code": "022",
"type": "va",
"isActive": true,
"img": "localhost/images/method/022-6419973dbedd18275e82225c.webp"
}
]
}Request Session
Recent request history resets when this page is refreshed. Current session: 0