codeigniter 中的 Gocardless 实现
Gocardless implementation in codeigniter
我正在使用 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
我认为我做错了什么。
根据 manual installation, you also need to require
Guzzle's autoloader.php 下 guzzle.zip 下的文档 src 目录.
我正在使用 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
我认为我做错了什么。
根据 manual installation, you also need to require
Guzzle's autoloader.php 下 guzzle.zip 下的文档 src 目录.