<%temp_interface_defray_send_chinabank_show=site.object_p%>
<!-- object[<%=site.object_p%>]::temp_interface_defray_send_chinabank_show -->
<%
MerchantID=site.temp.interface.defray.interface_id_send						'商户在西部支付上的ID
MerchantPostBackURL = "http://"+Request.ServerVariables("SERVER_NAME")+replace(request.servervariables("PATH_INFO"),"do.asp","do.asp?tr=interface|defray|receive&order_mark="&request("order_mark")&"&consume_id="&request("consume_id")&"&interface_selected="&site.temp.interface.defray.interface_id)	'????????????????	
MerchantOrderNumber = site.temp.customer.order.order_mark		'订单号，不能重复。建议用　“日期”＋“订单号”
MerchantOrderAmount = site.temp.customer.order.order_money				'订单金额，例：0.01 代表 0.01元
MerchantKey=  site.temp.interface.defray.interface_key_send  

	 ' 表单的各项参数如下：

	 ' v_mid
	 '      商户号,这里为测试商户号1001，替换为自己的商户号即可
	 ' key
	 '      MD5私钥
	 ' v_oid
	 '      订单号，构成格式 年月日-商户号-小时分钟秒
	 ' v_amount
	 '      订单金额
	 ' v_moneytype
	 '      支付币种0为人民币
	 ' v_url
	 '      商户自定义返回接收支付结果的页面	 
	 ' remark1 
	 '      备注字段1
	 ' remark2 
	 '      备注字段2
	 ' style
	 '      指网关模式0(普通)，1(银行列表中带外卡)

	v_moneytype = "0"
	style="0"
	v_url=MerchantPostBackURL
	remark1=""
	remark2=""
	
	key = MerchantKey
	v_mid = MerchantID
	v_amount=MerchantOrderAmount
	v_oid = MerchantOrderNumber	
	
	text = v_amount&v_moneytype&v_oid&v_mid&v_url&key
	v_md5info=Ucase(trim(site.functions.EncodeMd5(text,32)))					'网银支付平台对MD5值只认大写字符串，所以小写的MD5值得转换为大写

	'根据系统时间产生订单，格式：YYYYMMDD-v_mid-HMMSS
	'curdate = now()
	'v_oid=year(curdate)&month(curdate)&day(curdate)&"-"&v_mid&"-"&hour(curdate)&minute(curdate)&second(curdate)

%>

<form method="post" action="https://pay.chinabank.com.cn/select_bank" name="E_FORM" >

	<input type="hidden" name="v_md5info" size="100"  value="<%=v_md5info%>">
	<input type="hidden" name="v_mid" value="<%=v_mid%>">
	<input type="hidden" name="v_oid" value="<%=v_oid%>">
	<input type="hidden" name="v_amount" value="<%=v_amount%>">
	<input type="hidden" name="v_moneytype"  value="<%=v_moneytype%>">
	<input type="hidden" name="v_url" value="<%=v_url%>">
	<input type="hidden" name="style" value="<%=style%>">
	<input type="hidden" name="remark1" value="<%=remark1%>">
	<input type="hidden" name="remark2" value="<%=remark2%>">

</form>
<script>
document.E_FORM.submit()
</script>