Quick Payments for WordPress

WordPress is a Content Management System (CMS) that provides you the ability to publish, edit, modify, organize, delete and maintain content all in one central space. It could either be a host of text, photographs, videos or audio files.

Integrating your WordPress site with Razorpay allows you to accept payments on your WordPress site via the Razorpay Payment Gateway. You can accept payments via debit card, credit card, netbanking (supports 3D Secure), UPI or through any of our supported wallets.

The plugin offers seamless integration, allowing the customer to pay on your website without being redirected. This allows the plugin to work across all browsers and ensures compatibility with the latest version of WordPress.

If you are using WooCommerce with your WordPress site, we have a WooCommerce plugin too!

The plugin also lets you:

  • Add a few custom variables and some markup to a page.
  • Specify the amount, name, description and other custom details as page metadata.
  • Write <[RZP]> wherever you want on the post to display the Pay with Razorpay button.
  • The plugin takes over and completes the payment.

Installation and Configuration#

  1. Download the plugin and install it from the WordPress Plugin Directory.
  2. Log into your WordPress account and activate the Razorpay plugin in the WordPress Plugin Manager.
  3. Navigate to Settings and click the Checkout/Payment Gateways tab.
  4. Click Razorpay to edit the settings.
  5. Add in your <key_id> and <key_secret>. These can be generated from your Dashboard.
  6. Set the Payment Action to Authorize and Capture to auto-capture payments.

Add Custom Fields#

  1. Log into your WordPress account.

  2. Open or Create a page or blog post where you want the button to appear.

  3. Click Screen Options and enable the Custom Fields checkbox. Now you will have the option to add Custom fields on your page/blog post.

  4. Scroll down on the current page till you see the Custom fields section.

  5. Add the following three custom fields as metadata:

    1. amount (in paisa. For example, for ₹100 enter 10000. That is 100*100 = 10000).
    2. name (name of the product).
    3. description (description of the product that is being sold).

    If you are using WordPress 4.8 or later, the custom fields can be added via Screen Option.

  6. Save and Preview/Publish. The page appears with the Pay with Razorpay button.

Generate API Key#

To generate API key:

  1. Log into your Dashboard.
  2. Select the mode for which you want to generate the API key from the menu ribbon.

  3. Navigate to Settings.
  4. Click API Keys.
  5. Click Generate Key to generate key for the selected mode.

The Key Id and Key secret appear in a pop-out window. You also have the option to download the Key Details.

After generating the keys from the Dashboard, download and save them securely. If you do not remember your API Keys, you need to re-generate it from the Dashboard and replace it wherever required.

You have to generate separate API Keys for the test and live mode. No money is deducted from your account in test mode.


The Quick Payments WordPress plugin is released under the GPLv2 license.

Click here for details about the license.