本示例演示了如何调用best-pay-sdk
- 需要在Jdk版本>1.8上运行
- 本项目采用SpringBoot1.5.1开发
src/main/java/com/github/lly835
├── PayDemoApplication.java
├── ServletInitializer.java
├── config
│ └── PayConfig.java //支付密钥配置类
└── controller
└── PayController.java //支付调用
- 运行前需要先配置好密钥, 见
PayConfig.java
- 运行命令
git clone https://github.com/Pay-Group/best-pay-demo
cd best-pay-demo
mvn clean package
java -jar target/*.war
- 浏览器访问http://127.0.0.1:8080/pay
- 查看日志
http://v.youku.com/v_show/id_XMjg5MjM4ODIyNA==.html?spm=a2h3j.8428770.3416059.1