Skip to main content
Module 2 of 12 · Lead funnels and selling websites · Lesson 4 of 9

Connect Razorpay or Stripe so you get paid

Add your own payment keys and the webhook, then test the connection. The money goes straight to your account.

8 minIntermediateFor: Agency owner or managerLast checked
Video tutorial coming soon

The written steps below are complete. The Video script tab shows exactly what the video will cover.

Websites your leads build, and locked website previews, are paid into your own payment account. ItzSEO never holds the money. You add the keys once, and only the workspace owner can do it. Never share these keys with anyone or paste them in a chat.

By the end you can

  • Add Razorpay keys for rupee payments
  • Add the webhook so a payment is confirmed even if the customer closes the page
  • Test that the connection works

Screens used

Before you start

  • An activated Razorpay account (for rupees) or a Stripe account (for dollars).
  • You are signed in as the workspace owner.

Steps

  1. 1

    Open Payment gateway

    On: /settings/payment-gateway

    Open Settings and choose Payment gateway.

    You should see: A page with a Razorpay — INR box and a Stripe — USD box.

  2. 2

    Create a key in Razorpay

    On: Razorpay dashboard

    In another tab open your Razorpay dashboard, go to Account & Settings, then API keys, and generate a key. Use live keys for real payments. Razorpay shows the key secret only once, so keep that tab open.

    You should see: Razorpay shows a key ID that starts with rzp_live_ and a key secret.

  3. 3

    Paste the keys

    On: /settings/payment-gateway

    Back in ItzSEO paste the key ID into the first Razorpay field (it shows "Key id — rzp_live_…") and the secret into Key secret, then press Save keys.

    You should see: "Saved." appears, and the secret field now reads "Key secret — saved (leave blank to keep)".

  4. 4

    Test the connection

    On: /settings/payment-gateway

    Press Test connection.

    You should see: A message that the connection works. If the keys are wrong or the Razorpay account is not activated, it tells you which.

  5. 5

    Add the webhook in Razorpay

    On: Razorpay dashboard

    Copy the Webhook URL shown in the Razorpay box. In Razorpay open Webhooks, add a new webhook, paste the URL, tick the event payment_link.paid, and type a secret of your own choosing.

    You should see: Razorpay lists the new webhook as active.

  6. 6

    Save the webhook secret

    On: /settings/payment-gateway

    Paste the same secret into Webhook secret (optional) in ItzSEO and press Save keys.

    You should see: "Saved." appears and the field reads "Webhook secret — saved (leave blank to keep)".

  7. 7

    Stripe, for dollar payments

    On: /settings/payment-gateway

    If you sell outside India, do the same in the Stripe — USD box. Create a key in Stripe under Developers, API keys, paste it into the secret key field, and add a webhook in Stripe for the event checkout.session.completed. Press Save keys.

    You should see: "Saved." appears and the Stripe secret key field reads "saved".

Tips

  • Without the webhook a payment is still confirmed when the customer returns from the payment page, or taps Already paid? Check. With it, the website opens even if they close the tab straight after paying.
  • Use test keys first if you want to try a payment without real money, then replace them with live keys.

Troubleshooting

A customer sees "Payment could not be started right now".
The keys are missing or wrong, or the gateway account is not active. Press Test connection to see the reason.
The customer paid but the website stayed locked.
The webhook is missing or its secret does not match. Ask the customer to tap Already paid? Check, then fix the webhook.

Reference articles on this topic

Finished this lesson?

Mark it complete to keep your place in the course.