ProductPricingDemo
More

Company

AboutCustomersPartnersContact
Sign inStart free
HomeProductDemoStart free
Docs/Payment integration/Razorpay integration

Connect Razorpay to your store

Accept UPI, cards, net banking and wallets on your Slaby store, with the money settling directly into your own Razorpay account.

About 20 minutes, plus Razorpay's KYC approval (usually 1–2 working days).

On this page

  • Before you start
  • Step by step
  • Webhook settings
  • Test it before you go live
  • If something goes wrong
  • Razorpay links you will need
  • Common questions

Before you start

  • A Razorpay account with KYC completed and activated for live payments.

Launch a branded retail and wholesale store in 15 minutes, then run catalogue, orders and delivery from one place.

Product

  • Features
  • Tour
  • Pricing

Explore

  • Demo
  • Compare

Company

  • About
  • Customers
  • Partners
  • Contact
Start freeSign in

© 2026 Slaby. All rights reserved.

  • Terms
  • Your business PAN and bank account details (Razorpay asks for these during KYC, not us).
  • Owner or manage-settings access to your Slaby admin.
  • Step by step

    1. 1

      Create your Razorpay account

      In your Razorpay dashboard

      Sign up with your business email. Razorpay will ask for your business details, PAN, GST (if you have one) and a bank account for settlements.

      This account belongs entirely to you. Slaby never holds your money — buyers pay into your Razorpay account, and Razorpay settles it to your bank on their normal cycle.

      Sign up for Razorpay
    2. 2

      Finish KYC and switch on Live mode

      In your Razorpay dashboard

      Upload the documents Razorpay asks for and wait for activation — usually one to two working days.

      Until KYC is approved your account only works in Test mode. Test mode is genuinely useful (see Testing below), but it cannot take real money.

      The Razorpay dashboard has a Test/Live toggle at the top. The keys you copy are different in each mode. Copying Test keys into a live store is the single most common setup mistake.

    3. 3

      Generate your API keys

      In your Razorpay dashboard

      In the Razorpay dashboard go to Account & Settings → API Keys, then click Generate Live Key.

      You will be shown two values: a Key ID (it looks like rzp_live_XXXXXXXX) and a Key Secret. The Key Secret is displayed only once — copy it somewhere safe before closing the dialog.

      • Key ID — identifies your account. Not secret; it is visible in the browser during checkout.
      • Key Secret — proves a request is really from you. Treat it exactly like a bank password.
      Open API Keys

      If you lose the Key Secret you cannot view it again — you must generate a new key pair and update it in Slaby.

    4. 4

      Enter the keys in Slaby

      In your Slaby admin

      In your Slaby admin go to Settings → Payments. Choose Razorpay as your gateway, then paste in the Key ID and Key Secret.

      Slaby stores the secret write-only: once saved, it is never shown back to anyone, not even to you. The page only tells you whether a secret is present. If you need to change it, you paste a new one over the top.

      • Admin path: Settings → Payments (you need owner or manage-settings permission).
      • Leaving a secret field blank when editing means 'keep the one already stored'.
    5. 5

      Add the webhook so payments confirm themselves

      In your Razorpay dashboard

      A webhook is Razorpay telling your store 'this order was paid', directly and privately — server to server. It is what makes payment reliable when a buyer's phone dies, their network drops, or they close the tab the instant after paying.

      In the Razorpay dashboard go to Account & Settings → Webhooks → Add New Webhook, and fill in the URL, a secret of your choosing, and the two events listed below.

      Open Webhooks

      Set the same webhook secret in BOTH places — Razorpay's webhook form and Slaby's Settings → Payments. They must match exactly or every payment notification will be rejected as unsigned. This secret is separate from your Key Secret.

    6. 6

      Place one real low-value order

      On your own store

      Once live, buy something cheap from your own store with a real UPI payment. Confirm the order shows as Paid in your Slaby admin and that the payment appears in your Razorpay dashboard.

      Refund it from the Razorpay dashboard afterwards if you wish. A single genuine end-to-end payment catches things no amount of test-mode clicking will.

    Webhook settings

    Webhook URL
    https://yourstore.slaby.in/api/webhooks/razorpay-tenant

    Replace yourstore.slaby.in with your own store address. If you have connected a custom domain, use that instead — both work, but use the one buyers actually visit.

    Event to subscribe to
    payment.captured

    The money actually arrived. This is what marks the order Paid.

    Event to subscribe to
    payment.failed

    The attempt failed, so the order is not left waiting on a payment that will never come.

    Razorpay uses a SEPARATE webhook secret, which you invent yourself when creating the webhook. Enter that same value in Slaby under Settings → Payments → Webhook secret. It is not your Key Secret.

    Test it before you go live

    1. 1.Switch the Razorpay dashboard to Test mode and generate Test keys (they start with rzp_test_).
    2. 2.Put the test keys into Slaby, place an order on your own store, and pay using Razorpay's test card numbers.
    3. 3.Razorpay's test card list is on their docs site — use any of the success cards, with any future expiry date and any CVV.
    4. 4.When you are satisfied, swap the test keys for live keys. Nothing else in Slaby needs changing.

    If something goes wrong

    The Pay online button does not appear at checkout.

    Why it happens: Slaby only offers online payment when a complete set of gateway credentials is stored.

    How to fix it: Go to Settings → Payments and check that both the Key ID and the Key Secret show as set. A Key ID alone is not enough.

    The buyer paid, but the order still shows as unpaid.

    Why it happens: Almost always a webhook problem: it was never added, points at the wrong address, or its secret does not match the one stored in Slaby.

    How to fix it: Open the webhook in the Razorpay dashboard and look at its recent deliveries. A 400 response means the signature check failed — re-enter the same secret in both places. No deliveries at all means the URL is wrong.

    Payments fail immediately with an authentication error.

    Why it happens: Test keys on a live store, or live keys while the dashboard is in Test mode.

    How to fix it: Check whether your Key ID starts with rzp_test_ or rzp_live_ and make sure it matches how you are actually selling.

    You rotated your keys and payments stopped.

    Why it happens: The old Key Secret is still stored in Slaby.

    How to fix it: Paste the new Key ID and Key Secret into Settings → Payments. Old in-flight payment attempts will fail; new ones will work.

    Razorpay links you will need

    • Razorpay home page
    • Create an account
    • Dashboard login
    • API keys (dashboard)
    • Webhooks (dashboard)
    • Current pricing
    • Razorpay support

    Common questions

    Does Slaby take a cut of my payments?
    No. Buyers pay directly into your own Razorpay account and Razorpay settles to your bank. Slaby never touches the money — the only fees are Razorpay's own, plus your Slaby subscription.
    Can Slaby see my Key Secret after I save it?
    The secret is stored write-only and is never sent back to any browser, including yours. The settings page shows only whether a secret exists. It is also redacted from audit logs.
    What happens if a buyer closes the tab right after paying?
    The order still gets marked Paid. Confirmation does not depend on the buyer's browser coming back — Razorpay's webhook tells your store independently, which is exactly why the webhook step is not optional.
    Can I use Razorpay for some orders and cash on delivery for others?
    Yes. Online payment and COD are independent settings; you can offer either or both, and COD can be switched off entirely in your admin.
    Which payment methods will my buyers see?
    Whatever you have enabled inside your own Razorpay account — typically UPI, cards, net banking and wallets. You control that from the Razorpay dashboard, not from Slaby.
    Payment integrationCashfree Payments integration
    Privacy
  • Refunds