<#-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <#if !creditCard?has_content> <#assign creditCard = requestParameters> <#if !paymentMethod?has_content> <#assign paymentMethod = requestParameters> ${uiLabelMap.AccountingCompanyNameCard}   ${uiLabelMap.AccountingPrefixCard}   ${uiLabelMap.AccountingFirstNameCard}   <#if showToolTip?has_content>${uiLabelMap.CommonRequired}<#else>* ${uiLabelMap.AccountingMiddleNameCard}   ${uiLabelMap.AccountingLastNameCard}   <#if showToolTip?has_content>${uiLabelMap.CommonRequired}<#else>* ${uiLabelMap.AccountingSuffixCard}   ${uiLabelMap.AccountingCardType}   <#if showToolTip?has_content>${uiLabelMap.CommonRequired}<#else>* ${uiLabelMap.AccountingCardNumber}   <#if creditCard?has_content> <#if cardNumberMinDisplay?has_content> <#-- create a display version of the card where all but the last four digits are * --> <#assign cardNumberDisplay = ""> <#assign cardNumber = creditCard.cardNumber?if_exists> <#if cardNumber?has_content> <#assign size = cardNumber?length - 4> <#if (size > 0)> <#list 0 .. size-1 as foo> <#assign cardNumberDisplay = cardNumberDisplay + "*"> <#assign cardNumberDisplay = cardNumberDisplay + cardNumber[size .. size + 3]> <#else> <#-- but if the card number has less than four digits (ie, it was entered incorrectly), display it in full --> <#assign cardNumberDisplay = cardNumber> <#else> <#else> <#if showToolTip?has_content>${uiLabelMap.CommonRequired}<#else>* <#-- ${uiLabelMap.AccountingCardSecurityCode}   --> ${uiLabelMap.AccountingExpirationDate}   <#assign expMonth = ""> <#assign expYear = ""> <#if creditCard?exists && creditCard.expireDate?exists> <#assign expDate = creditCard.expireDate> <#if (expDate?exists && expDate.indexOf("/") > 0)> <#assign expMonth = expDate.substring(0,expDate.indexOf("/"))> <#assign expYear = expDate.substring(expDate.indexOf("/")+1)> <#if showToolTip?has_content>${uiLabelMap.CommonRequired}<#else>* ${uiLabelMap.CommonDescription}