/** * Whether or not this is an *offsite* redirect. * This is only the case when there's an Omnipay response present that *is* a redirect. * @return bool */ public function isRedirect() { return $this->omnipayResponse instanceof AbstractResponse && $this->omnipayResponse->isRedirect(); }