Results 1 to 2 of 2

Thread: hel with Integrating JAM

  1. #1
    Join Date
    Dec 2008
    Posts
    4

    Default hel with Integrating JAM

    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

    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']);
           }
    }
    I am at a loss as to where to go from here.

    Bob

  2. #2
    Join Date
    Apr 2007
    Posts
    50

    Default

    I posted a fix for the integration here: http://forum.whmcs.com/showthread.ph...ht=JROX&page=2

    JROX has a error in their integration code.

    Regards,
    Ray

Similar Threads

  1. JROX Jam vs iDevAffiliates
    By WN-Ali in forum Customisation & Integration Questions
    Replies: 1
    Last Post: 08-26-12, 03:15 AM
  2. Jam Affiliates JRox Untegration
    By bullco in forum Customisation & Integration Questions
    Replies: 4
    Last Post: 08-01-09, 07:39 PM
  3. Jam, anyone try to intergrate
    By mylove4life in forum Customisation & Integration Questions
    Replies: 2
    Last Post: 02-25-08, 06:01 AM