• File: RedirectResponseInterface.php
  • Full Path: /var/www/crm_set/application/vendor/omnipay/common/src/Common/Message/RedirectResponseInterface.php
  • Date Modified: 09/21/2026 4:20 AM
  • File size: 978 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php
/**
 * Redirect Response interface
 */

namespace Omnipay\Common\Message;

/**
 * Redirect Response interface
 *
 * This interface class defines the functionality of a response
 * that is a redirect response.  It extends the ResponseInterface
 * interface class with some extra functions relating to the
 * specifics of a redirect response from the gateway.
 *
 */
interface RedirectResponseInterface extends ResponseInterface
{
    /**
     * Gets the redirect target url.
     *
     * @return string
     */
    public function getRedirectUrl();

    /**
     * Get the required redirect method (either GET or POST).
     *
     * @return string
     */
    public function getRedirectMethod();

    /**
     * Gets the redirect form data array, if the redirect method is POST.
     *
     * @return array
     */
    public function getRedirectData();

    /**
     * Perform the required redirect.
     *
     * @return void
     */
    public function redirect();
}