30 abstract class AbstractResponse
implements ResponseInterface
215 $hiddenFields .= sprintf(
216 '<input type="hidden" name="%1$s" value="%2$s" />',
217 htmlentities($key, ENT_QUOTES,
'UTF-8',
false),
218 htmlentities($value, ENT_QUOTES,
'UTF-8',
false)
222 $output =
'<!DOCTYPE html>
225 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
226 <title>Redirecting...</title>
228 <body onload="document.forms[0].submit();">
229 <form action="%1$s" method="post">
230 <p>Redirecting to payment page...</p>
233 <input type="submit" value="Continue" />
240 htmlentities($this->
getRedirectUrl(), ENT_QUOTES,
'UTF-8',
false),
244 return HttpResponse::create($output);
254 if (!$this instanceof RedirectResponseInterface || !$this->
isRedirect()) {
255 throw new RuntimeException(
'This response does not support redirection.');