摘 要
该文通过对手机二维码支付应用技术做了概述,对二维码支付发展的产生、发展背景、应用现状和国际国内趋势做了简介,通过对目国内手机二维码支付的主要架构及“一拍即付”实现方式的分析,提出架构中可能存在的弱点,并给出防范措施和可能的发展趋势并简单的对当前流行的二维码支付应用做了介绍,对手机移动支付尤其是二维码支付做了初步的研究 ,针对二维码购物的手机支付的瓶颈进行了分析,以达到安全性和易用性的平衡为目标,提出了自己的一点浅见。
本文的目标是建立一个网络购物支付平台,能具备B2C网站的各个功能,并且能提一种简单可行的手机移动支付的方法。用户可以通过网络商城挑选所要购买的商品,然后再通过手机完成支付。全文主要介绍整个系统的需求分析、系统设计的架构、关键技术的设计,并对整个系统做客观的分析和讨论。
关键词: 二维码 ;手机银行 ;移动支付;微信支付
Abstract
This paper summarizes the application technology of mobile phone QR code payment, introduces the emergence, background, application status and international and domestic trends of the development of QR code payment. Based on the analysis of the main structure of QR code payment for mobile phones in China and the realization of "pay on one beat", the possible weaknesses in the framework are put forward. It also gives the preventive measures and the possible development trend, and simply introduces the current popular application of QR code payment, and makes a preliminary research on mobile phone payment, especially the QR code payment. In this paper, the bottleneck of mobile phone payment for QR code shopping is analyzed to achieve the balance between security and ease of use. Put forward his own point of view.
The goal of this paper is to establish an online shopping payment platform, which can provide various functions of B2C website, and can propose a simple and feasible mobile payment method for mobile phone. Users can use the network shopping mall to select the goods to buy, and then through the mobile phone to complete the payment. This paper mainly introduces the requirement analysis of the whole system, the architecture of the system design, the design of the key technology, and makes an objective analysis and discussion of the whole system.
Keywords: QR Code; Mobile Bank; Mobile payment; WeChat Pay
目 录
摘 要 I
Abstract II
第1章 绪论 1
1.1 选题背景及意义 1
1.2 二维码的应用现状 1
第2章 微信支付的具体支付方式 4
第3章 二维码的生成方式 5
3.1 简介 5
3.2 优势 5
3.3 制作二维码 5
第4章 代码实现微信扫码支付 7
4.1 专业名词介绍 7
4.2 获取认证的流程 7
4.3 支付流程简介 10
4.4 工具介绍 10
4.4.1 SDK下载 10
4.4.2 HttpClient工具类 11
4.5 代码实现 11
4.5.1 准备开发环境 11
4.5.2 编写Product_list产品购买页面 12
4.5.3 支付页面createCode.jsp编写 23
4.5.4 编写CreateCodeServlet生成二维码 26
4.5.5 向微信支付后台检查支付状态CheckStatusServlet的编写 29
4.5.6 支付成功success.jsp页面编写 32
第5章 总 结 34
参考文献 35
致 谢 36