Hello,
I am trying to integrate JAM with WHMCS. I have reviewed and followed the instructions for this process, but when an invoice gets marked paid within the WHMCS system, no comission is generated in JAM ?
Here is the code snippet from the whmcs actionhooks.php
I am at a loss as to where to go from here.Code:function actionhook_InvoicePaid($vars) { # This function runs when an invoice is fully paid and therefore the services renewed # $vars["InvoiceID"] if (!empty($_COOKIE['jrox'])) { $result=mysql_query("SELECT * FROM tblorders WHERE id = '" . $vars["InvoiceID"] ."' LIMIT 1"); $row = mysql_fetch_array($result); $JAMIntegrate = file_get_contents("http://www.laplanteenterprises.net/affiliates/sale.php?amount=".$row['amount']."&trans_id=".$vars["InvoiceID"]."&custom_mid=".$_COOKIE['jrox']); } }
Bob

Reply With Quote