API ReferenceIntegrationsKnowledge Base

Web Host Manager Complete Solution (WHMCS) Integration

Web Host Manager Complete Solution (WHMCS) is an all-in-one client management, billing & support solution for online businesses. With an easy-to-access management interface, WHMCS provides and manages automated billing, customer signup, service/server provisioning and management solutions. It caters to resellers, agencies, and developers looking to streamline or expand their web-dependent businesses.

Integrating your WHMCS solution with Razorpay allows you to accept payments via the Razorpay Payment Gateway. You can accept payments via debit card, credit card, netbanking (supports 3D Secure), Unified Payments Interface (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 integration to work across all browsers and ensures compatibility with the latest version of WHMCS.

Currently, we 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 in GitHub.
    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, that is 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 drop down 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 that you update the Exchange Rate in your currency management settings.
  9. Click Save Changes.

Generate API Key#

  1. Log into your Dashboard with appropriate credentials.
  2. Select the mode (Test or Live) for which you want to generate the 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.
  3. Navigate to SettingsAPI KeysGenerate Key to generate key for the selected mode.

The Key Id and Key Secret appear in a pop-out window as shown below:

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.