SR King FamPay Gateway guide
FamPay API integration guide: payment link, return address and confirmation
The SR King FamPay Gateway API needs no SDK and no API key. You build a payment link, send the customer to it, and confirm the order with one GET request, using plain web requests from any language.
Updated
Open my dashboardSee how the code goes into your bot
The three requests
- Build the payment link with your gateway code, amount and order ID.
- The customer pays on that page and is sent to your return address.
- Your server confirms the order with the confirm link.
1. Build the payment link
No API call is needed to create it. Join the pieces as text:
- YOURCODE is your gateway code. The amount is in rupees, from 1 to 100000.
- order_id is 3 to 64 letters, numbers, dash, underscore or dot. Use a new one for every order.
- redirect_url is optional. Write it as a normal address that starts with http:// or https://, and put it last.
https://fampaygateway.lovable.app/pay/YOURCODE/199?order_id=ORDER1001&redirect_url=https://yourapp.com/thanks2. Handle the return address
After a verified payment the customer is sent to your address with status, txn_id, order_id, amount and code added:
https://yourapp.com/thanks?status=verified&txn_id=TRANSACTION_ID&order_id=ORDER1001&amount=199&code=YOURCODE3. Confirm the payment
Anyone can type your return address by hand, so confirm from your server before you deliver. The confirm request needs only your code and the order ID:
https://fampaygateway.lovable.app/api/public/order?code=YOURCODE&order_id=ORDER1001{
"ok": true,
"order_id": "ORDER1001",
"status": "verified",
"paid": true,
"amount": 199,
"utr": "REFERENCE_NUMBER",
"txn_id": "TRANSACTION_ID",
"verified_at": "2026-11-05T10:21:05.000Z"
}Statuses
The status field is one of these:
- not_opened: the payment link has not been opened yet.
- pending: the customer is paying, inside the 5-minute window.
- verified: paid. Deliver when paid is true and the amount is right.
- expired: the window ended without a payment. A paid order never turns expired.
Create links with the API (optional)
If you prefer, ask the API to build the link. Leave out order_id and a unique one is created and returned together with pay_url and check_url.
https://fampaygateway.lovable.app/api/public/order?code=YOURCODE&amount=199&order_id=ORDER1001&redirect_url=https://yourapp.com/thanksQuestions about this topic
Do I need an API key?
No. You use your gateway code and an order ID.
Is there an SDK to install?
No. Plain web requests work from any language.
What does the confirm request return?
The order ID, status, a paid flag, the amount, the UTR or Transaction ID and the time it was verified.
How often should I check?
Every 5 seconds for up to 5 minutes after you send the payment link.
हिंदी में जानकारी
FamPay API इंटीग्रेशन के लिए किसी SDK या API key की ज़रूरत नहीं। हर ऑर्डर का एक पेमेंट लिंक बनाइए, ग्राहक को भेजिए और एक रिक्वेस्ट से पक्का कीजिए कि पैसा आया या नहीं।
