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

微信支付存在问题 #489

Closed
JKair opened this issue Aug 17, 2016 · 3 comments
Closed

微信支付存在问题 #489

JKair opened this issue Aug 17, 2016 · 3 comments

Comments

@JKair
Copy link

JKair commented Aug 17, 2016

我用的环境

PHP 版本:7
overtrue/wechat 版本:~3.0 laravel

问题及现象

当我使用WeixinJSBridge,直接生成js配置的时候,前端调用支付,提示缺少timeStamp
检查源码发现

    public function configForJSSDKPayment($prepayId)
    {
        $config = $this->configForPayment($prepayId, false);

        $config['timestamp'] = $config['timeStamp'];
        unset($config['timeStamp']);

        return $config;
    }

中,对timestamp进行了转换?把转换去掉之后,可以正常调用组件,是否这里是否存在问题呢,还是我调用本身就有问题?

@overtrue
Copy link
Collaborator

@tianyong90
Copy link
Contributor

JSBridge 却用生成的 JSSDK 配置,不错才怪。

@JKair
Copy link
Author

JKair commented Aug 17, 2016

老眼昏花,哈哈哈,抱歉 @overtrue @tianyong90

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