public function oGateway()
    {
        $gatewayName = $this->payment->Gateway;

        $gateway = $this->getGatewayFactory()->create($gatewayName);

        $parameters = GatewayInfo::getParameters($gatewayName);

        if (is_array($parameters)) {
            $gateway->initialize($parameters);
        }

        return $gateway;
    }
public function oGateway()
    {
        $gatewayName = $this->payment->Gateway;

        $gateway = $this->getGatewayFactory()->create($gatewayName);

        $parameters = GatewayInfo::getParameters($gatewayName);

        if (is_array($parameters)) {
            $gateway->initialize($parameters);
        }

        return $gateway;
    }
public function oGateway ( ) { $ gatewayName = $ this -> payment -> Gateway ; $ gateway = $ this -> getGatewayFactory ( ) -> create ( $ gatewayName ) ; $ parameters = GatewayInfo :: getParameters ( $ gatewayName ) ; if ( is_array ( $ parameters ) ) { $ gateway -> initialize ( $ parameters ) ; } return $ gateway ; }
Get the omnipay gateway associated with this payment,
with configuration applied.

@throws \RuntimeException - when gateway doesn't exist.
@return GatewayInterface|AbstractGateway omnipay gateway class
Get the omnipay gateway associated with this payment with configuration applied .