module
Version:
v0.0.0-...-245a666
Opens a new window with list of versions in this module.
Published: Oct 12, 2019
License: MIT
Opens a new window with license information.
README
¶
weshin
A WeChat API wrapper for Go
功能
微信公众号基础功能
微信网页开发
第三方平台授权
授权流程技术说明
微信消息加解密
微信消息加解密技术方案
微信支付
微信支付开发文档
暂不支持服务商模式
Sample
微信网页授权
需要有:
- 一个正常使用的微信公众号,可申请测试号;
- 一台公网能访问的服务器(测试号可使用IP访问,正式公众号只能用域名)
- 配置公众号的授权回调页面域名,指向自己的服务器;
- 配置 sample/config.json, appID, secret, address, helloURI, callbackURI 必填, callbackURI 域名与上一步一致;
- 编译部署 sample 到服务器;
- 任意微信号关注公众号后,访问 helloURI, 跳转至微信授权页面,用户同意后跳转 callbackURI, 获取用户信息后跳转回 helloURI, 正确显示用户昵称. (参见上节微信网页授权流程)
微信支付
What to do
Directories
¶
|
|
|
|
|
|
|
|
https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=4_3
|
https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=4_3 |
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.