META-INF.resources.edit_commerce_payment_entry.jsp Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.commerce.payment.web
Show all versions of com.liferay.commerce.payment.web
Liferay Commerce Payment Web
<%--
/**
* SPDX-FileCopyrightText: (c) 2023 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
--%>
<%@ include file="/init.jsp" %>
<%
String backURL = ParamUtil.getString(request, "backURL", String.valueOf(renderResponse.createRenderURL()));
CommercePaymentEntryDisplayContext commercePaymentEntryDisplayContext = (CommercePaymentEntryDisplayContext)request.getAttribute(WebKeys.PORTLET_DISPLAY_CONTEXT);
CommercePaymentEntry commercePaymentEntry = commercePaymentEntryDisplayContext.getCommercePaymentEntry();
String note = (commercePaymentEntry == null) ? StringPool.BLANK : commercePaymentEntry.getNote();
int paymentStatus = (commercePaymentEntry == null) ? CommercePaymentEntryConstants.STATUS_PENDING : commercePaymentEntry.getPaymentStatus();
portletDisplay.setShowBackIcon(true);
portletDisplay.setURLBack(backURL);
%>
#<%= String.valueOf(commercePaymentEntryDisplayContext.getClassPK()) %>
<%= commercePaymentEntryDisplayContext.getRelatedToClassName() %>
#<%= commercePaymentEntryDisplayContext.getRelatedToClassPK() %>
#<%= commercePaymentEntryDisplayContext.getRelatedToClassPK() %>
<%= commercePaymentEntryDisplayContext.getPaymentMethod() %>
<%= commercePaymentEntryDisplayContext.getPaymentDate() %>
<%= commercePaymentEntryDisplayContext.getTotalAmountFormatted() %>
<%= commercePaymentEntryDisplayContext.getDeliveryFormatted() %>
<%= commercePaymentEntryDisplayContext.getRefundAlreadyCompleted() %>
<%= HtmlUtil.escape(note) %>
<%
for (CommercePaymentEntryRefundType commercePaymentEntryRefundType : commercePaymentEntryDisplayContext.getCommercePaymentEntryRefundTypes()) {
String key = commercePaymentEntryRefundType.getKey();
%>
<%
}
%>