---
title: Install and set up SutraPay for Razorpay
description: Install SutraPay for Razorpay, connect your Razorpay account and take a first test payment on WooCommerce, step by step.
url: "https://sutraplugins.com/docs/sutrapay-for-razorpay/razorpay-install-and-set-up/"
updated: "2026-11-16"
category: Getting started
---

# Install and set up SutraPay for Razorpay

This guide installs SutraPay for Razorpay on your WooCommerce store and connects it to your Razorpay account. Use test (sandbox) mode first, then switch to live.

## Before you start

- WordPress 6.4 or later and PHP 7.4 or later.
- WooCommerce installed and active.
- A Razorpay account with API access.

## Install and connect

1. Install and activate the plugin (WooCommerce must be active).
2. Go to **WooCommerce > SutraPay for Razorpay** and open **Settings**. Enter your Razorpay Test and Live API keys (Razorpay Dashboard > Account & Settings > API Keys), save, and use **Test connection**.
3. In the Razorpay Dashboard, add a webhook with the URL shown under **Webhooks**, set a secret, select the listed events, and paste the same secret into **Webhook Secret** in Settings.
4. For subscriptions: Razorpay Subscriptions must be enabled on your Razorpay account.

## Next steps

See [what SutraPay for Razorpay can do](/docs/sutrapay-for-razorpay/razorpay-features/), or read the [questions and answers](/docs/sutrapay-for-razorpay/razorpay-faq/). Download the plugin from [its page](/sutrapay-for-razorpay/).
