/** * This method is called for all redirections to specific URL. * The user will get * redirected to this URL when the shop system calls self::processFurther(). * * @param string $state STATE_INITIAL | STATE_3D_SECURE * @param Customweb_Saferpay_Authorization_Transaction $transaction * @param string $url */ protected function redirect($state, Customweb_Saferpay_Authorization_Transaction $transaction, $url) { if ($state != null) { $transaction->setTransactionState($state); } $transaction->setNextRedirectUrl($url); $response = new Customweb_Core_Http_Response(); $response->setLocation($url); return $response; }