1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to get ClickBank to EMail You

Discussion in 'ClickBank' started by ScoTech, Feb 22, 2008.

  1. #1
    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:D

    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:
     
    ScoTech, Feb 22, 2008 IP
    Swerd, Zibblu and ASM Design like this.
  2. falafelfro

    falafelfro Peon

    Messages:
    440
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #2
    ScoTech - Great first post! I'm sure many affiliates will appreciate your contribution!
     
    falafelfro, Feb 22, 2008 IP
  3. Zibblu

    Zibblu Guest

    Messages:
    3,770
    Likes Received:
    98
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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 ;)
     
    Zibblu, Feb 22, 2008 IP
  4. ScoTech

    ScoTech Peon

    Messages:
    310
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I'm with you Zibblu, I could probably write a couple of bum articles with the amount of time I waste checking clickbank everyday.
     
    ScoTech, Feb 22, 2008 IP
  5. Zibblu

    Zibblu Guest

    Messages:
    3,770
    Likes Received:
    98
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I think I've got it working (the test went through.) Great tip.
     
    Zibblu, Feb 22, 2008 IP
  6. topearn

    topearn Peon

    Messages:
    173
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I don't have my own site, so does this mean I cannot use this ?
     
    topearn, May 27, 2008 IP
  7. Swerd

    Swerd Active Member

    Messages:
    1,657
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    90
    #7
    great 1st post.
    rep added!
     
    Swerd, May 28, 2008 IP
  8. markov

    markov Peon

    Messages:
    3,010
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Good suggestion on getting the notification for a sale ...I need to check it. Thanx again.
     
    markov, Jul 29, 2008 IP
  9. ChrisMonty

    ChrisMonty Active Member

    Messages:
    284
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #9
    This works great. Thanks for sharing.
     
    ChrisMonty, Sep 5, 2008 IP
  10. ASM Design

    ASM Design Peon

    Messages:
    502
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Works great, thankyou :D Rep added!
     
    ASM Design, Sep 5, 2008 IP
  11. BusinessMinded08

    BusinessMinded08 Peon

    Messages:
    1,503
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Nice, will definitely give it a shot sooner or later. :)
     
    BusinessMinded08, Sep 5, 2008 IP