- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
receive3.asp
资源名称:shop2.rar [点击查看]
上传用户:btntkt
上传日期:2021-04-16
资源大小:5296k
文件大小:2k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
DOS
- <!--#include file="md5.asp"-->
- <%
- '''''''''
- ' @Description: 快钱网关接口范例
- ' @Copyright (c) 上海快钱信息服务有限公司
- ' @version 2.0
- '''''''''
- key ="99billKeyForTest" '''商户密钥
- merchant_id = request.querystring("merchant_id") '''获取商户编号
- orderid = request.querystring("orderid") '''获取订单编号
- amount = request.querystring("amount") '''获取订单金额
- date = request.querystring("date") '''获取交易日期
- succeed = request.querystringr("succeed") '''获取交易结果,Y成功,N失败
- mac = request.querystring("mac") '''获取安全加密串
- merchant_param = request.querystring("merchant_param") '''获取商户私有参数
- couponid = (String)request.getParameter("couponid") '''获取优惠券编码
- couponvalue = (String)request.getParameter("couponvalue") '''获取优惠券面额
- '''生成加密串,注意顺序
- ScrtStr = "merchant_id=" & merchant_id & "&orderid=" & orderid & "&amount=" & amount & "&date=" & mydate & "&succeed=" & succeed & "&merchant_key=" & key
- mac=md5(ScrtStr)
- v_result="失败"
- if ucase(mac)=ucase(mymac) then
- if succeed="Y" then '''支付成功
- v_result="成功"
- '''
- '''#商户网站逻辑处理#
- '''
- else '''支付失败
- end if
- else '''签名错误
- end if
- %>
- <!doctype html public "-//w3c//dtd html 4.0 transitional//en" >
- <html>
- <head>
- <title>快钱99bill</title>
- <meta http-equiv="content-type" content="text/html; charset=gb2312" />
- </head>
- <body>
- <div align="center">
- <table width="259" border="0" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC" >
- <tr bgcolor="#FFFFFF">
- <td width="68">订单编号:</td>
- <td width="182"><%=orderid%></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td>订单金额:</td>
- <td><%=amount%></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td>支付结果:</td>
- <td><%=v_result%></td>
- </tr>
- </table>
- </div>
- </body>
- </html>