五 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也会提醒。
标签: Clickbank
相关文章:



七月 31st, 2010 at 5:12 下午
你上面的代码真的很难复制。。。。
八月 1st, 2010 at 2:50 上午
我测试过没什么问题啊?
三月 14th, 2011 at 7:41 下午
就是没法复制