Overview
Instamojo is a payment gateway designed for Indian businesses, supporting UPI, cards, net banking, and wallets. TelemanAI integrates with Instamojo for INR transactions.Prerequisites
- Instamojo business account
- KYC verification completed
- API credentials (API Key and Auth Token)
- Indian bank account
Configuration
Environment Variables
Your Instamojo API Key
Your Instamojo Auth Token
API endpoint URL
Set to
YES to enable, NO to disableSetup Steps
Create Instamojo Account
Register at instamojo.com and complete KYC.
Get API Credentials
Navigate to Settings → API & Plugins to generate:
- API Key
- Auth Token
Use test credentials during development.
Supported Payment Methods
Instamojo supports all major Indian payment methods:- UPI - Google Pay, PhonePe, Paytm, BHIM
- Cards - Visa, Mastercard, RuPay, American Express
- Net Banking - All major Indian banks
- Wallets - Paytm, Mobikwik, Freecharge, Airtel Money
- EMI - Credit card EMI options
Currency
Instamojo only supports INR (Indian Rupee) transactions.Testing
Test Environment
Use test credentials for development:Test Payments
In test mode:- All payments auto-succeed
- No real money is charged
- Test all payment methods
Payment Flow
- User selects subscription package
- Clicks Pay with Instamojo
- Redirected to Instamojo payment page
- Chooses payment method (UPI/Card/Net Banking)
- Completes payment
- Redirected back to TelemanAI
- Webhook confirms payment
- Subscription activated
Webhook Configuration
Instamojo sends payment notifications via webhook:Webhook URL
Webhook Events
Payment successful- Payment completedPayment pending- Payment in progressPayment failed- Payment unsuccessful
Troubleshooting
Invalid credentials error
Invalid credentials error
- Verify API Key and Auth Token
- Check if using correct environment (test/live)
- Ensure KYC is approved
- Try regenerating credentials
Payment page not loading
Payment page not loading
- Check
IM_URLis correct - Verify
INSTAMOJO=YES - Clear application cache
- Check internet connectivity
Webhook not received
Webhook not received
- Verify webhook URL is publicly accessible
- Check webhook configuration in dashboard
- Test webhook using Instamojo test panel
- Ensure HTTPS is enabled
Security Best Practices
- Never expose API credentials in code
- Store credentials in
.envonly - Use HTTPS for production
- Validate webhook payloads
- Monitor transactions regularly
- Set up fraud alerts
Fees
Instamojo charges transaction fees:- UPI: ₹3 per transaction
- Credit/Debit Cards: 2% + GST
- Net Banking: ₹10 per transaction
- Wallets: 2% + GST
Next Steps
Razorpay
Alternative Indian payment gateway
Payment Overview
Compare payment gateways
Packages
Set up pricing packages
Payment Settings
Payment configuration guide