<?php 
			  include($PayCenterPath."/paymethod/nusoap.php"); 			  
			
			  $username = $this->merid;
			  $returnflag = "1";
			  $returnurl = $SiteUrl."memberfunc_payresult.php";
			  $memo = "none";

			  $src_string="USERNAME=".$username."|SHOPID=".$this->ikey."|ORDERID=".$this->orderid."|ORDERMONEY=".$this->amount."|RETURNFLAG=".$returnflag."|RETURNURL=".$returnurl."|MEMO=".$memo;
  
			  $parameters=array( 
               "sStrFromStore"=>$src_string,
               "sForward"=>"SEND",
               );
			  
			  //初始化soapclient
              $soapclient=new soapclient("http://estore.8848.com/PayGateway.asmx?WSDL");
			  
			  //处理
			  $mac=$soapclient->call('PayGatewayEncrypt',$parameters,"http://estore.8848.com/","http://estore.8848.com/PayGatewayEncrypt");
              
             
			  $hiddenString = "<Input Type=hidden Name=\"SHOPID\" id=SHOPID value=\"".$this->ikey."\">";
			  $hiddenString.= "<Input Type=hidden Name=\"ORDERID\" id=ORDERID value=\"".$this->orderid."\">";
			  $hiddenString.= "<Input Type=hidden Name=\"USERNAME\" id=USERNAME value=\"".$username."\">";
			  $hiddenString.= "<Input Type=hidden Name=\"ORDERMONEY\" id=ORDERMONEY value=\"".$this->amount."\">";
			  $hiddenString.= "<Input Type=hidden Name=\"RETURNFLAG\" id=RETURNFLAG value=\"".$returnflag."\">";
			  $hiddenString.= "<Input Type=hidden Name=\"RETURNURL\" id=RETURNURL value=\"".$returnurl."\">";
			  $hiddenString.= "<Input Type=hidden Name=\"MEMO\" id=MEMO value=\"".$memo."\">";
			  $hiddenString.= "<Input Type=hidden Name=\"MAC\" id=MAC value=\"".$mac."\">";
			  $this->action= "http://estore.8848.com/paygateway/bankslist.aspx";
			  $hiddenString="<form target=_blank name=frm_odrinfo method=get action=".$this->action.">".$hiddenString."<input type=submit  value='立即通过".$this->pcenter."在线支付'  name=submit></form>";          
?>