Clickbank automatically emails publishers when an affiliate sells their product. But they do not provide an easy way to receive notification to affiliates when they sell someone else’s product!
If you’re like me, you login to Clickbank many times a day, checking in on new sales, since you don’t have any way of knowing automatically when you sell something.
In early 2008, Clickbank introduced code that can be used to get email notifications instantly, but it’s a bit tricky. There’s a tiny bit of ‘coding’ involved.
The functionality is called Instant Notification. Fortunately, they provide sample code which can be modified to suit your needs. Here’s how to do it:
First copy the script, insert your Secret Key (an Uppercase letters and numbers string you will enter into your clickbank account in step 8 below) and Email Address to your own in the script, and upload it to your web server, I called mine cb-notification.php. Then
- Log into your account
- Click the “Account Settings” tab
- Click “My Site” in the sub nav
- Click the small ‘Edit’ link in the upper right of the box with the Security Key and Instant Notification
- Locate the “Instant Notification” field and click the “Click HERE to request access” hyper link
- Fill out the form and thoroughly review the terms of use
- Click the “Submit” button at the bottom of the form
- Enter a Secret Key (Uppercase letters and numbers only) into the “My Site” Screen
- Enter the URL of the file you uploaded to your site into the Instant Notification Box
- Hit Save Changes
- Click on Test next to the address you entered, and you should get a test email!
php code:
<?php
function cbValid() {
$key=’YOUR SECURITY CODE HERE’;
$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;
}
if (cbValid())
mail(“YOUR EMAIL ADDRESS HERE”, “ClickBank – ” . $_REQUEST['ctransaction'],”Product: ” . $_REQUEST['cprodtitle'] . “\nPublisher: ” . $_REQUEST['ctranspublisher'] . “\nAffiliate: ” . $_REQUEST['ctransaffiliate'] . “\nTransaction: ” . $_REQUEST['ctransaction'] . “\nAmount: ” . $_REQUEST['ctransamount']);
?>
If this is too technical for you, get a friend to help. Make sure, as you copy and paste the code, that you don’t end up with ‘curly quotes’ (PHP can’t read that).
You can use this code exactly as it appears, or you can modify what is sent in the email.
I hope this helps you…hopefully you won’t need to be logging into Clickbank all day long now. Just check your email!

0 responses so far ↓
There are no comments yet...Kick things off by filling out the form below.
You must log in to post a comment.