java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
com.newmediaworks.taglib.payment.PaymentTag
- All Implemented Interfaces:
Serializable
,BodyTag
,IterationTag
,JspTag
,Tag
,TryCatchFinally
Processes a credit card transaction.
- Author:
- New Media Works
- See Also:
-
Field Summary
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
int
static Optional
<PaymentTag> getCurrent
(ServletRequest request) static PaymentTag
requireCurrent
(String fromName, ServletRequest request) void
void
setCapture
(boolean capture) void
setComment
(String comment) void
setCurrencyCode
(String currencyCode) void
setDutyAmount
(String dutyAmount) void
setInvoiceNumber
(String invoiceNumber) void
setMerchantEmail
(String merchantEmail) void
setOrderNumber
(String orderNumber) void
setPurchaseOrderNumber
(String purchaseOrderNumber) void
setShippingAmount
(String shippingAmount) void
setTaxAmount
(String taxAmount) void
setTaxExempt
(boolean taxExempt) void
setTest
(boolean test) Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doEndTag, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
-
Field Details
-
TAG_NAME
- See Also:
-
-
Constructor Details
-
PaymentTag
public PaymentTag()
-
-
Method Details
-
getCurrent
-
requireCurrent
public static PaymentTag requireCurrent(String fromName, ServletRequest request) throws JspException - Throws:
JspException
-
setCapture
public void setCapture(boolean capture) -
setTest
public void setTest(boolean test) -
setOrderNumber
-
setCurrencyCode
-
setAmount
- Throws:
IllegalArgumentException
-
setTaxAmount
- Throws:
IllegalArgumentException
-
setTaxExempt
public void setTaxExempt(boolean taxExempt) -
setShippingAmount
- Throws:
IllegalArgumentException
-
setDutyAmount
- Throws:
IllegalArgumentException
-
setMerchantEmail
-
setInvoiceNumber
-
setPurchaseOrderNumber
-
setComment
-
getAuthorizationResult
-
doStartTag
- Specified by:
doStartTag
in interfaceTag
- Overrides:
doStartTag
in classBodyTagSupport
- Throws:
JspException
-
doCatch
- Specified by:
doCatch
in interfaceTryCatchFinally
- Throws:
Throwable
-
doFinally
public void doFinally()- Specified by:
doFinally
in interfaceTryCatchFinally
-