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

UPI Collect

Create Order

Your API requests are authenticated using API keys. Any request that doesn't include an API key will return an error.

You can generate an API token from Create Token at any time.

Endpoint - https://server.paygic.in/api/v2/createPaymentRequest

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/createCollectRequest",
      {
        
        mid: "Your Merchant ID", //Example - PAYGIC
        amount: "Amount should be between 1-100000 and numeric",//Example - 200
        merchantReferenceId: "Your reference ID unique and a string",//Example- bd79da4cc3ff1
        customer_name: "Your Customer Name",
        customer_email: "Your Customer Email",
        customer_mobile: "Your Customer Name",
        "vpa": "upiId@ptaxis",
        "remark": "Collection Payment"
        
        
      },{
      headers: {
      token: "Your Auth Token"
      }
      }
    );
    
    //Response
           {
              "status": true,
              "statusCode": 200,
              "msg": "Collect request created successfully",
              "data": {
                  "expiry": "2024-10-23T17:13:21+05:30",
                  "amount": "10",
                  "merchantReferenceId": "bd79da4ccff46"
              }
            }
    
PreviousUPI IntentNextStatus and CallBack

Last updated 2 months ago