Accessing $_REQUEST['caffitid'] from ClickBank

2 replies
Hi;

I am trying to access to tracking id from CB when I make an affiliate sale but $_REQUEST['caffitid'] keeps coming back blank!

When I see the payment page I see the affiliate username and the tracking id, so that part is being passed to CB ok. it's the retrieving it from CB that is the issue. is it even called $_REQUEST['caffitid'] ?

Thanks

PHP Code:
$secretKey "*****"
            
$message json_decode(file_get_contents('php://input'));
            
$encrypted $message->{'notification'};
            
$iv $message->{'iv'};
            
error_log("IV: $iv");
            
$decrypted trim(mcrypt_decrypt(MCRYPT_RIJNDAEL_128,substr(sha1($secretKey), 032),base64_decode($encrypted),MCRYPT_MODE_CBC,base64_decode($iv)), "\0..\32");
            
error_log("Decrypted: $decrypted");
            
$order json_decode($decrypted);


            
mail('me@me.com''CBSALE as affiliate',); 
#$requestcaffitid #accessing #clickbank

Trending Topics