<?php
// 注册商户ID www.eb2000.cn
#----------------西部支付接口(发送部分)-----------------#
$MerchantID     = $this->merid;        //商户在西部支付上的ID
$epayClientMerchPwd    = $this->ikey;         //您的商户密码
$MerchantOrderNumber    = $this->orderid;      //订单号，保证不重复
$MerchantOrderAmount = $this->amount;       //该订单的金额(注意：单位为分,所以要转换为分时的数值),如当前订单的金额为0.01元
$MerchantPostBackURL = $SiteUrl."memberfunc_payresult.php";	//'商户接收西部支付的支付通知的网址

$hiddenString = "<Input Type=hidden Name=\"MerchantID\" id=MerchantID value=\"".$MerchantID."\">";
$hiddenString.= "<Input Type=hidden Name=\"PostBackURL\" id=PostBackURL value=\"".$MerchantPostBackURL."\">";
$hiddenString.= "<Input Type=hidden Name=\"OrderNumber\" id=OrderNumber value=\"".$MerchantOrderNumber."\">";
$hiddenString.= "<Input Type=hidden Name=\"OrderAmount\" id=OrderAmount value=\"".$MerchantOrderAmount."\">";
$this->action = "http://www.WestPay.com.cn/Pay/WestPayReceiveOrderFromMerchant.asp";
$hiddenString="<form target=_blank method=post action=".$this->action.">".$hiddenString."<input type=submit value='立即通过".$this->pcenter."在线支付'  name=submit></form>";
?>