Comments (2)
服务商模式看服务商对应的接口,sub_mchid在接口调用的时候传入,具体什么时候需要看对应的接口文档。
from wechatpayv3.
搞定
payer = {'sub_openid': 'xxxx'} # 这里把openid改为sub_openid
code, message = wxpay.pay(
description=description,
out_trade_no=out_trade_no,
amount={'total': amount},
pay_type=WeChatPayType.JSAPI,
sub_mchid=SUB_MCHID, # 这个地方增加sub_mchid
payer=payer
)
就改2个地方,接口已经调通了
from wechatpayv3.
Related Issues (20)
- _verify_signature 里的headers 应该小写吧? HOT 3
- 想问问初始化的时候proxy代理设置是什么 HOT 1
- 使用demo无法跑起来,相关参数都已换成正式的, 报错Exception: No wechatpay platform certificate, please double check your init params. HOT 2
- flask框架下支付回调签名验证失败 HOT 4
- 当电脑时间与北京时间不同步或差了超过5分钟时,运行python examples.py报错 HOT 1
- 请教在分布式场景下的考量 HOT 2
- 付款码支付 HOT 1
- 在使用 ThreadPoolExecutor线程池时,会发生 签名错误 HOT 4
- FastAPI框架 HOT 3
- 微信更新了发票的配置开发选项接口 HOT 1
- 请问能支持微信的付款码支付码吗? HOT 1
- 测试账号 HOT 2
- likeadmin-python version
- wxpay.pay() 函数卡住
- 请教一下平台证书自动更新是怎么实现的 HOT 2
- cryptography库更新版本告警信息 HOT 1
- 请问此库有没有扫微信收款码收款的接口 HOT 2
- 使用Django框架支付成功但是回调验证不通过 HOT 1
- 能否支持切换沙箱环境/正式支付环境 HOT 1
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 wechatpayv3.