#--
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>
<#if !paymentMethod?has_content>
<#assign paymentMethod = requestParameters>
#if>
<#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 cardNumber?has_content>
<#assign size = cardNumber?length - 4>
<#if (size > 0)>
<#list 0 .. size-1 as foo>
<#assign cardNumberDisplay = cardNumberDisplay + "*">
#list>
<#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>
#if>
#if>
<#else>
#if>
<#else>
#if>
<#if showToolTip?has_content>${uiLabelMap.CommonRequired}#if>