<%--
/**
 * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
 *
 * The contents of this file are subject to the terms of the Liferay Enterprise
 * Subscription License ("License"). You may not use this file except in
 * compliance with the License. You can obtain a copy of the License by
 * contacting Liferay, Inc. See the License for the specific language governing
 * permissions and limitations under the License, including but not limited to
 * distribution rights of the Software.
 *
 *
 *
 */
--%>

<%@ include file="/init.jsp" %>

<%
String redirectionData = URLDecoder.decode((String)request.getAttribute(CommercePaymentWebKeys.REDIRECTION_DATA), StringPool.UTF8);
String redirectURL = URLCodec.decodeURL((String)request.getAttribute(CommercePaymentWebKeys.REDIRECT_URL));
String seal = URLDecoder.decode((String)request.getAttribute(CommercePaymentWebKeys.SEAL), StringPool.UTF8);
%>

<form action="<%= HtmlUtil.escapeHREF(redirectURL) %>" class="hide" id="formMercanet" method="post" name="formMercanet">
	<input name="redirectionData" type="hidden" value="<%= HtmlUtil.escapeAttribute(redirectionData) %>" />
	<input name="seal" type="hidden" value="<%= HtmlUtil.escapeAttribute(seal) %>" />

	<input type="submit" value="Proceed to checkout" />
</form>

<script>
	window.onload = function () {
		document.querySelector('form').submit();
	};
</script>