Razorpay for WooCommerce


This is the official Razorpay payment gateway plugin for WooCommerce. Allows you to accept credit cards, debit cards, netbanking, wallet, and UPI payments with the WooCommerce plugin. It uses a seamles integration, allowing the customer to pay on your website without being redirected away. This allows for refunds, works across all browsers, and is compatible with the latest WooCommerce.

This is compatible with WooCommerce>=2.4, including the new 3.0 release. It has been tested upto the 3.1.1 WooCommerce release.


  1. WordPress v3.9.2 and later
  2. Woocommerce v2.6 and later
  3. PHP v5.6.0 and later
  4. php-curl extension


  1. Visit the WooCommerce settings page, and click on the Checkout/Payment Gateways tab.
  2. Click on Razorpay to edit the settings. If you do not see Razorpay in the list at the top of the screen make sure you have activated the plugin in the WordPress Plugin Manager.
  3. Enable the Payment Method, name it Credit Card / Debit Card / Internet Banking (this will show up on the payment page your customer sees), add in your Key id and Key Secret.
  4. The Payment Action should be set to «Authorize and Capture». If you want to capture payments manually from the Dashboard after manual verification, set it to «Authorize».


Visit razorpay.com for support requests.


The Razorpay WooCommerce plugin is released under the GPLv2 license, same as that
of WordPress. See the LICENSE file for the complete LICENSE text.


  1. Install the plugin from the WordPress Plugin Directory.
  2. To use this plugin correctly, you need to be able to make network requests. Please make sure that you have the php-curl extension installed.

Часто задаваемые вопросы

Does this support webhooks?

Yes, please see https://github.com/razorpay/razorpay-woocommerce/wiki/Webhooks for more details

How do I enable Multi-currency support

Please get multi-currency enabled for your account. Once you have it enabled, you can install any plugin
version higher than 2.0.0, which comes with native multi-currency support.


1 star - cannot give below that. These guys take forever to activate the account. They are like a committee of members deciding where you can do business or not by not activating your account. bullsh*t Razorpay. Making payments easy is not alone enough. Merchants' onboarding should also be easy.
I am creating a new e-commerce website using wordpress. I am using WordPress Certified by Bitnami and Automattic-5-4-2-1 on Debian 10-AutogenByAWSMP on aws. In this I am facing the problem that in payment settings of woocommerce when I setup RAZORPAY or INSTAMOJO payments methods , they dosn’t show on checkout page.
Посмотреть все 13 отзывов

Участники и разработчики

«Razorpay for WooCommerce» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:


Перевести «Razorpay for WooCommerce» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.

Журнал изменений


  • Updated Razorpay SDK.
  • Added subscription webhook events.
  • Tested up to Woocommerce 5.9.0


  • Bug fix in custom woocommerce order number issue.
  • Tested up to Woocommerce 5.9.0


  • Added Route module to split payments and transfer funds to Linked accounts.
  • Tested up to Woocommerce 5.8.0


  • Bug fix in callback handler.
  • Tested up to Woocommerce 5.8.0


  • Bug fix in webhook.
  • Tested up to Woocommerce 5.5.1


  • Updated the Razorpay Order notes key from woocommerce_order_id to woocommerce_order_number.


  • Added auto-webhook setup feature.
  • Updates Razorpay SDK.
  • Tested upto WordPress 5.7.2 and WooCommerce 5.3.0


  • Updated wc order syntax.
  • Tested upto WordPress 5.7.1 and WooCommerce 5.2.2


  • Added RAZORPAY ORDER ID in checkout argument.
  • Tested upto WordPress 5.6.2 and WooCommerce 5.0.0


  • Added webhook for virtual account credited event.
  • Tested upto WordPress 5.6 and WooCommerce 4.6.1


  • Added support for «Pay by Cred».
  • Tested upto WordPress 5.4.2 and WooCommerce 4.3.0


  • Updated logo from CDN.
  • Tested upto WordPress 5.4.2 and WooCommerce 4.3.0


  • Bug fix for partial refund shown twice.
  • Bug fix for wc-api redirection after payment completed
  • Tested upto WordPress 5.4.1 and WooCommerce 4.1.1


  • Updated WordPress support version info


  • Added webhook for handling refund create and change order status
  • Bug fix for cart is reset if payment fails or is cancelled
  • Tested upto WordPress 5.2.4 and WooCommerce 3.7.1


  • Added RAZORPAY ORDER ID in order notes.
  • Tested upto WordPress 5.2.4 and WooCommerce 3.7.1


  • Bug fix for hosted checkout.
  • Tested upto WordPress 5.2.4 and WooCommerce 3.7.1


  • Support for hosted checkout.
  • Tested upto WordPress 5.2.4 and WooCommerce 3.7.1


  • Adds webhook for handling subscription cancellation.
  • Tested upto WordPress 5.2.2 and WooCommerce 3.7.0


  • Fixed bug for razorpay orderID validation.
  • Adds support for razorpay Analytics
  • Tested upto WordPress 5.2.2 and WooCommerce 3.6.5


  • Removes support for WooCommerce Currency Convertor
  • Switches to Razorpay’s Native Multi-Currency support
  • Adds support for Price Based on Country Plugin
  • Tested upto WordPress 5.2-RC1 and WooCommerce 3.6.2
  • Release uploaded as 2.0.1 on the WordPress Plugin Directory.


  • Allows for null values in displayAmount
  • Better support for international currency conversion
  • Support for custom order success message


  • Fixes webhook capture flow by re-fetching payment and checking for status


  • Fixes payment title/description in WC Checkout page.
  • Adds WooCommerce version tested in the plugin metadata


  • Adds Razorpay Subscriptions plugin support.
  • Code cleanup.


  • Webhooks are now disabled by default (#52)


  • Fixed an issue with some websites «Pay now» button click not working. (#50)


  • Fixes backward compatibilty with older WooCommerce releases. (#49)



  • Webhooks signature verification fix


  • Added webhooks to the plugin (includes/razorpay-webhook.php) (#18)


  • Added missing classes in the WordPress release (Utility.php was missing)


  • Added Support for WooCommerce 3.x (#35)
  • Fixes around discount coupon handling (Order Amount mismatch)
  • Updates Razorpay SDK
  • Improves Javascript Caching (#39)
  • Adds support for mobile browsers (#37🙂
    • Chrome on iOS
    • Facebook Browser
    • Internet Explorer Mobile
    • AOSP Browser
    • Opera Mini
    • Google Search App
    • Any other apps using webviews
  • Adds support for refunding payments from within WooCommerce


  • Fixes a Notice about WC_Shortcode_Checkout->output being deprecated
  • PR: #28


  • Improves Session management
  • Diff: https://git.io/vHVBM


  • Shifts to the official Razorpay SDK
  • Shifts to the Razorpay Orders API. Allows for auto-capturing and improves success rates
  • WordPress Versions >=3.9.2 only are supported


  • Fixes issues with Safari and Internet Explorer


  • Improves error handling in case customer clicks on cancel.
  • Orders are now marked as failed if customer clicks cancel
  • Note is added to the order mentioning that the customer cancelled the order.


  • Fixed error handling and capture call


  • Disables buttons while payment is in progress
  • Refactors error message display


  • Redirects customer to order details page, as per WooCommerce guidelines.


  • Adds manual capture option