Comments (5)
按照微信给的流程有两种实现方式:
模式一:
1:设置微信扫码回调地址
2:添加监听HandleScannedNotify
3:调用payment的Scheme接口生成二维码地址,用户扫码交易
4:触发HandleScannedNotify,在监听中调用统一下单API(提前设置好HandlePaidNotify监听地址)
5:返回带有prepay_id的Map
6:支付成功触发HandlePaidNotify
模式二:
1:添加监听HandlePaidNotify
2:先调用统一下单API,返回二维码地址(这个二维码地址比较简单,生成的二维码会比较容易被扫码)
3:支付成功触发HandlePaidNotify
具体流程可以参考下官方文档:
https://pay.weixin.qq.com/wiki/doc/api/native.php?chapter=6_1
另:请使用tag版本,master正在进行功能和性能的优化,目前仅小部分功能测试通过
from wego.
付款码支付流程是如下流程:
https://pay.weixin.qq.com/wiki/doc/api/micropay.php?chapter=5_1
付款码支付是手机打开收付款后,直接对准扫描器或扫描盒子进行扫描支付, 支付类型是micropay
from wego.
有交流群吗?
from wego.
Payment直接有个Pay方法对应的是/pay/micropay
其他回调流程都是一样的
暂时还没交流群,这是个好想法.可以考虑
from wego.
好的, 我测试看看, 可以考虑使用微信, 这样可以找人完善文档
from wego.
Related Issues (9)
- 获取domain失败 HOT 1
- 怎么使用 HOT 1
- undefined: BIZPAYURL HOT 1
- 有没有机会扩充一下支付宝 HOT 1
- go get 出现如下错误 HOT 2
- 请教一下新版程序pay/orderquery 调用哪个方法进行读取数据? HOT 3
- 好久没更新了 HOT 1
- 大神,jssdk怎么用啊? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wego.