src/base/Gateway.php
protected static function createOmnipayGateway(string $gatewayClassName): GatewayInterface
    {
        $craftClient = Craft::createGuzzleClient();
        $adapter = new Client($craftClient);
        $httpClient = new OmnipayClient($adapter);

        return Omnipay::create($gatewayClassName, $httpClient);
    }
protected static function createOmnipayGateway(string $gatewayClassName): GatewayInterface
    {
        $craftClient = Craft::createGuzzleClient();
        $adapter = new Client($craftClient);
        $httpClient = new OmnipayClient($adapter);

        return Omnipay::create($gatewayClassName, $httpClient);
    }
protected static function createOmnipayGateway ( string $ gatewayClassName ) : GatewayInterface { $ craftClient = Craft :: createGuzzleClient ( ) ; $ adapter = new Client ( $ craftClient ) ; $ httpClient = new OmnipayClient ( $ adapter ) ; return Omnipay :: create ( $ gatewayClassName , $ httpClient ) ; }
Create the omnipay gateway.

@param string $gatewayClassName
@return GatewayInterface
Create the omnipay gateway .