方法如下:首先建一個 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也會提醒 汗。
版權申明:本站文章均來自網絡,如有侵權,請發郵件至web*lianmeng.la(請把*換成@),我們收到后立即刪除,謝謝!
特別注意:本站所有轉載文章言論不代表本站觀點,本站所提供的圖片,代碼,設計作品,如需使用,請與原作者聯系,版權歸原作者所有。