# How to Integrate Razorpay with Paymattic in WordPress?

> Razorpay is an Indian-based payment gateway that provides users with fast, affordable, and secure ways to accept and disburse payments online while also maintaining a fully functional current account. You can set up Razorpay with the Paymattic WordPress plugin. Let’s follow this easy guide to integrating Razorpay with Paymattic.

- URL: https://paymattic.com/docs/how-to-integrate-razorpay-with-paymattic-in-wordpress/
- Markdown: https://paymattic.com/docs/how-to-integrate-razorpay-with-paymattic-in-wordpress/index.md
- Modified: 2024-10-04

---

# How can we help you?

Popular Search subscriptionstriperecurringtheuser

View Categories

RazorPay allows you to smoothly handle online payments in India, supporting various payment methods including credit cards, debit cards, net banking, UPI, and popular wallets like JioMoney, Mobikwik, Airtel Money, FreeCharge, Ola Money, and PayZapp. This article will guide you through configuring RazorPay on your WordPress Site with the Paymattic plugin.

Remember, to get access to the [RazorPay](https://razorpay.com/) payment gateway, you need the [Paymattic Pro Plugin](/docs/how-to-install-and-activate-paymattic-in-wordpress/#1-toc-title).

## Configuring RazorPay Payment Method #

To learn how to configure the Razorpay payment gateway through Paymattic, follow the steps with screenshots below –

First, go to **Payment Gatewa**y from the **Paymattic Navbar**, click the **Razorpay** tab from the left sidebar, and the **Razorpay Settings** page will open.

![](https://paymattic.com/wp-content/uploads/2022/06/Payment-gateway-Razorpay-Razorpay-Settings-scaled.webp)

Select any **Payment Mode** between **Test** (for test payments) and **Live**(for real payments) as both options follow the same configuration process, e.g., I choose **Test Mode**.

Also, choose the **Checkout Style**as either **Modal Checkout** (allows you to collect Payments on your site) or **Hosted** **Checkout** (it will redirect users to the RazorPay Website for checkout).

Then, you need to obtain the**Public key** and **Secret key** from your **RazorPay account**.

![](https://paymattic.com/wp-content/uploads/2022/06/Payment-Mode-Checkout-Style-Public-key-Secret-key.webp)

### Get the Key ID and Key Secret from RazorPay #

First, log in to your [RazorPay Account](http://dashboard.razorpay.com/signin). If you do not have an account, sign up from [here](https://easy.razorpay.com/onboarding/l1/signup?field=MobileNumber&cta_btn=Navbar_Header).

Once you log in to the**RazorPay Dashboard**, go to the **Accounts & Settings**section from the **Left sidebar**, and click the **API keys** tab.

![](https://paymattic.com/wp-content/uploads/2022/06/RazorPay-dashboard-Account-Settings-API-keys-scaled.webp)

To get the Key ID and Key Secret, you need to generate new key.

Click the **Regenerate Test Key** button and new keys will be generated for the configuration.

![](https://paymattic.com/wp-content/uploads/2022/06/Regenarate-Test-Key.webp)

Here, you will get your desired **Key ID** and **Key Secret**, copy them.

![](https://paymattic.com/wp-content/uploads/2022/06/Copy-the-public-key-secret-key.webp)

Go back to **Payment Gatewa**y from the **Paymattic Navbar**, click the **Razorpay**tab, and paste the copied **Key Id**andinto the **Key Secret** and **Secret key**fields respectively.

Finally, press the **Save Settings** button and your RazorPay account will be integrated with Paymattic for your WordPress Site.

![](https://paymattic.com/wp-content/uploads/2022/06/Paste-the-Public-key-Secret-key-scaled.webp)

### RazorPay Notifications #

With this setting option, you can configure the SMS and Email notifications from your RazorPay to your WordPress Site to ensure you stay updated.

You can select both **SMS** and **Email** or any one of them by simply checking the boxes to receive notifications.

**Remember**, always press the **Save Settings** button to save the changes you made on your Razorpay Settings page.

![](https://paymattic.com/wp-content/uploads/2022/06/Razorpay-notifications.webp)

## Add RazorPay in Forms #

Once you finish setting up your**RazorPay** payment gateway, you can easily add this payment method to any of your existing [Payment Form](/docs/how-to-create-your-first-payment-form-in-a-minute-and-accept-payments-with-paymattic/).

If you do not have any existing forms, read[Create a Form from Scratch](/docs/how-to-create-a-form-from-scratch-with-paymattic/) or[Create a Form using Templates](/docs/simple-form-templates/) documentation.

To learn the detailed process of adding a payment method to an existing form, read this [Documentation](/docs/how-to-use-the-payment-method-fields-section/).

But, remember, the added **RazorPay**payment method in your **Form** will not function unless you complete the configuration process properly.

If you have any further questions, concerns, or suggestions, please do not hesitate to contact our [@support team](https://wpmanageninja.com/support-tickets/?utm_source=wpmn&utm_medium=home&utm_campaign=site#/). Thank you.

##### What are your Feelings

#### Share This Article :

- [![Facebook](https://paymattic.com/wp-content/plugins/betterdocs/assets/static/images/social/facebook.svg?v=4.8.1)](https://www.facebook.com/sharer/sharer.php?u=https://paymattic.com/docs/how-to-integrate-razorpay-with-paymattic-in-wordpress/)
- [![X](https://paymattic.com/wp-content/plugins/betterdocs/assets/static/images/social/twitter.svg?v=4.8.1)](https://twitter.com/intent/tweet?url=https://paymattic.com/docs/how-to-integrate-razorpay-with-paymattic-in-wordpress/)
- [![LinkedIn](https://paymattic.com/wp-content/plugins/betterdocs/assets/static/images/social/linkedin.svg?v=4.8.1)](https://www.linkedin.com/shareArticle?mini=true&url=https://paymattic.com/docs/how-to-integrate-razorpay-with-paymattic-in-wordpress/)
- [![Pinterest](https://paymattic.com/wp-content/plugins/betterdocs/assets/static/images/social/pinterest.svg?v=4.8.1)](https://pinterest.com/pin/create/button/?url=https://paymattic.com/docs/how-to-integrate-razorpay-with-paymattic-in-wordpress/)

Still stuck? How can we help? 

## How can we help?

Updated on October 4, 2024

[How to Integrate Mollie in WordPress with Paymattic?](/docs/how-to-integrate-mollie-in-wordpress-with-paymattic/)[How to Integrate Paystack in WordPress with Paymattic?](/docs/how-to-integrate-paystack-in-wordpress-with-paymattic/)

Powered by [BetterDocs](https://betterdocs.co)
