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

v3版本报错Config Error #880

Closed
mcc7178 opened this issue Dec 10, 2023 · 1 comment
Closed

v3版本报错Config Error #880

mcc7178 opened this issue Dec 10, 2023 · 1 comment

Comments

@mcc7178
Copy link

mcc7178 commented Dec 10, 2023

包版本号

现有版本是这样的,php 7.4.3
Using version ^2.1 for hyperf/pimple
Using version ^6.5 for guzzlehttp/guzzle
Using version ^3.3 for yansongda/pay

问题描述

你的代码

$order = [
'out_batch_no' => time() . '',
'batch_name' => 'subject-测试',
'batch_remark' => 'test',
'total_amount' => 1,
'total_num' => 1,
'transfer_detail_list' => [
[
'out_detail_no' => time() . '-1',
'transfer_amount' => 1,
'transfer_remark' => 'test',
'openid' => 'xxxxx',
],
],
];

Pay::config($this->config2);
$result = Pay::wechat()->transfer($order);

报错详情

[3004] InvalidConfigException in AbstractProvider.php line 110
Config Error

$http = Pay::get(HttpClientInterface::class);

if (!$http instanceof ClientInterface) {
    throw new InvalidConfigException(Exception::HTTP_CLIENT_CONFIG_ERROR);
}

sdk 日志

nginx/apache 日志

涉及到 异步通知、同步通知 的问题,请贴出来

@mcc7178
Copy link
Author

mcc7178 commented Dec 10, 2023

guzzlehttp/guzzle版本一定要7.0吗

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

2 participants