protected function getGateway()
    {
        /* @var $module \gplcart\modules\omnipay_library\Main */
        $module = $this->module->getInstance('omnipay_library');

        /** @var \Omnipay\AuthorizeNet\SIMGateway $gateway */
        $gateway = $module->getGatewayInstance('AuthorizeNet_SIM');

        if (!$gateway instanceof SIMGateway) {
            throw new UnexpectedValueException('Gateway must be instance of Omnipay\AuthorizeNet\SIMGateway');
        }

        return $gateway;
    }
protected function getGateway()
    {
        /* @var $module \gplcart\modules\omnipay_library\Main */
        $module = $this->module->getInstance('omnipay_library');

        /** @var \Omnipay\AuthorizeNet\SIMGateway $gateway */
        $gateway = $module->getGatewayInstance('AuthorizeNet_SIM');

        if (!$gateway instanceof SIMGateway) {
            throw new UnexpectedValueException('Gateway must be instance of Omnipay\AuthorizeNet\SIMGateway');
        }

        return $gateway;
    }
protected function getGateway ( ) { /* @var $module \gplcart\modules\omnipay_library\Main */ $ module = $ this -> module -> getInstance ( 'omnipay_library' ) ; /** @var \Omnipay\AuthorizeNet\SIMGateway $gateway */ $ gateway = $ module -> getGatewayInstance ( 'AuthorizeNet_SIM' ) ; if ( ! $ gateway instanceof SIMGateway ) { throw new UnexpectedValueException ( 'Gateway must be instance of Omnipay\AuthorizeNet\SIMGateway' ) ; } return $ gateway ; }
Get gateway instance
@return \Omnipay\AuthorizeNet\SIMGateway
@throws UnexpectedValueException
Get gateway instance