Class Name |
|
---|---|
Component(s) |
|
The GiftCertificateAmountAvailable
servlet bean allows you to see how much of the gift certificate amount remains after the current purchase.
Input Parameters
usedAmount (Required)
The amount that is to be used on the gift certificate.
giftCertificateNumber (Required)
The gift certificate’s claim code.
Output
amountAvailable
The amount remaining on the gift certificate after deducting the usedAmount
.
Open Parameters
output
The open parameter is always rendered.
Example
The following code example demonstrates how to use the GiftCertificateAmountAvailable
droplet to display the amount remaining on a user’s gift certificate.
<dsp:droplet name="GiftCertificateAmountAvailable"> <dsp:param name="giftCertificateNumber" param="paymentGroup.giftCertificateNumber"/> <dsp:oparam name="output"> <dt> <fmt:message key="common.remainingAmount"/><fmt:message key="common.labelSeparator"/> </dt> <dd> <dsp:getvalueof var="amountRemaining" vartype="java.lang.Double" param="amountAvailable"/> <fmt:formatNumber value="${amountRemaining}" type="currency" currencyCode="${currencyCodeVar}"/> </dd> </dsp:oparam> </dsp:droplet>