How to Integrate Razorpay with Sparkforge
Install the Razorpay app from the App Marketplace, paste your API keys, add the Sparkforge webhook URL in Razorpay, and whitelist your branded domain on both sides to start accepting payments.
Razorpay is a payment provider widely used in India. Once connected, it works alongside Stripe, NMI, and Authorize.net inside Sparkforge — order forms, invoices, payment links, contact pages, subscriptions, refunds, and post-purchase automations all use the same engine.
What you can accept
- One-time payments at fixed or custom amounts.
- Recurring subscriptions with cancel, card-on-file update, and refund support.
- Payments across order forms, invoices, payment links, forms, and contacts.
Setup — four steps
- Install the Razorpay app. Open the App Marketplace inside your sub-account and install Razorpay. You can also reach it from Payments > Integrations > Search for More.
- Add your API keys. In the Razorpay dashboard go to Accounts & Settings > API Keys. Copy the key ID and secret, then paste them into the Sparkforge authentication page.
- Configure the webhook. In Razorpay open Accounts & Settings > Webhooks and add this URL:
https://backend.sparkforgehq.com/razorpay/webhook
Enable every payment-related event so transaction statuses sync correctly. - Whitelist your branded domain. In Sparkforge go to Settings > Business Profile > Branded Domain, register your domain, and click Update Information. Then in Razorpay open Accounts & Settings > Business Website Details > Add Additional Website/App Details and add the same domain.
Important: Razorpay only processes payments from domains whitelisted on their dashboard. Skip step 4 and your live transactions will fail.
What works after setup
Razorpay supports the same automations as the other payment providers — automated sales receipts, refunds, payment received and order submitted triggers, and discount codes via coupons.
Frequently Asked Questions
I'm seeing an error that link.fastpaydirect.com is not registered. How do I fix it?
Does Razorpay work for SaaS Mode and Wallet Recharges?
Can I run Razorpay alongside Stripe or NMI?
Where do I find my Razorpay API keys?
Why do I need to enable all payment events on the webhook?
Was this article helpful?
Thanks for the feedback.