我正在使用 Gocardless API 设置支付网关。因为我没有作曲家,所以我尝试下载并手动设置它。
这是我从文档中获得的一段代码:
require_once APPPATH.'third_party/gocardless/lib/loader.php';
$access_token = "sandbox_xyz";
$client = new \GoCardlessPro\Client(array(
'access_token' => $access_token,
'environment' => \GoCardlessPro\Environment::SANDBOX
));
$client->customers()->list();
$client->customers()->list([
"params" => ["created_at[gt]" => "2015-11-03T09:30:00Z"]
]);
我希望在 Gocardless 中添加客户列表,但出现此错误:
An uncaught Exception was encountered
Type: Error
Message: Class 'GuzzleHttp\HandlerStack' not found
Filename: /var/www/html/myapp/application/third_party/gocardless/lib/Client.php
Line Number: 43
我假设我做错了什么。