<?php
if(!defined('DEDEMEMBER')) exit('DedeCMS Error: Request Error!');

require_once(DEDEMEMBER."/paycenter/cbpayment/cbpayment_config.php");
if($payment_exp[3] < 0) $payment_exp[3] = 0;
$piice_ex = $price*$payment_exp[3];

$v_oid = trim($buyid); //订单号
if($piice_ex > 0) $price = $price+$piice_ex;
$v_amount = sprintf("%01.2f", $price);                   //支付金额                 

$text = $v_amount.$v_moneytype.$v_oid.$v_mid.$v_url.$key;        //md5加密拼凑串,注意顺序不能变
$v_md5info = strtoupper(md5($text));                             //md5函数加密并转化成大写字母

$remark1 = trim($ptype);//备注字段1
$remark2 = trim($pname);//备注字段2

$v_rcvname   = '站长';		// 收货人
$v_rcvaddr   = '深圳';		// 收货地址
$v_rcvtel    = '0755-83791960';		// 收货人电话
$v_rcvpost   = '100080';		// 收货人邮编
$v_rcvmobile = '13838384381';		// 收货人手机号

$v_ordername   = $cfg_ml->M_UserName;	// 订货人姓名
$v_orderaddr   = '深圳';	// 订货人地址
$v_ordertel    = '0755-83791960';	// 订货人电话
$v_orderpost   = 518000;	// 订货人邮编
$v_orderemail  = 'service@nps.cn';	// 订货人邮件
$v_ordermobile = 13838384581;	// 订货人手机号

$strRequestUrl = $v_post_url.'?v_mid='.$v_mid.'&v_oid='.$v_oid.'&v_amount='.$v_amount.'&v_moneytype='.$v_moneytype
	.'&v_url='.$v_url.'&v_md5info='.$v_md5info.'&remark1='.$remark1.'&remark2='.$remark2;

echo '<html>
<head>
	<title>转到网银在线支付页面</title>
</head>
<body onload="document.cbpayment.submit();">
	<form name="cbpayment" action="'.$strRequestUrl.'" method="post">
	</form>
</body>
</html>';
exit;