Utility
https://sandbox-open.legionpays.com/v1/status/payment/{transactionRef}This API will give you the latest status of a payment transaction.
Please include your transactionRef in this path params.
Credentials
npx api install "@legionpay/v1.0#1k7d63fkmfdu9rlh"import legionpay from '@api/legionpay';
legionpay.statusPayment({
transactionRef: 'yourTransactionRef',
'X-SIGNATURE': 'xxx',
'X-TIMESTAMP': '123123'
})
.then(({ data }) => console.log(data))
.catch(err => console.error(err));{
"status": 200,
"success": true,
"data": {
"amount": 10000,
"fee": 0,
"expired": "2020-12-01T00:00:00.001Z",
"channel": "qris-id",
"channelName": "QRIS",
"refId": "123456789012345678",
"partnerRefId": "123456789012345678",
"status": "pending",
"desc": "Success proceed your Accepting Payment Request",
"paymentString": "dummy-payment-string",
"customerName": "Test Customer Name"
}
}Request Session
Recent request history resets when this page is refreshed. Current session: 0