Developer Documentation
Accept FamPay UPI collections in minutes with our clean REST API.
1. Quick Start
- Open Integration and configure your Gmail App Password & FamPay UPI ID.
- Copy your production secret key from API Keys.
- From your server backend, send a POST request to /api/order.php with the target amount.
- Redirect the customer to the returned pay_url. Our cashier handles QR framing, deep links for PhonePe/GPay/Paytm/BHIM, and auto IMAP confirmation.
- Receive verified confirmation on your Webhook endpoint.
2. Authentication
All API requests must pass your production API key via HTTP headers:
X-API-Key: flient_your_api_key_here Authorization: Bearer flient_your_api_key_here
3. Create Order API
POST /api/order.php · Content-Type: application/json
| Field | Type | Required | Description |
|---|---|---|---|
| amount | number | Yes | 1.00 – 100000.00 (₹). Unique amount offset applied automatically if active. |
| order_id | string | No | Your internal reference code (returned as merchant_ref). |
| callback_url | url | No | Custom webhook URL for this specific order. |
| redirect_url | url | No | Customer return URL on payment clearance. |
AI Prompt: build your payment system
Copy this prompt and give it to any AI (ChatGPT, Claude, Gemini...). It will build a complete payment system for your website on top of this gateway. Fill in your stack and what your site sells at the bottom, and keep your API key private.
Interactive Code Snippets
Replace YOUR_API_KEY and YOUR_WEBHOOK_SECRET in the samples below with your own keys from API Keys.