Jump to content

WHMCS integration with JROX no longer working


jtaylor

Recommended Posts

Hello,

 

We have recently upgraded our WHMCS version to the latest one - 4.2. We have been using JROX JAM affiliate system for quite a long period and it was communicating with WHMCS without any problems. However, since the update, we have stopped receiving results from WHMCS associated with the hook. Here is the code that we use:

 

<?

function actionhook_InvoicePaid($vars) {

if (!empty($_COOKIE['jrox'])){

$result=mysql_query("SELECT * FROM tblorders WHERE invoiceid = '".$vars."' LIMIT 1");

$row = mysql_fetch_array($result);

$JAMIntegrate = file_get_contents("http://www.domain.com/affiliates/sale.php?amount=".$row['amount']."&trans_id=".$vars."&custom_mid=".$_COOKIE['jrox']);

}

}

add_hook("InvoicePaid",0,"actionhook_InvoicePaid","");

?>

 

We have not changed the location or anything in this code. I assume that in the new WHMCS there might be something different and we should change something in the code?

 

If someone can help, it would be much appreciated!

 

Thanks in advance!

 

Regards,

 

Jonathan

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated