Skip to main content
Available in🇮🇳 India

Payment Button - Wordpress Changelog

Version 2.4.6 released for Payment Button Wordpress. This version fixes naming conflict in Razorpay section.
WordPress is one of the most popular Content Management Systems out there. You can quickly build a website using WordPress and embed the our Payment Button to accept payments from customers. WordPress Homepage

WordPress Plan

If you have built your website using www.wordpress.com, and are on a paid plan, you can directly install the Razorpay Payment Button Plugin from the WordPress Plugins store.
  1. Install the Razorpay Payment Button Plugin on your WordPress site.
  2. Create a Payment Button on Dashboard.
  3. Embed the Payment Button on your WordPress site.

Prerequisites

  1. Download the Razorpay Payment Button WordPress Plugin.
  2. Create a Razorpay account.
  3. Navigate to SettingsAPI Keys and generate API keys in the test mode.
Add the API key details in the Razorpay Payment Button plugin settings.
Handy Tips
  • When testing: Generate the keys in Test mode.
  • To accept live payments: Generate the keys in Live mode and replace them in the Payment Button plugin settings.

Set Up a Payment Button Using Wordpress Plugin

Watch this video to see how to set up a Payment Button using Wordpress Plugin.

1. Set Up WordPress Site Locally on Your System

2. Create a Payment Button on Razorpay Dashboard

To accept payments on your WordPress site, you must create a Payment Button.

3. Embed the Payment Button on WordPress Site

To embed the Payment Button: 3.1 Download and install the Razorpay Payment Button Plugin. You can do this using either of these methods: 3.2 In your WordPress site, activate the plugin in the WordPress Plugin Manager. Activate Plugin 3.3 Navigate to Razorpay ButtonsSettings to add your Razorpay API key details and connect your Razorpay account to the plugin. Add Razorpay API Key 3.4 Navigate to Razorpay Buttons. A list of buttons you created on Razorpay are available here. Select the required button. List of Payment Buttons 3.5 Click Pages and navigate to the page where you want to embed the Payment button. Select Page 3.6 Select Add BlockWidgetsRazorpay: Payment Button to embed the Payment button onto the page. Embed Button 3.7 Choose the Payment Button using the drop-down and publish or update the page. Choose Payment Button The Payment Button appears on the page. Payment Button Appears You can now start accepting payments on your WordPress website using the Payment Button.

FAQs

You cannot directly use the Payment Button code generated from the Dashboard if you are using www.wordpress.com. You must upgrade to the WordPress paid plan and use the Razorpay Payment Button plugin.
If you are using Thrive Editor to add the button code for Razorpay, it is essential to note that Thrive Editor does not support the direct inclusion of scripts in HTML pages or posts. It automatically places a code tag on top of the script and adds a <code class="tve_js_placeholder"> above the payment button script. Unfortunately, there is no workaround for this behaviour. We recommend using the WordPress default editor, Gutenberg, or any other compatible editor to add payment buttons effectively. These editors allow you to add payment button scripts without the interference caused by Thrive Editor’s script handling. This will ensure a smooth integration of Razorpay payment buttons into your website.
This error indicates that your API Key and Secret for Razorpay have expired. Follow the steps given below to resolve the issue:
  1. Log in to Dashboard.
  2. Generate new API Keys.
  3. Replace the old API Key and Secret in your integration code with the newly generated API keys.