<?php
#----------------云网付接口(发送部分)-----------------#
$c_mid = $this->merid;        //商户在西部支付上的ID
$merchpwd = $this->ikey;         //您的商户密码
$ordernumber    = $this->orderid;      //订单号，保证不重复
$c_orderamount = $this->amount;       //该订单的金额(注意：单位为分,所以要转换为分时的数值),如当前订单的金额为0.01元
$c_returl = $SiteUrl."memberfunc_payresult.php";	//'商户接收西部支付的支付通知的网址
$c_ymd = date("Ymd",time());
$c_signstr = md5($c_mid.$ordernumber.$c_orderamount.$c_ymd.'0'.'1'.$c_returl.$merchpwd);

$hiddenString = "<Input Type=hidden Name=\"c_mid\" id=c_mid value=\"".$c_mid."\">";
$hiddenString.= "<Input Type=hidden Name=\"c_order\" id=c_order value=\"".$ordernumber."\">";
$hiddenString.= "<Input Type=hidden Name=\"c_orderamount\" id=c_orderamount value=\"".$c_orderamount."\">";
$hiddenString.= "<Input Type=hidden Name=\"c_ymd\" id=c_ymd value=\"".$c_ymd."\">";
$hiddenString.= "<Input Type=hidden Name=\"c_moneytype\" id=c_moneytype value=\"0\">";
$hiddenString.= "<Input Type=hidden Name=\"c_retflag\" id=c_retflag value=\"1\">";
$hiddenString.= "<Input Type=hidden Name=\"c_returl\" id=c_returl value=\"".$c_returl."\">";
$hiddenString.= "<Input Type=hidden Name=\"c_signstr\" id=c_signstr value=\"".$c_signstr."\">";

$this->action = "https://www.cncard.com/purchase/cnpaygate/getorder.asp";
$hiddenString="<form target=_blank method=post action=".$this->action.">".$hiddenString."<input type=submit value='立即通过".$this->pcenter."在线支付'  name=submit></form>";
?>