java.lang.Object
com.newmediaworks.taglib.payment.Functions
Tag library function implementations.
- Author:
- New Media Works
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringGets the authorization code to display to the customer.static StringgetAuthorizationCode(String fromName, ServletRequest request) static StringGets the AVS (address verification system) result.static StringgetAvsResult(String fromName, ServletRequest request) static StringGets the CVV2 (card security code) verification result.static StringgetCvvResult(String fromName, ServletRequest request) static StringGets the reason for a processing error.static StringgetErrorReason(String fromName, ServletRequest request) static StringGets the rejected reason for a payment attempt.static StringgetRejectedReason(String fromName, ServletRequest request) static StringGets the review reason for a transaction that has been placed on hold.static StringgetReviewReason(String fromName, ServletRequest request) static StringGets the per-processor unique transaction ID.static StringgetTransactionId(String fromName, ServletRequest request) static booleanDetermines if the payment was accepted (approved).static booleanisError()static booleanisHeld()Determines if the payment was held (pending some sort of review).static booleanDetermines if the payment was rejected (declined).static StringmaskCardNumber(String cardNumber) Masks a credit card number by only showing the first and last digits, hiding all the middle digits.
-
Method Details
-
maskCardNumber
Masks a credit card number by only showing the first and last digits, hiding all the middle digits.- See Also:
-
isError
- Throws:
JspException- See Also:
-
getErrorReason
- Throws:
JspException
-
getErrorReason
Gets the reason for a processing error.- Throws:
JspException- See Also:
-
isAccepted
Determines if the payment was accepted (approved).- Throws:
JspException- See Also:
-
getAuthorizationCode
public static String getAuthorizationCode(String fromName, ServletRequest request) throws JspException - Throws:
JspException
-
getAuthorizationCode
Gets the authorization code to display to the customer.- Throws:
JspException- See Also:
-
getTransactionId
- Throws:
JspException
-
getTransactionId
Gets the per-processor unique transaction ID.- Throws:
JspException- See Also:
-
isHeld
Determines if the payment was held (pending some sort of review).- Throws:
JspException- See Also:
-
getReviewReason
- Throws:
JspException
-
getReviewReason
Gets the review reason for a transaction that has been placed on hold.- Throws:
JspException- See Also:
-
isRejected
Determines if the payment was rejected (declined).- Throws:
JspException- See Also:
-
getRejectedReason
- Throws:
JspException
-
getRejectedReason
Gets the rejected reason for a payment attempt.- Throws:
JspException- See Also:
-
getCvvResult
- Throws:
JspException
-
getCvvResult
Gets the CVV2 (card security code) verification result.- Throws:
JspException- See Also:
-
getAvsResult
- Throws:
JspException
-
getAvsResult
Gets the AVS (address verification system) result.- Throws:
JspException- See Also:
-
