What is WHMCS?WHMCS is a complete client management, billing, and support solution for online hosting businesses. Since 2005, they have been helping web hosting companies automate their operations, reduce costs, and deliver a better experience to their end-users. With a wide range of integrations, WHMCS can provide a unique centralized platform for managing your web hosting business. They handle everything from customer signup to provisioning and support.
IntroductionThe goal of this document is to provide installation and configuration instructions for the CCBill WHMCS billing module. This document assumes that the reader has a working knowledge of WHMCS and has already signed up for WHMCS.
The CCBill WHMCS billing module is used for WHMCS for both one-time and recurring billing. This module is compatible with WHMCS 6.2.0.
OverviewThe CCBill WHMCS billing module enables easy integration of your CCBill account within the WHMCS platform. Installation involves the following steps:
- Installing the CCBill payment module for WHMCS.
- Configuring your CCBill account for use with WHMCS.
- Configuring the CCBill Payment Gateway in the WHMCS admin panel.
Installation ProcedureThe CCBill WHMCS module is installed by uploading the extracted (unzipped) plugin code downloaded from the CCBill website into the appropriate folders of your WHMCS installation, as outlined below:
Please note that ccbillerror.tpl needs to be copied to the folder of the WHMCS template in use. For example, if you are using template Six, copy ccbillerror.tpl to folder six.
Configuring Your CCBill AccountBefore using the plugin, it’s necessary to configure a few things in your CCBill account. The following CCBill settings must be correct for the payment module to work correctly.
Enable Dynamic PricingPlease work with your CCBill support representative to activate Dynamic Pricing for your account. You can verify that Dynamic Pricing is active at Account Info > Manage the Sub Accounts > Feature Summary in the Admin Portal. Your Dynamic Pricing status appears at the bottom of the Billing Tools section.
Creating a Salt / Encryption KeyA "salt" is a string of random data used to make your encryption more secure. CCBill Merchant Support will generate your Salt/Encryption Key. Once set, it will be visible at Sub Account Admin > Advanced. It will appear in the Encryption Key field of the Upgrade Security Setup Information section.
Disabling User ManagementSince this account will be used for Dynamic Pricing transactions (not managing user subscriptions), User Management must be disabled.
- Sign in to the Admin Portal.
- On the Account Info mega menu, click Sub Account Admin, then User Management on the left menu.
- Select Turn off User Management in the top section.
- Select Do Not Collect Usernames and Passwords in the Username Settings section.
Configuring CCBill WebhooksFor the plugin to work, you will need to set up CCBill Webhooks. To do so:
- Log into the CCBill Admin.
- Open the Account Info mega menu and navigate to Sub Account Admin.
- Select Webhooks from the navigation pane on the left.
- Under Webhook URL, enter the base URL for your WHMCS store, followed by:
For example, if your WHMCS store is located at www.teststore.com, the Approval URL would be:
- If you entered a Webhook Key (optional) on the CCBill module configuration page, you must append that value to the Approval URL. For more details regarding the Webhook Key, please refer to CCBill Options in WHMCS.
For example, if your whKey value is 12345, the Approval URL would be:
- NewSaleSuccess, RenewalSuccess, NewSaleFailure and Cancelation are REQUIRED Webhook notifications for the CCBill WHMCS plugin.
Create a New Payment FormThe payment form is the CCBill form that will be displayed to your clients. The payment form accepts customer payment information, processes the payment, and sends the client to a designated URL after the payment has been processed.
Below you will find additional instructions on how to create a FlexForm payment form. If you need a more in-depth user guide, please refer to our FlexForms User Guide.
Creating a Payment Flow and FlexFormTo create a FlexForm for use with Ubersmith:
- Ensure All is selected in the top Client Account drop-down menu. FlexForms are not specific to sub accounts, and cannot be managed when a sub account is selected.
- Navigate to the FlexForms Systems tab in the top menu bar and select FlexForms Payment Links. All existing forms will be displayed in a table.
Create an Approval URLOnce a consumer has made a successful payment through CCBill, they need to be redirected back to your WHMCS online store. To do so, we need to define a redirect URL upon approval.
- Click the URLs Library button in the upper-right corner of the screen to create a new URL. The Saved URLs Editor dialog displays.
- Use the fields under Add New to create a new URL with the following properties.
- URL Name. Enter a meaningful name for this URL (e.g. “WHMCS Payment Success”).
- URL. Under URL, enter the URL of your WHMCS store.
- Click Save to commit your changes. Your new URL displays under Existing List.
- Promote to Live.
- Click Promote under the Actions column. Your URL is now live.
- Close the Saved URLs editor to return to the main FlexForms menu.
Create a New FlexForm
- Click the Add New button in the upper-left to create a new payment flow. You are now essentially editing the first tile of the Payment Flow. In this case, you will be creating a FlexForm payment form for your WHMCS clients.
- The New Form dialog is displayed:
- Payment Flow Name. At the top, enter a name for the new payment flow (this will be different than the form name, as a single form can be used in multiple flows).
- Form Name. Under Form Name, enter a name for the form.
- Pricing. You needn't assign any Price Points to this form. Prices will be dynamically inserted.
- Dynamic Pricing. Under Pricing, check the box to enable dynamic pricing. This is a requirement for the integration to work.
- Layout. Select your desired layout, and save the form.
- Theme. Select a predetermined color theme.
- Edit the Flow. Click the arrow button to the left of your new flow to view the details. Under the green Approve arrow, click the square to modify the action.
- Approval URL. In the left menu, select A URL. Select a Saved URL and select the Approval URL you created earlier. This should be the base URL of your WHMCS online store.
- Promote to Live. Click the Promote to Live button to enable your new form to accept payments. *Note the FlexForms ID. You will need to provide the FlexForm ID on the CCBill Payment Gateway Module page in the WHMCS admin panel.
Configuration - WHMCSIn the top menu of your WHMCS admin panel, please select Setup > Payments > Payment Gateways. Select All Payment Gateways and find and click the CCBill Payment Gateway Module option.
To configure the module, select Manage Existing Gateways.
The next section will outline how to fill in the fields on the CCBill Payment Gateway Module page.
CCBill OptionsOn the CCBill Payment Gateway Module page, enter the following information.
|Show on Order Form||Make sure to check this option to enable CCBill Payment processing.|
|Client Acct #||Enter your CCBill merchant account number.|
|Client Sub Acct #||Enter your CCBill merchant sub-account number.|
|Flex ID||Enter the FlexForm ID created during CCBill account configuration.|
|Salt||Enter your salt / encryption key obtained during CCBill configuration.|
|Webhook Key (Optional)||This is an optional parameter. However, it is advised to define a Webhook Key for added security.|
Click Save Changes at the bottom of the CCBill configuration section.
ConfirmationYou are now ready to process payments via CCBill!
Products you create in WHMCS will now interact with the CCBill shopping cart and checkout process.
Please conduct a few test transactions (using test data provided by CCBill) to ensure proper operation before enabling live billing mode in your CCBill account.
Support Options and Additional ResourcesWHMCS
- Information Link: https://www.whmcs.com/company/
- Support Link: https://www.whmcs.com/support/
- FAQs: https://www.whmcs.com/faqs/
- Sign Up Link: https://www.whmcs.com/pricing/