⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ccbill_notify.php

📁 太烦了
💻 PHP
字号:
<?phpif ( !defined( 'SMARTY_DIR' ) ) {	include_once( 'init.php' );}// make sure post if from ccbill serverif(   $_SERVER['REMOTE_ADDR'] != '64.38.240.97' )               {exit;}/*							ob_start();				foreach($_POST as $k => $v )			   	print " $k = $v \n";								print "\n\n---------------------------\n".$_SERVER['REMOTE_ADDR'];				$s =ob_get_contents();				ob_end_clean();				$fo = fopen("ccbill.txt","w+");      fwrite($fo,$s);			fclose($fo);  */			//already processed subscription_id, exit$trnrec=$db->getRow('select * from ! where txn_id = ? ', array(TRANSACTIONS_TABLE, $_POST['subscription_id'] ));if( $trnrec['id'] ) exit;  // amount paid is less than amount expected $trnrec=$db->getRow('select * from ! where invoice_no = ? ', array(TRANSACTIONS_TABLE, $_POST['invoiceid'] ));if( $_POST['initialPrice']   < $trnrec['amount_paid']   )  { 			$params['payment_status'] = 'Error'; 			}	else {  if (  isset($_POST['subscription_id']) && strlen($_POST['subscription_id']) >  3 ) {	  $params['payment_status'] = 'Completed';  } elseif (  isset($_POST['reasonForDecline'])  ) {	  $params['payment_status'] = 'Declined';  } else {$params['payment_status'] = 'Error'; }}$params['txn_id'] = $_POST['subscription_id'];$params['valid'] = true;$params['pay_txn_id'] = $_POST['invoiceid'];$params['paid_thru'] = 'ccbill';$params['amount'] = $_POST['initialPrice'];$params['email'] = $_POST['email'];$params['vars']  = serialize($_POST);$level_name = process_payment_info($params);?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -