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

[4.0] 微信支付 sandbox模式 #507

Closed
ChitaGideon opened this issue Sep 24, 2016 · 7 comments
Closed

[4.0] 微信支付 sandbox模式 #507

ChitaGideon opened this issue Sep 24, 2016 · 7 comments
Milestone

Comments

@ChitaGideon
Copy link

我用的环境

PHP 版本:5.6
overtrue/wechat 版本:3.0

问题及现象

https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=21_2

怎样对接沙箱模式 进行调试

@overtrue overtrue changed the title 微信支付 sandbox模式 [4.0] 微信支付 sandbox模式 Feb 10, 2017
@overtrue overtrue added this to the 4.0 milestone Feb 10, 2017
@vic-volk
Copy link

Hi!

I have tried price 1.01 for sandbox.
It works for me.

@overtrue
Copy link
Collaborator

@vic-volk So?

@overtrue
Copy link
Collaborator

@vic-volk This package is not an official SDK.

@vic-volk
Copy link

Ok,

I have mistaken with the issue translation.

If I use: https://api.mch.weixin.qq.com/sandboxnew/pay/unifiedorder
from: https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=23_1
for qr-code generation, I receive bad answer:

沙箱支付金额(100)无效,请检查需要验收的case

But I solved it.

@overtrue
Copy link
Collaborator

@vic-volk Good Job. 👍

@skyred
Copy link
Contributor

skyred commented Apr 21, 2017

沙盒的支持已经被merge到master, 如果谁感兴趣,请测试。使用方法:

$app = new Application($options);
$wechat_pay = $app->payment;
$wechat_pay->enableSandbox(true);

@overtrue
Copy link
Collaborator

@skyred

$app = new Application($options);
$payment = $app->payment->sandboxMode(true);

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

No branches or pull requests

4 participants