Razorpay is India's most widely used payment gateway for developers. It lets your website or app accept UPI, cards, netbanking, and wallets through one integration — and it handles the messy parts: PCI compliance, bank settlements, refunds, and payment links. For an Indian developer shipping a product, it is usually the first payment integration to learn.
How it works: you create an order on your server with Razorpay's SDK, pass the order id to the checkout widget on your page, and the customer pays with their preferred method. Razorpay confirms the payment with a webhook to your server, and the money settles to your bank account on a schedule you choose. You never touch card numbers — they go straight from the customer to Razorpay.
Razorpay is a good fit for beginners because the test mode is free and realistic. You can simulate a full UPI payment with test credentials before going live, and the documentation walks through the exact flow with copy-paste code. The dashboard shows every payment, refund, and settlement, so you can see what is happening without writing admin tools.
A quick example — creating an order on your server with Node.js:
import Razorpay from "razorpay"; const rzp = new Razorpay({ key_id: process.env.RAZORPAY_KEY_ID, key_secret: process.env.RAZORPAY_KEY_SECRET, }); const order = await rzp.orders.create({ amount: 19900, // Rs. 199 in paise currency: "INR", receipt: "order_001", }); console.log(order.id); // pass this id to the checkout widget That order id is all the frontend needs to open the payment form.
Who is it for? Indian developers adding payments to a store, course, or SaaS product; freelancers billing clients online; students building a real product with real checkout.
Limits to know: Razorpay needs a business account and KYC to go live — test mode is free, but real money needs paperwork. The fees are per transaction, so they add up on high volumes. And you must verify webhook signatures on your server — trusting a payment without verification is how fraud happens.
To start today: create a test account, generate test keys, create an order for Rs. 1, and complete a test UPI payment in the checkout widget.
