Payment APIs
Access reseller's create token, create payment request, etc apis here.
Create Token
You can generate an API token from Create Token at any time. Endpoint - https://server.paygic.in/api/v2/reseller/createResellerAuthToken Method - POST We used here axios node library. You can use any http module
await axios.post(
"https://server.paygic.in/api/v2/reseller/createResellerAuthToken",
{
rid: "Your Reseller ID", //Example - PAYGIC
password: "Your Account Password";
},
);
//Response
{
status: true,
statusCode: 200,
msg: "Token generated successfully",
data: { token, expires: "30 Days" },
}Create UPI Order Request
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/reseller/createPaymentRequest
Method - POST
We used here axios node library. You can use any http module like Fetch, Plain HTTP request and more.
Create UPI Collect Request
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/reseller/createCollectRequest
Method - POST
We used here axios node library. You can use any http module like Fetch, Plain HTTP request and more.
Check Status
Endpoint - https://server.paygic.in/api/v2/reseller/checkPaymentStatus
Method - POST
We used here axios node library. You can use any http module like Fetch, Plain HTTP request and more.
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