Setting up Razorpay (online payments)
Razorpay is the payment gateway Schoolwati uses for online fees. This article covers how to connect your Razorpay account.
For the day-to-day flow (how parents pay, what happens after), see Online payments with Razorpay.
Before you start
You need a Razorpay merchant account. Sign up at razorpay.com — it's free to create, but you'll need to complete their KYC process before going live. KYC usually takes 1-3 business days.
Step 1. Get your Razorpay credentials
- Log into your Razorpay dashboard.
- Go to Account & Settings → API Keys.
- Click Generate Key. You'll see a Key ID and a Key Secret.
- Copy both — the Key Secret is shown only once, so save it somewhere safe.
Step 2. Paste them into Schoolwati
- Open Setup → Integrations → Razorpay.
- Paste Key ID and Key Secret.
- Click Test Connection. You should see a green tick.
Step 3. Set up the webhook
Razorpay needs to tell Schoolwati when a payment succeeds. Set up a webhook:
- On the Schoolwati Razorpay settings page, copy the webhook URL shown.
- In your Razorpay dashboard, go to Account & Settings → Webhooks → Add.
- Paste the URL.
- Subscribe to these events:
payment.captured,payment.failed,refund.processed. - Save.
Step 4. Test with Test Mode
Before going live, run a test payment:
- Set Schoolwati's Razorpay mode to Test.
- Generate a test invoice for a test student.
- Use one of Razorpay's test cards to pay.
- Verify the payment shows as PAID in Schoolwati.
Step 5. Switch to Live
After your test works:
- Get live mode API keys from Razorpay (different from test keys).
- Update Schoolwati with the live keys.
- Set mode to Live.
Convenience fees
Razorpay charges a transaction fee — typically around 2% on cards, lower on UPI. You can choose:
- Absorb — your school pays the fee. Default.
- Pass to parent — added to the parent's amount at checkout.
- Per-method — absorb UPI fees, pass card fees. Most flexible.
Which payment methods to offer
You can tick which methods appear at checkout: UPI, Cards, Netbanking, Wallets. Disable ones you don't want.