UPI Payment Gateway & REST API Integration
Integrate dynamic UPI QR codes, GPay one-tap share, and automated bank UTR verification into any website, mobile app, or SaaS platform in under 5 minutes.
How Collect UPI Payment Gateway Integration Works (3-Step Flow)
- Link Your Merchant VPA: Log in to the Collect UPI dashboard and connect your existing PhonePe Business, Paytm Business, BharatPe, HDFC Vyapar, Google Pay, Amazon Pay, FreeCharge, SBI, or MobiKwik merchant account via OTP.
- Create Order via REST API: Send a `POST` request to `/api/create-order` with `user_token`, `amount`, `order_id`, and `redirect_url`. Receive a dynamic `payment_url` in milliseconds.
- Instant Settlement & Webhook: The customer pays via QR or UPI app; funds settle directly into your bank account (0% fee) and Collect UPI dispatches a real-time `SUCCESS` webhook with the 12-digit bank UTR.
1. Create Order Endpoint (`POST /api/create-order`)
POST /api/create-order HTTP/1.1
Content-Type: application/x-www-form-urlencoded
customer_mobile=7038146526
&user_token=YOUR_API_TOKEN
&amount=250
&order_id=ORD_987654321
&redirect_url=https://yourdomain.com/success
&remark1=OrderPayment
&remark2=CustomMeta
// HTTP 201 JSON Response:
{
"status": true,
"message": "Order Created Successfully",
"result": {
"orderId": "ORD_987654321",
"payment_url": "https://yourdomain.com/payment2/instant-pay/..."
}
}
2. Check Order Status (`POST /api/check-order-status`)
POST /api/check-order-status HTTP/1.1
Content-Type: application/x-www-form-urlencoded
user_token=YOUR_API_TOKEN
&order_id=ORD_987654321
// HTTP 200 JSON Response:
{
"status": "COMPLETED",
"message": "Transaction Successfully",
"result": {
"txnStatus": "SUCCESS",
"resultInfo": "Transaction Success",
"orderId": "ORD_987654321",
"status": "SUCCESS",
"amount": "250",
"date": "2026-10-29 14:00:00",
"utr": "430218940123"
}
}