diff --git a/src/Picqer/Carriers/SendCloud/Connection.php b/src/Picqer/Carriers/SendCloud/Connection.php index ca60fa4..904cf8b 100644 --- a/src/Picqer/Carriers/SendCloud/Connection.php +++ b/src/Picqer/Carriers/SendCloud/Connection.php @@ -9,7 +9,7 @@ class Connection { - private string $apiUrl = 'https://panel.sendcloud.sc/api/v2/'; + private string $apiUrl; private string $apiKey; private string $apiSecret; private ?string $partnerId = null; @@ -18,8 +18,9 @@ class Connection private ?Client $client = null; protected array $middleWares = []; - public function __construct(string $apiKey, string $apiSecret, ?string $partnerId = null) + public function __construct(string $apiKey, string $apiSecret, ?string $partnerId = null, $apiUrl = 'https://panel.sendcloud.sc/api/v2/') { + $this->apiUrl = $apiUrl; $this->apiKey = $apiKey; $this->apiSecret = $apiSecret; $this->partnerId = $partnerId;