public static function create(
        $merchantId,
        $sharedSecret,
        $baseUrl = self::EU_BASE_URL,
        UserAgentInterface $userAgent = null
    ) {
        $client = new Client(['base_uri' => $baseUrl]);

        return new static($client, $merchantId, $sharedSecret, $userAgent);
    }
public static function create(
        $merchantId,
        $sharedSecret,
        $baseUrl = self::EU_BASE_URL,
        UserAgentInterface $userAgent = null
    ) {
        $client = new Client(['base_uri' => $baseUrl]);

        return new static($client, $merchantId, $sharedSecret, $userAgent);
    }
public static function create ( $ merchantId , $ sharedSecret , $ baseUrl = self :: EU_BASE_URL , UserAgentInterface $ userAgent = null ) { $ client = new Client ( [ 'base_uri' => $ baseUrl ] ) ; return new static ( $ client , $ merchantId , $ sharedSecret , $ userAgent ) ; }
Factory method to create a connector instance.

@param string             $merchantId   Merchant ID
@param string             $sharedSecret Shared secret
@param string             $baseUrl      Base URL for HTTP requests
@param UserAgentInterface $userAgent    HTTP user agent to identify the client

@return self
Factory method to create a connector instance .