<reponame>incolume-jedi/academia-jedi<filename>incolume/academia_jedi/ajedi20220824_docker_ojs_php7_psql/ojs/ojs_var_www_html/plugins/paymethod/paypal/vendor/omnipay/common/src/Common/Message/RedirectResponseInterface.php<?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.
 *
 * @see ResponseInterface
 */
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();
}
