Paygic Docs
  • Introduction
  • Create Token
  • Payment Page - Beta
  • UPI Intent
  • UPI Collect
  • Status and CallBack
  • Wordpress Plugin
  • Reseller
    • Onboard Merchant
    • Onboard Static Merchant
    • Payment APIs
  • Get Fee Data
  • Merchant Balance
Powered by GitBook
On this page
  • Check Status
  • Callback or Web-hook

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

{
  "status": true,
  "statusCode": 200,
  "txnStatus": "SUCCESS",
  "msg": "Transaction is successful",
  "data": {
    "paymentType": "Dynamic", //Static for Static QR Payments
    "amount": "500.00",
    "mid": "MERCHANT123",
    "paygicReferenceId": "PAYGIC123",
    "merchantReferenceId": "MREF123",
    "successDate": "2023-12-31T23:59:59Z",
    "UTR": "UTR123456",
    "payerName": "John Doe",
    "payeeUPI": "john@upi"
  }
}
PreviousUPI CollectNextWordpress Plugin

Last updated 4 months ago