diff --git a/lib/Service/ShopAccountService.php b/lib/Service/ShopAccountService.php index 4595ef572306ad0c1b6dd5dd2c1878ae050397fa..7e35670e6436b61b3da093c54f28571a7696686b 100644 --- a/lib/Service/ShopAccountService.php +++ b/lib/Service/ShopAccountService.php @@ -20,16 +20,17 @@ class ShopAccountService { { $this->config = $config; + $this->appName = $appName; + $shopUsername = $this->config->getSystemValue('murena_shop_username'); $shopPassword = $this->config->getSystemValue('murena_shop_password'); - $this->shopUrl = $this->config->getSystemValue('murena_shop_url'); - $this->appName = $appName; + $this->shopReassignUserId = $this->config->getSystemValue('murena_shop_reassign_user_id'); + $this->shopUserUrl = $this->shopUrl . "/wp-json/wp/v2/users"; $this->shopOrdersUrl = $this->shopUrl . "/wp-json/wc/v3/orders"; $this->shopCredentials = base64_encode($shopUsername . ":" . $shopPassword); - $this->shopReassignUserId = getenv('WP_REASSIGN_USER_ID'); $this->curl = $curlService; $this->logger = $logger; }