Docs
Documentation

Accept payments with Razorpay

UPI, cards and netbanking for buyers in India, paid straight into your own Razorpay account. Works on every plan, including Free.

What it is

Razorpay is a payment provider for sellers in India. If Stripe is not available in your country, this is the way to take payments from buyers who pay with UPI, cards and netbanking. You use your own Razorpay account and your own API keys, the same way you use your own PayPal Business account: the money goes straight to you, SellSpace never holds it.

No SellSpace fee on Razorpay payments. Razorpay charges its own fees; see your Razorpay dashboard for the rates. UPI, cards and netbanking work for buyers in India. International cards must be activated by Razorpay for your account.

Set it up

In the dashboard open Payments, Payment Methods, add Razorpay and follow the five steps on that page.

  1. Generate API keysIn the Razorpay Dashboard open Account & Settings, API Keys and generate a key. Copy the Key Id (starts with rzp_live_ for real payments or rzp_test_ for test mode) and the Key Secret (Razorpay shows it only once) and paste both into SellSpace.
  2. Add the webhookIn Razorpay open Account & Settings, Webhooks and add a webhook. As the URL use the one shown on the SellSpace page; it looks like https://sell-space.com/api/payments/webhooks/razorpay/<your shop id> and is different for every shop.
  3. Set a matching secretChoose any random string as the webhook secret (letters and digits, at least 6 characters). Enter it in Razorpay and paste exactly the same string into Webhook Secret in SellSpace. SellSpace rejects every webhook that is not signed with this secret.
  4. Enable the eventsIn Razorpay tick everything under Payment Link, plus the six dispute events. The full list:
    payment_link.paid payment_link.partially_paid payment_link.expired payment_link.cancelled payment.dispute.created payment.dispute.under_review payment.dispute.action_required payment.dispute.won payment.dispute.lost payment.dispute.closed
    Optional: payment.failed to log failed attempts.
  5. Save and test the connectionPress Save, then Test connection. SellSpace makes one harmless read request with your keys and tells you whether Razorpay accepts them. If your shop currency is not INR it also checks that Razorpay can create a payment link in that currency (a probe link is created and cancelled immediately).

Your keys and the webhook secret are stored encrypted and are never shown again, only the last four characters. Leaving a field empty when you save keeps the stored value.

Try it with test keys

Keys that start with rzp_test_ use Razorpay's test mode: no real money moves. Use them to place a test order in your own shop, pay with one of Razorpay's test UPI ids or test cards, and check that the order appears under Orders. When you are happy, generate live keys, replace the three values in SellSpace and add the same webhook in the live mode of the Razorpay dashboard (test mode and live mode have separate keys and webhooks).

How buyers pay

The buyer picks Razorpay at checkout and is sent to a payment page hosted by Razorpay. SellSpace creates it for the exact order amount, so the buyer cannot change the price. After paying, the buyer returns to the SellSpace payment page. The order is delivered as soon as Razorpay confirms the full amount: normally through the webhook, and, if a webhook is ever lost, through a check of the payment with Razorpay while the buyer's page is open. No Razorpay script runs on your shop pages.

Refunds

Refund an order from Orders as usual. For a Razorpay order SellSpace sends the refund to Razorpay with your keys (full amount of that order, in the smallest unit such as paise), and the customer gets the money back on the original UPI, card or bank account. The refund goes out once per order; if Razorpay refuses it, the reason is shown and the order stays paid. Razorpay may keep its own processing fee.

Disputes

When Razorpay reports a dispute (created, under review, action required, won, lost, closed), SellSpace records it on the order and the payment, marks the order as disputed and sends you a Dispute opened push notification (see Push Notifications). SellSpace never refunds automatically: answer the dispute in the Razorpay dashboard. If you win, the order is restored.

Troubleshooting

ProblemWhat to check
Test connection says Razorpay rejected the keysKey Id and Key Secret must come from the same key pair and the same mode (live or test).
Paid orders do not appearCheck the webhook URL, that the webhook is active in the matching mode and that the secret is identical in both places.
Buyers see "not available right now"Run Test connection. Usually the shop currency is not enabled on the Razorpay account, or a minimum amount is not met.
A payment is listed under Transfers to reviewThe paid amount or currency did not match the order. Contact the buyer or refund it in Razorpay.

Stripe is not available in your country? See the FAQ. Using Stripe instead: Connect Stripe and get paid.