Skip to main content
Read about whitelisting your store url before you can accept payments on your woocommerce store.
WooCommerce is a customisable, open-source eCommerce platform built on WordPress. You can configure WooCommerce to suit your store’s needs. Integrate WooCommerce with Cashfree Payment Gateway to accept payments on your WooCommerce store. The integration supports all major payment methods, such as debit cards, credit cards, Unified Payments Interface (UPI), net banking, and wallets. Download the latest version of the official Cashfree WooCommerce plugin from GitHub. To install the plugin:
  1. Log in to your Wordpress Admin Dashboard.
  2. Search for the downloaded plugin, extract and copy this plugin in the plugin folder (/wp-content/plugins) of your website.
  3. Activate plugin Cashfree from Wordpress Plugins Page.
  4. Go to WooCommerce > Settings > Payments > Cashfree.
  5. Select the checkbox against Enable/Disable field.
  6. Enter your Cashfree Payment Gateway App ID in the App Id field and your Secret Key in the Secret Key field. Use the keys that match the environment you set up in the next step:
    • Sandbox environment (Enable Cashfree Sandbox selected): use your sandbox keys.
    • Production environment (Enable Cashfree Sandbox cleared): use your production keys.
    To generate your keys, see Generate API Keys.
  7. Click on Enable Cashfree Sandbox to enable sandbox if required.
  8. Click on Enable In Context to use without redirection payment flow.
  9. Click Save Changes.
If you see an “Authentication Failed” error message during integration, please clear the option “Enable Cashfree Sandbox” in the WooCommerce plugin Settings page.
The most common cause of an authentication failure on WooCommerce, even when the plugin is installed and active, is a mismatch between your API keys and the environment mode configured in the plugin. Go to WooCommerce > Settings > Payments > Cashfree. If Enable Cashfree Sandbox is checked, use your sandbox credentials from the Merchant Dashboard test environment; if it is unchecked, use your production API keys. Never mix sandbox keys with production mode, or vice versa. To locate or regenerate your API keys, see Generate API keys.

Frequently asked questions

This FAQ covers moving your WooCommerce store from test mode to production.
To go live with the Cashfree WooCommerce plugin:
  1. Obtain production API keys from the Merchant Dashboard. See Generate API Keys.
  2. Go to WooCommerce > Settings > Payments > Cashfree and clear the Enable Cashfree Sandbox checkbox.
  3. Replace the App Id and Secret Key with your production API keys, and then click Save Changes.
  4. Whitelist your website domain in the Merchant Dashboard for production payments. See Whitelist Store URL.