View Cart
REACHIT
1300 797 020 Call Today!
Visit us on Facebook Follow us on Twitter Go to our Google+ Page Go to our Linkedin Page Watch our YouTube Channel Subscribe to our Latest News Feed Chat to us on Skype

Home > Knowledgebase > Development > Modules > WHMCS BPay Module > WHMCS BPay Module Installation Instructions


WHMCS BPay Module Installation Instructions




In order to use the WHMCS BPay Module, you will have to download the associated files from within your My Account. You can do this by viewing the module under 'My Services' once you have logged into your account. Once you have downloaded the zip file containing all the necessary files, please follow the installation instructions below:

Installation Instructions:

1 - Upload the contents of whmcs-bpay.zip to your gateway modules folder
(i.e. /whmcs/modules/gateways/)

2 - Open the configuration file (bpay/config.php) and enter your license key.

3 - Set permissions of '777' to the localkey.txt file (full read/write access)

4 - Run the initialisation script in your browser i.e. http://www.yourdomain.com.au/whmcs/modules/gateways/bpay.php?debug=1 (change to suit your domain)

5 - In the WHMCS Administration, go to Setup -> Payment Gateways and activate BPay

You can add your own HTML code for the online invoice here, or use the default (must specify URL of image if using default)
Place BILLERCODE and CUSTREF where you want the BPay biller code and customer reference to appear in the html respectively.

6 - Add the following lines to invoicepdf.tpl (Invoice PDF Template File) to the second line, just after "<?php"

// START BPAY MOD
include_once('modules/gateways/bpay.php');
$bpaycustref = generate_bpay($clientsdetails['userid']);
// END BPAY MOD

Use the php variable '$bpaycustref' where you want the customer reference to appear within your PDF invoice.

Error Codes

5001 - Invalid Licence (licence key, domain or IP is invalid)
5002 - Expired Licence
5003 - Suspended Licence

If you receive a fatal error in invoicepdf.tpl, please try the fix located at:
http://www.reachit.com.au/193/Fatal-error-Call-to-undefined-function-generatebpay.html









Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read

Footer Bar

MySQL DELL Microsoft Corporation PHP CISCO Linux cPanel VMWare