Skip to content

希望兼容新出的微信H5支付 #966

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

Closed
weer0026 opened this issue Oct 20, 2017 · 4 comments
Closed

希望兼容新出的微信H5支付 #966

weer0026 opened this issue Oct 20, 2017 · 4 comments
Labels
Milestone

Comments

@weer0026
Copy link

微信新出的H5支付,统一下单接口请求部分增加新字段'scene_info',新的支付类型 'MWEB',返回增加新字段'mweb_url',希望官方支持。

@overtrue
Copy link
Collaborator

@mingyoung 正好你在重构。考虑一下

@overtrue overtrue added this to the 4.0 milestone Oct 20, 2017
@greedying
Copy link
Contributor

H5支付早就有的。开放了?

@mingyoung
Copy link
Collaborator

都兼容的,无论哪种支付方式,在调用接口的时候传入支付方式所需要的参数就可以了,同样,SDK 返回的字段都是微信原样返回的。

Example(4.0):

$app->order->unify([
    'body' => '腾讯充值中心-QQ会员充值',
    // ...
    'trade_type' => 'MWEB',
    'scene_info' => '{"h5_info": {"type":"Wap","wap_url": "https://pay.qq.com","wap_name": "腾讯充值"}}',
]);

@weer0026
Copy link
Author

@mingyoung 我用的版本是3.3.12,我通过重写兼容了,4.0还没关注,麻烦了。

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

No branches or pull requests

4 participants