1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Get an Email everytime you make a ClickBank sale!

Discussion in 'Clickbank' started by RacerXar, Jul 13, 2012.

  1. RacerXar

    RacerXar Junior Member

    Joined:
    Jul 13, 2010
    Messages:
    138
    Likes Received:
    34
    Hey!
    I didnt write this guide, but Ive found this very helpful, so probably you will do too.

    I was looking for a way to get an email notification anytime some of the items im promoting is sold, and clickbank doesnt do this by default.

    So here it is:

    1. Log in to your Clickbank account. That?s kind of a ?duh? one, but you never know.

    2. Click the ?Account Settings? tab and go to ?My Site?.

    3. At the bottom of the My Site page is an ?Advanced Tools? bar with an empty field beside ?Secret Key? and ?Instant Notification URL?. Click ?Edit?.

    4. You?ll need to request access to Instant Notification, so click that URL.

    5. Read over the terms and agree to them. Submit the form.

    6. Enter a Secret Key in the Secret Key field. The secret key can be up to 16 letters or digits and must be ALL CAPS.

    7. Copy this code into a plain text file, (I use Notepad) and save it to your desktop as a php file. For example, I saved mine as cb.php so it was easy to remember. Make sure to change your email address in the code to your own before saving it as well as the secret key you came up with in the previous step.

    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']);
      
    ?>

    Or you can download the file here. Make sure to change the file extension from .txt to .php before uploading it.

    8. Put that file on your server using an FTP program. I chose to upload the file right to my root directly so the URL ends up being:
    http://www.mydomain.com/cb.php
    (Hopefully you already have one and know how to use it. If not, leave a comment and I?ll help you out.)

    9. Back in the Clickbank site, enter that URL (http://www.mydomain.com/cb.php) ? after replacing ?mydomain? with your own of course ? into the Instant Notification URL 1: field. I left the second field blank.

    10. Before saving changes, click on ?Test? to make sure everything is hunky dory. You should receive a test email to the email address you put in the php file.

    11. A window should pop up to notify you that the test was a success. Hooray! Now you can save changes.

    Now you?ll receive an email each time you make a Clickbank sale. Sweet, hey?

    Thank you Black Hat world community for all the love shared here!
     
    • Thanks Thanks x 5
  2. highroller

    highroller Registered Member

    Joined:
    Jun 3, 2009
    Messages:
    65
    Likes Received:
    8
    Occupation:
    social media consultant
    Location:
    USA
    I did none of the above and always get an email when I sell my cb product. Maybe cause its mine?
     
  3. -s3c-

    -s3c- Junior Member

    Joined:
    Jan 19, 2010
    Messages:
    106
    Likes Received:
    77
    Too much hassle, I just use the Clickbanker app on my phone, you get a notification everytime you have a sale.
     
  4. extreme90

    extreme90 Jr. VIP Jr. VIP

    Joined:
    Oct 21, 2007
    Messages:
    1,135
    Likes Received:
    477
    Location:
    ★☆ Earth! =) ★☆
    it's better to login everytime through a cellphone then doing this hectic work!
     
  5. RacerXar

    RacerXar Junior Member

    Joined:
    Jul 13, 2010
    Messages:
    138
    Likes Received:
    34
    LOL dont be lazy people! its really a simple job.... and it works like a charm!
     
    • Thanks Thanks x 1
  6. drogon

    drogon Elite Member Premium Member

    Joined:
    May 28, 2010
    Messages:
    2,107
    Likes Received:
    1,004
    One thing missing in the instructions above is that you need to set your email address in CAPS or it will not work.

    Cheers.
     
  7. LittleBoots

    LittleBoots Registered Member

    Joined:
    Apr 27, 2012
    Messages:
    89
    Likes Received:
    21
    Occupation:
    Student
    Location:
    United Kingdom
    Really?! Hectic? No your just whining now, give the guy a break.

    p.s. Nice article mate :)
     
  8. Cratos

    Cratos Jr. VIP Jr. VIP Premium Member

    Joined:
    Aug 16, 2012
    Messages:
    1,756
    Likes Received:
    1,095
    Gender:
    Male
    Occupation:
    SEO
    Location:
    Where The Elite SEOs Dwell
    never mind, that sounds like work.
     
    • Thanks Thanks x 1
  9. imguy

    imguy BANNED BANNED

    Joined:
    Jun 25, 2011
    Messages:
    182
    Likes Received:
    191
    Does still this method works?
     
  10. drogon

    drogon Elite Member Premium Member

    Joined:
    May 28, 2010
    Messages:
    2,107
    Likes Received:
    1,004
    This still works but make sure you enter your email address in CAPS.

    Cheers.
     
  11. imguy

    imguy BANNED BANNED

    Joined:
    Jun 25, 2011
    Messages:
    182
    Likes Received:
    191
    It does not work for me. I have also tried to change versions but did not get any email.

    P.S: Btw, test passed but did not get any email.
     
  12. imguy

    imguy BANNED BANNED

    Joined:
    Jun 25, 2011
    Messages:
    182
    Likes Received:
    191
    This script works like a charm:

    HTML:
    http://www.blackhatworld.com/blackhat-seo/clickbank/25032-clickbank-sales-notification-e-mail.html
     
  13. drogon

    drogon Elite Member Premium Member

    Joined:
    May 28, 2010
    Messages:
    2,107
    Likes Received:
    1,004
    Did you actually save and edit the code in Notepad by adding your email address in the specified field in CAPITALS?
     
  14. bgreat

    bgreat Registered Member

    Joined:
    Nov 2, 2012
    Messages:
    87
    Likes Received:
    6
    thanks for the info
     
  15. myhomestartup

    myhomestartup Regular Member

    Joined:
    May 24, 2012
    Messages:
    420
    Likes Received:
    175
    If you don't want to do the "code-work" (even though it is given to you), there is a word press plugin that does that step for you. All you have to do is the clickbank back-end step.
     
  16. Gogol

    Gogol Elite Member

    Joined:
    Sep 10, 2010
    Messages:
    3,063
    Likes Received:
    2,872
    Gender:
    Male
    Never knew there was such things! Thanks added. Let me check!
     
  17. blackua

    blackua Newbie

    Joined:
    Jun 23, 2013
    Messages:
    13
    Likes Received:
    2
    I will try to do this. Thank You!
     
  18. sammhamid

    sammhamid Newbie

    Joined:
    May 22, 2013
    Messages:
    26
    Likes Received:
    12
    Thanks for this useful method. Work like a charm :):)