30

也许还是有人在寻找设置Clickbank产生销售时手机短信提醒的设置方法,现在把代码和方法贴出来。我自己一直都在用,真的很方便。

首先建一个 PHP文件,文件代码如下:

<?php
function cbValid()
{   
$key='你的Secret Key:';   
$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("你的邮箱", "ClickBank - " . $_REQUEST['ctransaction'],"Product: " . $_REQUEST['cprodtitle'] . "\nPublisher: " . $_REQUEST['ctranspublisher'] . "\nAffiliate: " . $_REQUEST['ctransaffiliate'] . "\nTransaction: " . $_REQUEST['ctransaction'] . "\nAmount: " . $_REQUEST['ctransamount']);
   ?>

这段代码其中有2个要改的地方,Secret Key 改为任意的大写字母或数字,邮箱改为你的邮箱,命名保存,一般我命名 mail.php,然后上传到你的空间上。

然后打开CB账号,进入 ACCOUNT SETTINGS - My site – Advanced Tools – Edit

Secret Key: 填上刚才PHP文件中的“任意的大写字母或数字”
Instant Notification URL: 点 (request access)

出来一列问题,你都选 YES,然后下面的Terms of Use 拉下来, I understand and agree to the Terms of Use. * 打勾,保存。

然后 Instant Notification URL 填上你刚才那个PHP文件的地址,如 XXX.COM/mail.php

点后面的 TEST,如果有收到信件就代表成功了!

如果想用手机接收的话,可以去注册个139.com的信箱,免费的。然后把上面PHP文件中的邮箱地址设为你的手机号@139.com 就OK了,记得要去139的信箱上设置下来信短信提醒:)

这个方法 refund也会提醒。





原创文章如转载,请注明:转载自网上赚钱博客 [ http://www.netmoneyblog.com/ ]
本文链接地址:http://www.netmoneyblog.com/2010/05/clickbank-sale-sms-eminder/



标签:

相关文章:

  1. 利用Gmail更新Blogger.com博客
  2. Clickbank又出问题了
  3. 怎样用WordPress做Landingpage
  4. Google的Instant即时搜索
  5. 季节性市场低迷?

国外主机空间评测

3 Responses to “Clickbank产生SALE,手机短信提醒的设置方法”

  1. lafeng Says:

    你上面的代码真的很难复制。。。。

  2. admin Says:

    我测试过没什么问题啊?

  3. 韩智慧 Says:

    就是没法复制

发表评论