API ReferenceIntegrationsKnowledge Base

WHMCS Integration

WHMCS is an all-in-one client management, billing & support solution for online businesses.

Integrating your WHMCS store with Razorpay allows you to accept payments on your WHMCS store 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 integration offers seamless integration, allowing the customer to pay on your website without being redirected. This allows the integration to work across all browsers and ensures compatibility with the latest version of WHMCS.

Currently, we have separate versions of the integration to support the following versions of WHMCS:

Installation and Configuration#

  1. Ensure you have the latest version of WHMCS installed.
  2. Download the Source code zip file of the required version of the plugin from the Releases section.
    1. If you are using WHMCS 5, download the release tagged version 1.0.3.
    2. If you are using WHMCS 6 or WHMCS 7, download the release tagged version 1.1.1.
  3. Unzip and upload the contents of the repository to your WHMCS Installation directory, i.e., the content of module folder from the repository goes in module folder in your WHMCS Installation directory.
  4. Log into your site as the WHMCS administrator. This is done by adding /admin to the URL where you have installed WHMCS, for example, www.example.com/whmcs/admin.
  5. Navigate to SetupPaymentsPayment Gateways.
  6. Select Razorpay in the dropdown and Activate it.
  7. Enter the <key_id> and <key_secret>. You can generate these from your Dashboard.
  8. Set Convert for Processing to INR if your store has a different default currency. In this case, ensure you update the exchange rate in your currency management settings.
  9. Click Save Changes.

Generate API Key#

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

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.

Watch the short animation below for more information.

Note:
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.