From a04984a7c1359ae1fe146b905ee3a74db318d87f Mon Sep 17 00:00:00 2001 From: Timo Date: Wed, 28 Mar 2018 13:05:20 +0200 Subject: [PATCH] Fix api domain --- admin/controller/module/wuunder.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/admin/controller/module/wuunder.php b/admin/controller/module/wuunder.php index 28505d4..cdd0979 100644 --- a/admin/controller/module/wuunder.php +++ b/admin/controller/module/wuunder.php @@ -280,10 +280,10 @@ public function generateBookingUrl() $webhookUrl = urlencode($protocol . $this->request->server['SERVER_NAME'] . "/index.php?route=module/wuunder/webhook&order=" . $order_id . "&token=" . $booking_token); if (intval($this->config->get('wuunder_api'))) { - $apiUrl = 'https://api.wuunder.co/api/bookings?redirect_url=' . $redirectUrl . '&webhook_url=' . $webhookUrl; + $apiUrl = 'https://api.wearewuunder.com/api/bookings?redirect_url=' . $redirectUrl . '&webhook_url=' . $webhookUrl; $apiKey = $this->config->get('wuunder_live_key'); } else { - $apiUrl = 'https://api-staging.wuunder.co/api/bookings?redirect_url=' . $redirectUrl . '&webhook_url=' . $webhookUrl; + $apiUrl = 'https://api-staging.wearewuunder.com/api/bookings?redirect_url=' . $redirectUrl . '&webhook_url=' . $webhookUrl; $apiKey = $this->config->get('wuunder_staging_key'); } @@ -319,9 +319,9 @@ public function generateBookingUrl() if (!(substr($url, 0, 5) === "http:" || substr($url, 0, 6) === "https:")) { if (intval($this->config->get('wuunder_api'))) { - $url = 'https://api.wuunder.co' . $url; + $url = 'https://api.wearewuunder.com' . $url; } else { - $url = 'https://api-staging.wuunder.co' . $url; + $url = 'https://api-staging.wearewuunder.com' . $url; } } header("Location: " . $url);