netwise Posted March 3, 2009 Share Posted March 3, 2009 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 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']); } } I am at a loss as to where to go from here. Bob 0 Quote Link to comment Share on other sites More sharing options...
Idealws Posted March 4, 2009 Share Posted March 4, 2009 I posted a fix for the integration here: http://forum.whmcs.com/showthread.php?t=7413&highlight=JROX&page=2 JROX has a error in their integration code. Regards, Ray 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.