Get Payment status
There are two ways to get this done.
- Listening for payment webhooks
We covered how to create a webhook listener here in the getting setup guide - if you haven't done this already, go back to this step to get ready to receive webhooks. - Retrieve the order by it’s ID
GET /orders/{orderID}
You can retrieve directly the latest status by specifying the order ID in theGET
Request.
{
"status": "success",
"data": {
"orderId": "OR-241123095752578",
"type": "gaming",
"depositCurrency": "EUR",
"depositAmount": 25,
"withdrawCurrency": "USDC",
"status": "initiated",
"senderName": {
"firstName": "John",
"lastName": "Doe"
},
"partnerContext": {
"testfield1": "1234"
},
"partnerId": "order-081124_00001",
"bankTxnId": []
}
}
Updated 4 months ago