1 Unstar Star 0 Fork 83

zhuweijian / weixin-java-pay-demo

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

本Demo基于Spring Boot构建,实现微信支付开发功能。

Build Status

使用步骤:

  1. 配置:复制/src/main/resources/application.yml.template 生成application.yml文件,并根据自己需要填写相关配置,其中支付相关参数含义请参考WxPayProperties类中的注释(需要注意的是:yml文件内的属性冒号后面的文字之前需要加空格,可参考已有配置,否则属性会设置不成功);
  2. 其中各参数的含义请参考 /src/main/java/com/github/binarywang/demo/wxpay/config/WxPayProperties.java 文件里的注释;
  3. 需要特别注意的,是sub开头的两个参数属于服务商模式使用的,如果是普通模式,请不要配置这两个参数,最好从配置文件中移除相关项;
  4. 查看com.github.binarywang.demo.wxpay.controller.WxPayController类代码,根据自己需要修改调整相关实现;
  5. 运行Java程序:com.github.binarywang.demo.wxpay.WxPayDemoApplication
  6. 打开网页浏览器,输入想要访问的地址,比如http://localhost:8080/pay/closeOrder/123查看效果。

Comments ( 0 )

Sign in for post a comment

About

微信支付demo spread retract
Java
Cancel

Releases

No release

Contributors

All

Activities

load more
can not load any more
Java
1
https://gitee.com/zhuweijian/weixin-java-pay-demo.git
git@gitee.com:zhuweijian/weixin-java-pay-demo.git
zhuweijian
weixin-java-pay-demo
weixin-java-pay-demo
master

Search

132457 8cb2edc1 1899542 131848 70c8d3a4 1899542