WHMCS Integration
Create a file (name it e.g. pap.php) in the /includes/hooks/ directory of your installation of WHMCS and use the following code there.
NOTE: Do not forget to follow the instructions in the code below (see them after the double slash // ) in the first few lines.
<?php include_once '/PATH_TO_PAP/api/PapApi.class.php'; // Change to correct path add_hook("AfterShoppingCartCheckout",20,"pap_Track",""); add_hook("InvoicePaid",0,"pap_InvoicePaid",""); add_hook("InvoiceUnpaid",0,"pap_InvoiceD...