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

ClickBank: Sales Notification by E-Mail

Discussion in 'Clickbank' started by MontyzPython, Sep 5, 2008.

  1. MontyzPython

    MontyzPython BANNED BANNED

    Joined:
    Nov 3, 2007
    Messages:
    1,317
    Likes Received:
    315
    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 Thanks x 9
  2. BlackBeret

    BlackBeret Regular Member

    Joined:
    Jul 12, 2008
    Messages:
    257
    Likes Received:
    61
    Location:
    Transexual, Transylvania
    Thanks, I'll give it a try. I just need some CB sales to make sure it works.
     
  3. MontyzPython

    MontyzPython BANNED BANNED

    Joined:
    Nov 3, 2007
    Messages:
    1,317
    Likes Received:
    315
    As you are adding the URL in ClickBank, you can also just click on "test" to see if it's working.
     
  4. chachinga

    chachinga Guest

    This must be for if you make a sale as an affiliate?
     
  5. bhnoobz

    bhnoobz BANNED BANNED

    Joined:
    Jul 26, 2008
    Messages:
    395
    Likes Received:
    107
    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.
     
  6. bhnoobz

    bhnoobz BANNED BANNED

    Joined:
    Jul 26, 2008
    Messages:
    395
    Likes Received:
    107
    No, only for publishers selling things.
     
  7. MontyzPython

    MontyzPython BANNED BANNED

    Joined:
    Nov 3, 2007
    Messages:
    1,317
    Likes Received:
    315
    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.
     
  8. chachinga

    chachinga Guest

    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 ;)
     
  9. bhnoobz

    bhnoobz BANNED BANNED

    Joined:
    Jul 26, 2008
    Messages:
    395
    Likes Received:
    107
    neet. i've never done the affiliate end.
     
  10. MontyzPython

    MontyzPython BANNED BANNED

    Joined:
    Nov 3, 2007
    Messages:
    1,317
    Likes Received:
    315
    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.
     
    • Thanks Thanks x 1
  11. Jimmyvee

    Jimmyvee Jr. VIP Jr. VIP Premium Member

    Joined:
    Feb 6, 2008
    Messages:
    101
    Likes Received:
    20
    Easy setup and works great!!
     
  12. bhnoobz

    bhnoobz BANNED BANNED

    Joined:
    Jul 26, 2008
    Messages:
    395
    Likes Received:
    107
    Affiliates get the email address of the person that orders too.. Login to the stats and go to reports.
     
  13. MontyzPython

    MontyzPython BANNED BANNED

    Joined:
    Nov 3, 2007
    Messages:
    1,317
    Likes Received:
    315
    Cool! I didn't notice that.
     
  14. bhnoobz

    bhnoobz BANNED BANNED

    Joined:
    Jul 26, 2008
    Messages:
    395
    Likes Received:
    107
    Glad I contributed something :D Felt like an ass earlier with the notification URL... Learn something new everyday.
     
  15. r-webb-k

    r-webb-k BANNED BANNED

    Joined:
    Dec 19, 2006
    Messages:
    373
    Likes Received:
    407
    this would be a really kool trick if you put a cellphone twist on it get a cellphone Notification whenever made a sale
     
  16. MontyzPython

    MontyzPython BANNED BANNED

    Joined:
    Nov 3, 2007
    Messages:
    1,317
    Likes Received:
    315
    @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...

    2105551234@mobile.mycingular.com

    (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.
     
    • Thanks Thanks x 1
  17. r-webb-k

    r-webb-k BANNED BANNED

    Joined:
    Dec 19, 2006
    Messages:
    373
    Likes Received:
    407
    thankx man
     
  18. chachinga

    chachinga Guest

    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 by a moderator: Sep 6, 2008
  19. MontyzPython

    MontyzPython BANNED BANNED

    Joined:
    Nov 3, 2007
    Messages:
    1,317
    Likes Received:
    315
    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.
     
  20. chachinga

    chachinga Guest

    Hey - Just tested the script and it works for when you get an affiliate sale. Thanks Monty - BTW.. sorry for the prudish comment.