📄 手机支付 接口范例.htm
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>消费用户购买确认页</title>
<style type="text/css">
<!--
.bobo {
font-size: 10.5pt;
line-height: 150%;
color: #660000;
text-decoration: none;
}
td {
font-size: 9pt;
line-height: 156%;
color: #554A46;
text-decoration: none;
}
.style1 { BORDER-RIGHT: 0px dotted; BORDER-TOP: 0px dotted; BORDER-LEFT: 0px dotted; COLOR: #336666; BORDER-BOTTOM: 1px dotted
}
.style4 {BORDER-RIGHT: 0px dotted; BORDER-TOP: 0px dotted; BORDER-LEFT: 0px dotted; COLOR: #554A46; BORDER-BOTTOM: 1px dotted; }
.style6 {BORDER-TOP: #336666 1px dotted; BORDER-LEFT: #336666 1px dotted; BORDER-BOTTOM: #336666 1px dotted; border-right: #336666 1px dotted;}
.style7 {color: #554A46}
-->
</style>
<script language="javascript">
function Juge(theForm)
{
if(theForm.handphone.value=="")
{
alert("手机号不能为空");
theForm.handphone.focus();
return false;
}
if (theForm.handphone.value.length!=11)
{
alert("请输入正确的手机号");
theForm.handphone.focus();
return false;
}
if ((theForm.handphone.value.substring(0,3)!="135")&&(theForm.handphone.value.substring(0,3)!="136")&&(theForm.handphone.value.substring(0,3)!="137")&&(theForm.handphone.value.substring(0,3)!="138")&&(theForm.handphone.value.substring(0,3)!="139")&&(theForm.handphone.value.substring(0,3)!="130")&&(theForm.handphone.value.substring(0,3)!="131")&&(theForm.handphone.value.substring(0,3)!="132")&&(theForm.handphone.value.substring(0,3)!="133"))
{
alert("目前仅移动或联通手机支持2元支付");
theForm.handphone.focus();
return false;
}
return true;
}
</script>
</head>
<body bgcolor="#F0F0F0" leftmargin="0" topmargin="0">
<!--
'#############################################################
'# 北京易达信动QPAY支付平台程序安装
'# v2.0
'# http://www.1st-pay.net
'# http://www.qpay.com.cn
'#
'# 客户服务: help@1st-pay.net
'# 技 术 QQ: 251178513
'# 版权所有: 北京易达信动科技发展有限公司
'#############################################################
'# ·郑重声明:
'# ·此程序为北京易达信动科技发展有限公司接口安装文件。
'# ·用户可对此文件内容做相应修改,但应保留版权标志。
'# ·如对此程序有任何疑问,欢迎到官方BBS论坛提问
'# ·论坛地址http://club.1st-pay.net。
'# ·北京易达信动科技发展有限公司拥有此程序的最终解释权。
'#############################################################
'##############################################################################
'#
'# 此页面为 QPAY网上支付手机支付演示模板-消费用户购买确认页
'#
'# 本页面仅为演示使用,实际使用时请根据自身情况更改数据库连接页面
'# 此页面作用:消费用户在此页面选择自己喜欢的商品进行购买,填写购买的
'# 详细信息后提交至QPAY平台网关
'#
'##############################################################################
-->
<table width="560" border="0" cellpadding="0" cellspacing="0" bordercolor="#999999" align="center">
<tr><td bgcolor="#FFFFFF" align="center"><img src="images/header.gif" width="560" height="205"></td>
</tr>
<tr><td bgcolor="#FFFFFF" height="8"></td></tr>
<tr>
<td bgcolor="#FFFFFF"> 请填写下面资料</td>
</tr>
<tr><td bgcolor="#FFFFFF" height="24"></td></tr>
<td bgcolor="#FFFFFF" align="center"><table width="456" border="0" cellspacing="0" cellpadding="2" align="center">
<tr>
<td width="118" align="center" valign="top"><img src="images/1st3.gif" width="108" height="160"></td>
<td width="324" align="left" class="bobo"><table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td bgcolor="#EBEBEB" class="bobo"><img src="images/1st2.gif" width="17" height="5" hspace="6" align="absmiddle">订单信息:</td>
</tr>
<tr><td><table width="100%" border="0">
<tr>
<td><TABLE cellSpacing=2 cellPadding=2 width=100% border=0>
<TBODY>
<TR>
<TD width="453">
<!--FORM start-->
<!--FORM表单的ACTION地址,由QPAY网站提供,目前固定为http://www.qpay.com.cn/work/work.asp-->
<FORM name=theForm action="http://www.qpay.com.cn/work/work.asp" method=post onSubmit="return Juge(this)" target="_blank">
<INPUT type=hidden value=世纪支付通 name=username> <!--请更换为你自己在QPAY支付平台注册的用户名-->
<INPUT type=hidden value=3 name=leixing> <!--支付类型,自动化流程用户请将此处更改为4-->
<INPUT type=hidden value=2.0 name=ver> <!--接口版本 目前为2.0-->
<INPUT type=hidden value=2 name=payfangshi><!--支付方式,固定为2-->
<TABLE cellSpacing=1 cellPadding=1 width=336 border=0>
<TBODY>
<TR align="right">
<TD width="20%" class=style4 >会员种类:</TD>
<TD colSpan=2 align="left" class=style1 >
<script language="javascript">
function shopchange()
{
if (theForm.shopname.options[0].selected==true)
{
document.getElementById("showcash").innerHTML='2元'
theForm.cash.value='2'
}
if(theForm.shopname.options[1].selected==true)
{
document.getElementById("showcash").innerHTML='5元'
theForm.cash.value='5'
}
if(theForm.shopname.options[2].selected==true)
{
document.getElementById("showcash").innerHTML='10元'
theForm.cash.value='10'
}
if(theForm.shopname.options[3].selected==true)
{
document.getElementById("showcash").innerHTML='30元'
theForm.cash.value='30'
}
}
</script>
<select name="shopname" onChange="javascript:shopchange();"> <!--商品名称,必填,消费用户购买的商户商品名-->
<option value="白银会员" selected>白银会员</option>
<option value="黄金会员">黄金会员</option>
<option value="钻石会员">钻石会员</option>
<option value="终身会员">终身会员</option>
</select></TD>
</TR>
<TR align="right">
<TD class=style4 >购买天数:</TD>
<TD colSpan=2 align="left" class=style4 ><span class="style1">
<INPUT name="date" class=style4 maxLength=50 size=12 value="365" disabled>
<INPUT name="validity" type="hidden" value="365">
</span></TD>
</TR>
<TR align="right">
<TD width="20%" class=style4 >总计金额:</TD>
<TD colSpan=2 align="left" class=style4 ><span id="showcash">2元</span>
<INPUT name="cash" type="hidden" class="style6" value="2"> <!--商品价格,支持金额:1元,2元,5元,6元,10元,15元,30元-->
</TD>
</TR>
<TR align="right"></TR>
<TR></TR>
<TR></TR>
<TR></TR>
<TR></TR>
<TR></TR>
<TR></TR>
<TR align="right">
<TD colSpan=3>
<TABLE id=payfangshi2 cellSpacing=0 cellPadding=0
width="100%" border=0 >
<TBODY>
<tr>
<td width="19%" align="right"class=style4>手机号码:</td>
<td width="81%" align="left" class=style4>
<input maxlength="11" name="handphone" size="12" value="13"> <!--用户手机号码,由用户自行输入-->
</td>
</tr>
<TR>
<TD colspan="2" align="left" class=style4 ><BR>
<B>操作指南:</B>支持国内手机130-139,和大多数地区的小灵通业务。输入你的手机号码(小灵通:区号+小灵通号)后按购买键,随机交易码将发送至您的手机,将收到的随机交易码输入到最终确认框中完成最终支付。</TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
<TR>
<TD colSpan=3> </TD>
</TR>
<TR>
<TD colSpan=3><DIV align=center><input name="imageField" type="image" src="images/submit.gif" width="237" height="98" border="0">
<BR>
</DIV></TD>
</TR>
</TBODY>
</TABLE>
</FORM>
<!--FORM END--></TD>
</TR>
</TBODY>
</TABLE></td>
</tr>
</table></td></tr>
<tr><td height="12"></td></tr>
</table></td>
</tr>
</table>
<br>
<table width="513" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="188" background="img/1st4.gif" align="center">
<table width="460" border="0" cellspacing="2" cellpadding="2">
<tr>
<td>E.T目前已运用自己在即时支付领域的领先技术和丰富运作经验,成功整合了有线到无线的全方位业务服务资源,一个从有线到无线的全方位应用平台业已由E.T诞生,背靠中国银联的专业支持,加上与中国移动、中国联通、中国电信等运营商进行的广泛交位式战略结盟,一个涵盖面更广的新E.T网络正在全国范围快速覆盖。E.T渴望将新技术,新经济的价值应用到每个用户,E.T,永无止境为您提供最诚信价值的服务。 </td>
</tr>
</table></td>
</tr>
</table> <p> </p>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -