2 replies
I am trying to impliment clickbank IPN but i am hitting a problem at the important ipnVerification stage.

I am using PHP and using the PHP example from clickbank;

PHP Code:
function ipnVerification() {
    
$secretKey="YOUR SECRET KEY";
    
$pop "";
    
$ipnFields = array();
    foreach (
$_POST as $key => $value) {
        if (
$key == "cverify") {
            continue;
        }
        
$ipnFields[] = $key;
    }
    
sort($ipnFields);
    foreach (
$ipnFields as $field) {
                
// if Magic Quotes are enabled $_POST[$field] will need to be
        // un-escaped before being appended to $pop
        
$pop $pop $_POST[$field] . "|";
    }
    
$pop $pop $secretKey;
    
$calcedVerify sha1(mb_convert_encoding($pop"UTF-8"));
    
$calcedVerify strtoupper(substr($calcedVerify,0,8));
    return 
$calcedVerify == $_POST["cverify"];

I am finding that the cverify variable never matches. Can any one help?
#clickbank #ipn
  • Profile picture of the author ussher
    make sure you are testing the cverify on a PRODUCT no just on the account:
    http://www.warriorforum.com/programm...-question.html
    Signature

    "Jamroom is a Profile Centric CMS system suitable as a development framework for building entire communities. Highly modular in concept. Suitable for enterprise level development teams or solo freelancers."

    - jamroom.net
    Download Jamroom free: Download
    {{ DiscussionBoard.errors[5919451].message }}
    • Profile picture of the author bjarvie
      Originally Posted by ussher View Post

      make sure you are testing the cverify on a PRODUCT no just on the account:
      http://www.warriorforum.com/programm...-question.html
      Can you please add any / all your ideas for a CB IPN licensing product to the thread in my signature - we are building out the job scope - the tool will be made available in the WAR room once completed.
      Signature
      http://www.onlineincomeguru.com Download 30 Different Traffic Generation Strategies INSTANTLY !!!
      {{ DiscussionBoard.errors[6474738].message }}

Trending Topics