app/code/community/Adyen/Payment/Model/Api.php
public function doRequestSync(array $request, $storeId)
    {
        $requestUrl = self::ENDPOINT_TERMINAL_CLOUD_LIVE;
        if ($this->_helper()->getConfigDataDemoMode($storeId)) {
            $requestUrl = self::ENDPOINT_TERMINAL_CLOUD_TEST;
        }

        $apiKey = $this->_helper()->getPosApiKey($storeId);
        $timeout = $this->_helper()->getConfigData('timeout', 'adyen_pos_cloud', $storeId);
        $response = $this->doRequestJson($request, $requestUrl, $apiKey, $storeId, $timeout);
        return json_decode($response, true);
    }
public function doRequestSync(array $request, $storeId)
    {
        $requestUrl = self::ENDPOINT_TERMINAL_CLOUD_LIVE;
        if ($this->_helper()->getConfigDataDemoMode($storeId)) {
            $requestUrl = self::ENDPOINT_TERMINAL_CLOUD_TEST;
        }

        $apiKey = $this->_helper()->getPosApiKey($storeId);
        $timeout = $this->_helper()->getConfigData('timeout', 'adyen_pos_cloud', $storeId);
        $response = $this->doRequestJson($request, $requestUrl, $apiKey, $storeId, $timeout);
        return json_decode($response, true);
    }
public function doRequestSync ( array $ request , $ storeId ) { $ requestUrl = self :: ENDPOINT_TERMINAL_CLOUD_LIVE ; if ( $ this -> _helper ( ) -> getConfigDataDemoMode ( $ storeId ) ) { $ requestUrl = self :: ENDPOINT_TERMINAL_CLOUD_TEST ; } $ apiKey = $ this -> _helper ( ) -> getPosApiKey ( $ storeId ) ; $ timeout = $ this -> _helper ( ) -> getConfigData ( 'timeout' , 'adyen_pos_cloud' , $ storeId ) ; $ response = $ this -> doRequestJson ( $ request , $ requestUrl , $ apiKey , $ storeId , $ timeout ) ; return json_decode ( $ response , true ) ; }
Set the timeout and do a sync request to the Terminal API endpoint

@param array $request
@param int $storeId
@return mixed
Set the timeout and do a sync request to the Terminal API endpoint