1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

hello everyone , please help

Discussion in 'Introductions' started by seantsi90, Feb 16, 2009.

  1. seantsi90

    seantsi90 Newbie

    Joined:
    Feb 6, 2009
    Messages:
    0
    Likes Received:
    0
    i need help with ipn script, i have amember pro for my site and i am using clickbank. the script i have so far in my php folder is :

    <?php
    function cbValid() {

    $key='YOUR SECRET KEY';
    $ccustname = $_REQUEST['ccustname'];
    $ccustemail = $_REQUEST['ccustemail'];
    $ccustcc = $_REQUEST['ccustcc'];
    $ccuststate = $_REQUEST['ccuststate'];
    $ctransreceipt = $_REQUEST['ctransreceipt'];
    $cproditem = $_REQUEST['cproditem'];
    $ctransaction = $_REQUEST['ctransaction'];
    $ctransaffiliate = $_REQUEST['ctransaffiliate'];
    $ctranspublisher = $_REQUEST['ctranspublisher'];
    $cprodtype = $_REQUEST['cprodtype'];
    $cprodtitle = $_REQUEST['cprodtitle'];
    $ctranspaymentmethod = $_REQUEST['ctranspaymentmethod'];
    $ctransamount = $_REQUEST['ctransamount'];
    $caffitid = $_REQUEST['caffitid'];
    $cvendthru = $_REQUEST['cvendthru'];
    $cbpop = $_REQUEST['cverify'];

    $xxpop = sha1("$ccustname|$ccustemail|$ccustcc|$ccuststate|$ctransreceipt|$cproditem|$ctransaction|"
    ."$ctransaffiliate|$ctranspublisher|$cprodtype|$cprodtitle|$ctranspaymentmethod|$ctransamount|$caffitid|$cvendthru|$key");

    $xxpop=strtoupper(substr($xxpop,0,8));

    if ($cbpop==$xxpop) return 1;
    else return 0;
    }
    ?>



    this is my first time setting all this up so any help i would sure appreciate it:

    thank you
     
  2. stinky_boy

    stinky_boy Junior Member

    Joined:
    Nov 21, 2008
    Messages:
    128
    Likes Received:
    35
    Occupation:
    head games
    Location:
    money street
    Hi, don't know anything a lot coding, but welcome to the forum. It just looks like you have only one part of the script and that part you have isn't the setup part.