Status and CallBack
Check Status
Endpoint - https://server.paygic.in/api/v2/checkPaymentStatus
Method - POST
We used here axios node library. You can use any http module like Fetch, Plain HTTP request and more.
await axios.post(
"https://server.paygic.in/api/v2/checkPaymentStatus",
{
mid: "Your Merchant ID", //Example - PAYGIC
merchantReferenceId: "Your reference ID unique and a string",//Example- bd79da4cc3ff1
},
{
headers: {
token: "Your Auth Token"
}
}
);
//Response
{
status: true,
statusCode: 200,
txnStatus: "SUCCESS",
msg: "Transaction is successful",
data: {
amount: 10,
mid: ”PAYGIC”,
paygicReferenceId: “PAYGIC1729183960695592E9”,
merchantReferenceId: “5c5a5f8af5397”,
successDate: 1729247938098,
}
}
Callback or Web-hook
You will recieve a instant callback carrying transaction status and data.
You can use this data to update your transaction status at your end or anything you implement.
Note: Callback URL is needed from your side. You have to create it on your server. Example your callback url is - https://yourdomain.com/callback. This route should be resolve by POST method request.
Method - POST
Response
Last updated