public function getRedirectResponse()
    {
        $output = <<<ENDHTML
<!DOCTYPE html>
<html>
    <head>
        <title>Redirecting...</title>
        <meta http-equiv="refresh" content="0;url=%1\$s" />
    </head>
    <body>
        <p>Redirecting to <a href="%1\$s">payment complete page</a>...</p>
        <script type="text/javascript" charset="utf-8">
            window.location="%1\$s";
        </script>
    </body>
</html>
ENDHTML;

        $output = sprintf(
            $output,
            htmlentities($this->getRedirectUrl(), ENT_QUOTES, 'UTF-8', false)
        );

        return HttpResponse::create($output);
    }
public function getRedirectResponse()
    {
        $output = <<<ENDHTML
<!DOCTYPE html>
<html>
    <head>
        <title>Redirecting...</title>
        <meta http-equiv="refresh" content="0;url=%1\$s" />
    </head>
    <body>
        <p>Redirecting to <a href="%1\$s">payment complete page</a>...</p>
        <script type="text/javascript" charset="utf-8">
            window.location="%1\$s";
        </script>
    </body>
</html>
ENDHTML;

        $output = sprintf(
            $output,
            htmlentities($this->getRedirectUrl(), ENT_QUOTES, 'UTF-8', false)
        );

        return HttpResponse::create($output);
    }
public function getRedirectResponse ( ) { $ output =  <<<ENDHTML
<!DOCTYPE html>
<html>
    <head>
        <title>Redirecting...</title>
        <meta http-equiv="refresh" content="0;url=%1\$s" />
    </head>
    <body>
        <p>Redirecting to <a href="%1\$s">payment complete page</a>...</p>
        <script type="text/javascript" charset="utf-8">
            window.location="%1\$s";
        </script>
    </body>
</html>
ENDHTML ; $ output = sprintf ( $ output , htmlentities ( $ this -> getRedirectUrl ( ) , ENT_QUOTES , 'UTF-8' , false ) ) ; return HttpResponse :: create ( $ output ) ; }
Authorize.Net requires a redirect in a HTML page.
The OmniPay redirect helper will only provide a HTML page for the POST method
and then implements that through a self-submitting form, which will generate
browser warnings if returning to a non-SSL page. This JavScript and meta refresh
page avoids the security warning. No data is sent in this redirect, as that will
have all been saved with the transaction in storage.
Authorize . Net requires a redirect in a HTML page . The OmniPay redirect helper will only provide a HTML page for the POST method and then implements that through a self - submitting form which will generate browser warnings if returning to a non - SSL page . This JavScript and meta refresh page avoids the security warning . No data is sent in this redirect as that will have all been saved with the transaction in storage .