ClickBank: Sales Notification by E-Mail

MontyzPython

BANNED
Joined
Nov 3, 2007
Messages
862
Reaction score
377
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:
<?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']);
?>
 
Thanks, I'll give it a try. I just need some CB sales to make sure it works.
 
As you are adding the URL in ClickBank, you can also just click on "test" to see if it's working.
 
I wrote my own license script in php that works with clickstank.. There's no need to have your script email you though as clickstank will do that. At least they have always emailed me with a sales receipt so I can refund pplz if needed.
 
Incorrect, bhnoobz. This IS for affiliates. If you are selling ClickBank products as an affiliate, this will notify you via e-mail whenever you make a sale.
 
Now that is cool. You can capture that email address and send related products and your own "bonus" material filled with aff links. I think i'll hit you up on this ;)
 
Incorrect, bhnoobz. This IS for affiliates. If you are selling ClickBank products as an affiliate, this will notify you via e-mail whenever you make a sale.

neet. i've never done the affiliate end.
 
Now that is cool. You can capture that email address and send related products and your own "bonus" material filled with aff links. I think i'll hit you up on this ;)

Well, the only e-mail address is your OWN. You simply telling ClickBank to send YOU an e-mail whenever you make a sale. I don't THINK it will give you the buyer's e-mail address. All you will see is that you made a sale and the amount, I believe.
 
Affiliates get the email address of the person that orders too.. Login to the stats and go to reports.
 
Glad I contributed something :D Felt like an ass earlier with the notification URL... Learn something new everyday.
 
this would be a really kool trick if you put a cellphone twist on it get a cellphone Notification whenever made a sale
 
@bhnoobz - no problem. I feel like an ass at least twice a day.

@r-webb-k - that should be pretty easy to arrange. Just sign up to ClickBank with, say, a Gmail address. Then just auto-forward the Gmail address to your CELL PHONE's actual e-mail address for SMS.

For example, AT&T cell phones go something like this. If your phone number is 210-555-1234, then you AT&T phone's e-mail would be something like...

[email protected]

(yes, I just looked it up and my phone still has a Cingular e-mail address for some reason)

Anyway, do it that way and the e-mail will be forwarded to your phone whenever you make a sale.

If you're already signed up to CB under a diff e-mail, just set up a conditional forward that ONLY e-mails from CB will get forwarded onto your cell phone's e-mail address.

Presto.
 
Cool! I didn't notice that.

Obviously this script was never implemented by the author otherwise he/she would know how clickbank worked. Nevertheless, I will still try it on one of my 6 lesserknown CB accounts that i give no shit about. Shall report back later.
 
Last edited:
Obviously this script was never implemented by the author otherwise he/she would know how clickbank worked. Nevertheless, I will still try it on one of my 6 lesser known CB accounts that i give no shit about. Shall report back later.

If you look closely at the original post (which obviously you did not), I said "found this on another forum".

I tried it out by hitting the "test" button and ClickBank sent me the blank test e-mail.

Anytime you would like me to educate you on how CB works, let me know.
 
Hey - Just tested the script and it works for when you get an affiliate sale. Thanks Monty - BTW.. sorry for the prudish comment.
 
Back
Top