Home
Integration Methods
WHMCS
WHMCS is the complete all-in-one client management, billing &
support solution for Web Hosts & Other Online Businesses. Packed
with features but with a core focus on remaining easy to use and customize, WHMCS enables you to easily and effectively manage your
business. It also automates many routine tasks including invoicing,
order provisioning, suspensions, and more.
If you are using newest version of WHMCS, see the last step please.
1
Edit template
Find and open file /templates/orderforms/cart/complete.tpl
2
Locate right place for integration
Inside the file find this line: {if $ispaid}
3
Add integration code
Insert the following code just below that line:
Save file complete.tpl after you pasted integration code.
From now should be sale registered in PAP4 every time any order is payed.
4
NOTE
If you use cart order process, you have to edit /templates/orderforms/cart/complete.tpl
If you use boxes order process, you have to edit /templates/orderforms/boxes/complete.tpl
If you use default order process, you have to edit /templates/orderforms/default/complete.tpl
If you usesingle page order process, you have to edit /templates/orderforms/singlepage/complete.tpl
By default, the cart order process is used
5
If still nothing works
If still nothing works you have to use another type of integration:
Open in editor your WHMCS_install_directory/include/actionhooks.php
Find function actionhook_InvoicePaid and add this code into this function - after {
That is all, now it should work normally.
6
Multiple currencies
If you want to use multiple currencies, we have this code that should
be inserted to actionhooks.php .... Thanks to Uwe from London.
7
For versions above 4
Please create new file in includes/hooks/ and name it somehow... Use this code for this file to integrate WHMCS: