Hi everybody, first time poster, so I thought I would make it something useful. Here is a super easy script to get ClickBank to email you whenever you have a new transaction. They added this functionality on 2/19/2008, and it is called Instant Notification. You can do whatever you want with the notification, my personal script will email me for any transaction, but will only email my wife if the transaction is 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']); ?> PHP:
I'm definitely going to try this out. I need a reason to *Not* check clickbank.com every hour. It's very addicting and a waste of time. If I received emails when sales were made I'd be far less tempted to waste my time doing that
I'm with you Zibblu, I could probably write a couple of bum articles with the amount of time I waste checking clickbank everyday.