yansongda / laravel-pay

可能是我用过的最优雅的 Alipay/WeChat/Unipay 的 laravel 支付扩展包了

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

调用微信余额接口,提示 sign 错误,但是下单正常。

dogeow opened this issue · comments

commented

代码

    $allPlugins = Pay::wechat()->mergeCommonPlugins([QueryPlugin::class]);
    $result = Pay::wechat()->pay($allPlugins, [
        'account_type' => 'BASIC',
    ]);
    print_r($result);

dd($extra);

"body" => "{"code":"SIGN_ERROR","detail":{"detail":{"issue":"sign not match"},"field":"signature","location":"authorization","sign_information":{"method":"GET","sign_message_length":81,"truncated_sign_message":"GET\n/v3/merchant/fund/balance/BASIC\n1692356676\nExampleString\n\n","url":"/v3/merchant/fund/balance/BASIC"}},"message":"错误的签名,验签失败"} ◀"
]