php代码销售分成如何实现,简单的PHP代码 让你的CB产生销售

昨天看到老外邮箱提醒CB SALE的方法,今天试了一下,很不错,还可以用手机收提醒 :)

方法如下:首先建一个 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也会提醒  汗。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值