/** * 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; }
public function finalizeAuthorizationRequest(Customweb_Payment_Authorization_ITransaction $transaction) { $response = new Customweb_Core_Http_Response(); $response->setLocation($transaction->getNextRedirectUrl()); return $response; }
/** * Creates a response with a header redirection to the given * URL. * * @param string $url * @return Customweb_Core_Http_Response */ public static function redirect($url) { $response = new Customweb_Core_Http_Response(); $response->setLocation($url); return $response; }