Set up Razorpay
Your clients pay into your own Razorpay account, and Razorpay sends the money to your bank. Setting it up takes about 15 minutes of your time, plus a few working days for Razorpay to check your details, so start before your first invoice.
Before you start, keep these ready - Your PAN, and business details (an individual freelancer is fine)
- The bank account you want payments settled into
- Your website or online portfolio: Razorpay checks it before turning on live payments
Steps
- Create a Razorpay account and complete KYC
Sign up at dashboard.razorpay.com and fill in your business, PAN and bank details. Razorpay reviews them; this can take a few working days.
- Add your website
Razorpay asks for the website where you work and verifies it (up to 3 working days) before Live mode becomes available. Use your own site or portfolio. If they ask how you collect payments, you can say clients pay through invoice links you create with GoPayNag. Razorpay support can tell you what they accept if you don't have a website.
- Generate your live API keys
In the Razorpay Dashboard, switch to Live mode, then go to Account & Settings → API Keys (under Website and app settings) and click Generate Key. Download or copy both keys straight away: Razorpay shows the Key Secret only once. If you lose it, generate new keys.
Live keys start with rzp_live_. Razorpay's guide to API keys - Connect them in GoPayNag
Open your GoPayNag dashboard → Payment settings. Paste the Key ID and Key Secret, read and tick the payout agreement, and click Save Razorpay keys. GoPayNag checks the keys with Razorpay before saving.
- Add the webhook (recommended)
This lets Razorpay tell GoPayNag about a payment even if your client closes the page right after paying. In Razorpay, still in Live mode, go to Account & Settings → Webhooks → + Add New Webhook and fill in:
- URL:
https://gopaynag.com/api/razorpay-webhook - Secret: make up a long password (not your Key Secret) and keep a copy
- Alert email: your email, so Razorpay can warn you if the webhook fails
- Active events:
payment.captured payment_link.paid order.paid refund.processed payment.dispute.lost
Click Create Webhook, then paste the same secret into Razorpay Webhook Secret in GoPayNag's Payment settings and save. Razorpay's guide to webhooks - Optional: international payments (for USD or EUR invoices)
Razorpay only accepts foreign cards once you request it: Account & Settings → International payments. Razorpay asks for a purpose code and expects your website to have contact, terms and refund pages; approval is up to them. INR invoices work without this. Razorpay's guide to international payments
Fees and settlements
Razorpay takes a fee on each payment before it reaches your bank; see razorpay.com/pricing for current rates. GoPayNag adds no fee per invoice or payment. Razorpay settles the money to your bank on its own schedule; questions about settlements go to Razorpay support.
Common problems
- "Razorpay rejected these API keys"
- Copy both keys again with no extra spaces. If you no longer have the Key Secret, generate new keys in Razorpay and paste both.
- "Production requires a live Razorpay Key ID"
- You pasted test keys (
rzp_test_). Switch Razorpay to Live mode and generate live keys. - There is no Live mode in my Razorpay Dashboard
- Razorpay hasn't finished checking your account or website yet. Wait for their email, or ask Razorpay support.
- "This Razorpay account is already connected to another GoPayNag account"
- Each Razorpay account can be linked to one GoPayNag account. Sign in with the email you used first.
- A client paid, Razorpay shows it, but GoPayNag doesn't
- Usually the client closed the page straight after paying and no webhook is set up. Add the webhook (step 5). If it still doesn't show after a few minutes, email [email protected] with the invoice link.
- A foreign client's card is declined
- International payments aren't switched on in your Razorpay account yet (step 6).
Razorpay changes its dashboard from time to time. If a menu has a different name, the linked Razorpay guides have the latest steps. Stuck on something GoPayNag-related? Write to [email protected].