app/code/community/Adyen/Payment/Model/Api.php
public function retrieveConnectedTerminals($storeId)
    {
        $requestUrl = self::ENDPOINT_CONNECTED_TERMINALS_LIVE;
        if ($this->_helper()->getConfigDataDemoMode($storeId)) {
            $requestUrl = self::ENDPOINT_CONNECTED_TERMINALS_TEST;
        }

        $apiKey = $this->_helper()->getPosApiKey($storeId);
        $merchantAccount = $this->_helper()->getAdyenMerchantAccount("pos_cloud", $storeId);
        $request = array("merchantAccount" => $merchantAccount);

        //If store_code is configured, retrieve only terminals connected to that store
        $storeCode = $this->_helper()->getConfigData('store_code', 'adyen_pos_cloud', $storeId);
        if ($storeCode) {
            $request["store"] = $storeCode;
        }
        $response = $this->doRequestJson($request, $requestUrl, $apiKey, $storeId);
        return $response;
    }
public function retrieveConnectedTerminals($storeId)
    {
        $requestUrl = self::ENDPOINT_CONNECTED_TERMINALS_LIVE;
        if ($this->_helper()->getConfigDataDemoMode($storeId)) {
            $requestUrl = self::ENDPOINT_CONNECTED_TERMINALS_TEST;
        }

        $apiKey = $this->_helper()->getPosApiKey($storeId);
        $merchantAccount = $this->_helper()->getAdyenMerchantAccount("pos_cloud", $storeId);
        $request = array("merchantAccount" => $merchantAccount);

        //If store_code is configured, retrieve only terminals connected to that store
        $storeCode = $this->_helper()->getConfigData('store_code', 'adyen_pos_cloud', $storeId);
        if ($storeCode) {
            $request["store"] = $storeCode;
        }
        $response = $this->doRequestJson($request, $requestUrl, $apiKey, $storeId);
        return $response;
    }
public function retrieveConnectedTerminals ( $ storeId ) { $ requestUrl = self :: ENDPOINT_CONNECTED_TERMINALS_LIVE ; if ( $ this -> _helper ( ) -> getConfigDataDemoMode ( $ storeId ) ) { $ requestUrl = self :: ENDPOINT_CONNECTED_TERMINALS_TEST ; } $ apiKey = $ this -> _helper ( ) -> getPosApiKey ( $ storeId ) ; $ merchantAccount = $ this -> _helper ( ) -> getAdyenMerchantAccount ( "pos_cloud" , $ storeId ) ; $ request = array ( "merchantAccount" => $ merchantAccount ) ; //If store_code is configured, retrieve only terminals connected to that store $ storeCode = $ this -> _helper ( ) -> getConfigData ( 'store_code' , 'adyen_pos_cloud' , $ storeId ) ; if ( $ storeCode ) { $ request [ "store" ] = $ storeCode ; } $ response = $ this -> doRequestJson ( $ request , $ requestUrl , $ apiKey , $ storeId ) ; return $ response ; }
Do a synchronous request to retrieve the connected terminals

@param $storeId
@return mixed
Do a synchronous request to retrieve the connected terminals