Jump to content

hel with Integrating JAM


netwise

Recommended Posts

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

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