Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a8855ce5 authored by Akhil's avatar Akhil 🙂
Browse files

Merge branch 'env-to-config' into 'main'

Move reassign user id to config

See merge request !31
parents cfcdcd94 12ae6fc8
Loading
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -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;
    }