From f842f91846c1132269cae757f7ab4a85d165f49b Mon Sep 17 00:00:00 2001 From: Krishan Koenig Date: Tue, 26 Nov 2024 20:44:25 +0100 Subject: [PATCH] wip --- src/MollieApiClient.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/MollieApiClient.php b/src/MollieApiClient.php index 5c939298..50ec8bf0 100644 --- a/src/MollieApiClient.php +++ b/src/MollieApiClient.php @@ -42,6 +42,7 @@ use Mollie\Api\EndpointCollection\SubscriptionPaymentEndpointCollection; use Mollie\Api\EndpointCollection\TerminalEndpointCollection; use Mollie\Api\EndpointCollection\WalletEndpointCollection; +use Mollie\Api\Helpers\Url; use Mollie\Api\Http\Adapter\MollieHttpAdapterPicker; use Mollie\Api\Idempotency\DefaultIdempotencyKeyGenerator; use Mollie\Api\Resources\BalanceTransactionCollection; @@ -166,7 +167,7 @@ public function getHttpClient(): HttpAdapterContract public function resolveBaseUrl(): string { - return rtrim($this->apiEndpoint, '/').'/'.self::API_VERSION; + return Url::join($this->apiEndpoint, self::API_VERSION); } public function __serialize(): array