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

payment里没有configForJSSDKPayment方法 #401

Closed
zyj007 opened this issue Apr 22, 2016 · 3 comments
Closed

payment里没有configForJSSDKPayment方法 #401

zyj007 opened this issue Apr 22, 2016 · 3 comments

Comments

@zyj007
Copy link

zyj007 commented Apr 22, 2016

我用的环境

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

问题及现象

payment 里好像并没有文档里面的configForJSSDKPayment方法,查看源代码也没有发现有configForJSSDKPayment的定义。

@overtrue
Copy link
Collaborator

更新版本了么?这是昨天发版的 3.0.13

@fathoo
Copy link

fathoo commented Apr 28, 2016

在最新版中的 configForJSSDKPayment中,这两句 $config['timestamp'] = $config['timeStamp'];
unset($config['timeStamp']);应该注释掉吧,因为微信支付文档上是timeStamp大写的

@overtrue
Copy link
Collaborator

@fathoo JSSDK 是小写:

wx.chooseWXPay({...});

下面的写法才是大写:

WeixinJSBridge.invoke(
      'getBrandWCPayRequest',
      ...
    );

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