Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 23rd Mar 2012, 02:49 PM   #1
Warrior Member
 
Join Date: 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Clickbank IPN 4.0
Share on: 
fb share twitter share gplus share more share

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?
robkelly is offline  
Unread 27th Mar 2012, 10:38 PM   #2
HyperActive Warrior
War Room Member
 
ussher's Avatar
 
Join Date: 2010
Location: Tokyo
Posts: 314
Thanks: 27
Thanked 43 Times in 42 Posts
Default
Re: Clickbank IPN 4.0
Share on: 
fb share twitter share gplus share more share

make sure you are testing the cverify on a PRODUCT no just on the account:
http://www.warriorforum.com/programm...-question.html

"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
ussher is offline  
Unread 21st Jun 2012, 10:25 PM   #3
Active Warrior
War Room Member
 
bjarvie's Avatar
 
Join Date: 2008
Location: Australia
Posts: 65
Thanks: 2
Thanked 3 Times in 3 Posts
Default
Re: Clickbank IPN 4.0
Share on: 
fb share twitter share gplus share more share

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.

http://www.onlineincomeguru.com Download 30 Different Traffic Generation Strategies INSTANTLY !!!
bjarvie is offline  
Closed Thread


Bookmarks

Tags
clickbank, ipn


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 04:52 PM.