Razorpay Integration Guide for Indian Websites and Apps — Complete 2025 Tutorial
How to integrate Razorpay payment gateway into your Indian website or app — standard checkout, UPI, recurring payments, webhooks, and refunds.
Razorpay Account Setup
Create a Razorpay account at razorpay.com. Business verification requires: GST certificate, PAN card, bank account details, cancelled cheque, and business address proof. Verification takes 1–3 business days. You receive API keys (test and live) and can start integration immediately with test keys.
Standard Checkout Integration
Frontend: load Razorpay JS SDK, create an order via your backend (POST /api/orders), open Razorpay checkout modal with order_id, amount (in paise), currency. On payment success, verify the payment signature on your backend using your key_secret and HMAC-SHA256. Confirm order only after signature verification.
UPI and Payment Methods
Razorpay automatically shows all available payment methods: UPI (most used in India), cards, net banking, wallets (PhonePe, Paytm), EMI (on eligible cards). No extra integration for each method — Razorpay handles routing. Configure which methods to show/hide from the Razorpay Dashboard.
Webhooks for Order Automation
Set up Razorpay webhooks to automate post-payment actions: payment.captured event triggers invoice generation, stock reduction, and confirmation email. Webhooks are server-to-server notifications — more reliable than relying on the frontend callback (which users may close before it fires).
Need Help Implementing This?
Infonoxe Technologies helps Indian businesses implement ERP, CRM, websites, and automation. Get a free consultation.
WhatsApp Us for Free AdviceRelated Articles
Grow Your Business with Technology
ERP, CRM, custom software, websites, and WhatsApp automation for Indian businesses. Starting ₹25,000.
WhatsApp — Free Consultation