GithubHelp home page GithubHelp logo

Comments (5)

godcong avatar godcong commented on June 14, 2024

按照微信给的流程有两种实现方式:
模式一:
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.

seacoastboy avatar seacoastboy commented on June 14, 2024

付款码支付流程是如下流程:
https://pay.weixin.qq.com/wiki/doc/api/micropay.php?chapter=5_1
付款码支付是手机打开收付款后,直接对准扫描器或扫描盒子进行扫描支付, 支付类型是micropay

from wego.

seacoastboy avatar seacoastboy commented on June 14, 2024

有交流群吗?

from wego.

godcong avatar godcong commented on June 14, 2024

Payment直接有个Pay方法对应的是/pay/micropay
其他回调流程都是一样的

暂时还没交流群,这是个好想法.可以考虑

from wego.

seacoastboy avatar seacoastboy commented on June 14, 2024

好的, 我测试看看, 可以考虑使用微信, 这样可以找人完善文档

from wego.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.