To build on BlackBeret's earlier post, I found this on another site. This is the EXACT code and procedure for getting ClickBank to e-mail you whenever you make a sale...
Instructions:
First copy the script, change the Secret Key(an Uppercase letters and numbers string you will enter into your clickbank account in step 7 below) and Email Address to your own in the script, and upload it to your web server, I called mine mail.php I think, Then
1. Log into your account
2. Click the "Account Settings" tab
3. Click "My Site" in the sub nav
4. Locate the "Instant Notification" field and click the "Click HERE to request access" hyper link
5. Fill out the form and thoroughly review the terms of use.
6. Click the "Submit" button at the bottom of the form
7. Enter a Secret Key (Uppercase letters and numbers only) into the "My Site" Screen
8. Enter the URL of the file you uploaded to your site into the Instant Notification Box
9. Hit Save Changes
10. Click on Test next to the address you entered, and you should get a test email!
Script:
<?php
function cbValid() {
$key='Your SECRET KEY 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']);
?>