- Open configuration.php file in WHMCS root folder
- Paste following code in it.
//--- keys for API access --- $api_access_key = 'replace-me'; $autoauthkey = 'replace-me';
- replace keys with random numbers and characters. Remember auto auth key cannot accept symbolsNote: If you had secured your configuration.php file to 400,440 or 444 as per security steps here, you will need to set permissions to 755 to allow editing.
API Access Key
Accessing WHMCS through API needs an access key to be defined. Access key or secret passphrase in the WHMCS is defined in configuration.php. To configure it, add a line as follows to your lines to your
$api_access_key = 'Your_Secert_API_Key Here';
Auto Auth Key
WHMCS Cart plugin uses WHMCS AuthoAuth key for logging in users into WHMCS to pay the invoice. AutoAuth is by default disabled. In order to enable it on your WHMCS install, you will need to define “autoauthkey” to configuration.php file.
To define an AutoAuth key.
$autoauthkey = "YourKeyWithSomeNumbers309492";
The key value needs to be a random sequence of letters and numbers, no special characters are allowed.
Note: You can use your key randomly yourself by hand or you may use this site to generate a key http://passwordsgenerator.net/