Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

是否支持H5支付 #694

Closed
almas1992 opened this issue May 11, 2017 · 2 comments
Closed

是否支持H5支付 #694

almas1992 opened this issue May 11, 2017 · 2 comments

Comments

@almas1992
Copy link
Contributor

我用的环境

PHP 版本:7.0.15
overtrue/wechat 版本:3.1

问题及现象

需要开发微信内置浏览器调起微信支付,可发现easywechan貌似不支持 trade_type=MWEB 的H5支付功能
https://github.com/overtrue/wechat/blob/b56b7360c48211a11ad2610cbd1d41a7bb13865b/src/Payment/Order.php#L49-L52
源码中只有JSAPI,NATIVE,APP,MICROPAY四种类型交易类型;
微信官方H5支付文档:
https://pay.weixin.qq.com/wiki/doc/api/H5.php?chapter=15_4
描述你的问题现象,报错贴截图粘贴或者贴具体信息,提供必要的代码段

@overtrue
Copy link
Collaborator

@almas1992 建议你先尝试,毕竟下单接口是一样的

@mingyoung
Copy link
Collaborator

理论上在创建订单时设置 'trade_type' => 'MWEB' 就可以了。
文档:创建订单

issue 先关闭了,有问题再回复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants