Thanks to visit codestin.com
Credit goes to docs.fluentforms.com

Skip to content

Integrate Razorpay

Razorpay is a payment processing platform that allows Fluent Forms a smooth online payment transaction 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 integrating Razorpay into your WordPress Site with the Fluent Forms plugin.

NOTE

Razorpay requires Fluent Forms Pro. See Upgrade to Fluent Forms Pro Add-on.

Enable Razorpay Payment Method

Go to Global Settings from the Fluent Forms navbar, open the Payment tab, and select Payment Methods.

Select Razorpay, then click Enable Razorpay Payment Method to activate Razorpay globally for all forms.

Enable Razorpay Method Integrate Razorpay

Configure Razorpay with Fluent Forms

Once you enable Razorpay, all the required settings will appear to configure Razorpay with Fluent Forms. These are:

A. Payment Method B. API Credentials C. Checkout Style

Always press the Save Settings button to save the changes you made.

Test API Credentials

A. Payment Method

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

B. API Credentials

Here, you need to provide the API Key and API Secret from your Razorpay Account to configure Razorpay with Fluent Forms.

Get the API Credentials from Razorpay

First, log into your RazorPay Account. If you do not have an account, sign up from here.

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

API Keys Fluent Forms

NOTE

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

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

Regenerate Test Key Button

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

Copy Key ID And Key Secret

Now, return to the Razorpay Payment Method Settings from the Global Settings section of Fluent Forms.

Then, paste the Key ID and Key Secret into the API Key and API Secret fields respectively.

Finally, press the Save Settings button and your Razorpay account will be configured with Fluent Forms for your WordPress Site.

Paste API Key And Secret

C. Checkout Style Type

Fluent Forms offers the following two different checkout styles. You can choose the Checkout Style Type based on your preferences.

  • Modal Checkout Style

  • Hosted to razorpay.com

This checkout style lets you collect payments on your site.

You can also choose a custom brand theme color for the Razorpay checkout popup or leave it blank to use the default Razorpay theme.

Modal Checkout Style

Hosted to razorpay.com

This checkout style redirects users to the RazorPay Website for checkout.

Also, using this setting option, you can configure the SMS and Email notifications from 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.

TIP

Click Save Settings to apply your changes.

Hosted Razorpay.com Fluent Forms

Integrate Razorpay in Forms

Once you finish setting up your Razorpay payment method, you can easily add this payment method to any of your existing Payment Forms (i.e., a form where Payment Item and Payment Method fields are added).

First, go to the Editor page of your desired form by clicking its Edit option.

Open Integrate Razorpay

Once you are on the Editor page, go to the Input Customization menu on the right side of the added Payment Method field by clicking the Pencil Icon.

Now, go to the Payment Methods, check the Razorpay option, click the Dropdown Arrow, and you will get the option to change the Method Label based on your preference.

Check Razorpay Payment Method

Once you complete the edit, press the Save Form button to save all the changes.

Now, to embed and display the form on a specific Page/Post, copy this Shortcode from the top right side and paste it into your desired Page/Post.

Also, to see the Preview of the form, click the Preview & Design button in the middle.

Save Button Integrate Razorpay

Preview of Added Payment Method

Here is the preview of the Payment Method that we just added. Once a user clicks the Submit Form button it will redirect to Razorpay to complete the payment process.

Preview Integrate Razorpay

Here is the preview of the Razorpay Checkout Modal.

Razorpay Payment Popup 1024x575