Skip to main content
0% MDR Direct-to-Bank UPI Payment Infrastructure with Instant T+0 Settlement Start 3-Day Free Trial →
2-Minute Integration • https://collectupi.com

PHP Integration Kit, cURL Generator & Live Webhook Tester

Everything developers and website owners need to connect Collect UPI (collectupi.com) in 2 minutes—generate custom copy-ready code, download ready-to-upload PHP files, or dispatch live test webhooks to your server.

Step 1: Configure Parameters

Custom API Code Generator

Enter your Merchant API Token (from API Details) and redirect URL. All 5 language snippets update in real time.


1-Click Download PHP Integration Kit

Download pre-configured PHP files with your user_token already embedded:

create_order.php — Collect UPI (collectupi.com)

                        
Real-Time Webhook Dispatcher

Test Your Webhook Receiver Live

When a customer completes a UPI payment, our server immediately sends an HTTP POST request (application/x-www-form-urlencoded) to your Webhook Callback URL. Enter your endpoint URL below to send a real HTTP POST from our server or simulate locally.

Webhook Payload & Target Endpoint

Incoming POST Payload from collectupi.com

                    
webhook.php — Double-Verified Merchant Receiver

                    
Complete REST API Reference

Endpoints, Request Parameters & Order Lifecycle

All API calls use standard application/x-www-form-urlencoded POST requests and return UTF-8 JSON responses.

POST /api/create-order

1. Create Dynamic UPI Order

Generates a unique UPI payment session with dynamic QR and mobile UPI intent buttons. Valid for 30 minutes.

Parameter Required Description
user_token Required Your 32-character Merchant API Token
amount Required Order amount in INR (e.g., 499 or 499.00)
order_id Required Your unique merchant order reference ID
customer_mobile Required Customer's 10-digit mobile number
redirect_url Required URL where customer is redirected after payment
customer_name Optional Customer full name for checkout & receipt
remark1 / remark2 Optional Custom metadata returned in webhook & status API
POST /api/check-order-status

2. Verify Order Status & Bank UTR

Query real-time payment settlement status and 12-digit Bank UTR / RRN number for any order.

Parameter Required Description
user_token Required Your 32-character Merchant API Token
order_id Required The order_id passed during creation

Order Status Lifecycle (30-Minute Window)

• SUCCESS: Payment verified with Bank UTR. Fulfill the customer order immediately.
• PENDING: Checkout session is active (under 30 minutes) and awaiting customer payment.
• FAILURE: Payment session expired after 30 minutes or was manually cancelled by the merchant/customer.
Direct NPCI UPI Rails • 0% Transaction Fee

Ready to route 100% of every UPI payment directly to your bank?

Connect your existing Paytm, PhonePe, BharatPe, HDFC Vyapar, or Google Pay business account in under 5 minutes.

Merchant Support