diff --git a/install.sh b/install.sh index a5a69ea..52d68ac 100755 --- a/install.sh +++ b/install.sh @@ -7,7 +7,7 @@ if [ ! -e ${sys_dir}/plugins/BillTech/lms.pem ]; then fi cd ../../ -composer require guzzlehttp/guzzle:^6.0 +composer require guzzlehttp/guzzle:^7.0 composer dump-autoload cd plugins/BillTech diff --git a/lib/BillTechLinkApiService.php b/lib/BillTechLinkApiService.php index f81a3d7..bcf7d2c 100644 --- a/lib/BillTechLinkApiService.php +++ b/lib/BillTechLinkApiService.php @@ -36,10 +36,10 @@ public static function generatePaymentLinks($linkRequests) 'providerCode' => ConfigHelper::getConfig('billtech.isp_id'), 'payments' => $apiRequests ], - 'exceptions' => FALSE + 'http_errors' => FALSE ]); } catch (ClientException $e) { - $response = $e->GetResponse(); + $response = $e->getResponse(); if ($response) { self::handleBadResponse($response, self::BASE_PATH); } else { @@ -82,7 +82,7 @@ public static function cancelPaymentLink($token, $resolution = "CANCELLED") "json" => [ "resolution" => $resolution ], - "exceptions" => FALSE + "http_errors" => FALSE ]); if (!in_array($response->getStatusCode(), [204, 404, 409])) {