java.lang.Object
com.newmediaworks.taglib.payment.Functions
Tag library function implementations.
- Author:
- New Media Works
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Gets the authorization code to display to the customer.static String
getAuthorizationCode
(String fromName, ServletRequest request) static String
Gets the AVS (address verification system) result.static String
getAvsResult
(String fromName, ServletRequest request) static String
Gets the CVV2 (card security code) verification result.static String
getCvvResult
(String fromName, ServletRequest request) static String
Gets the reason for a processing error.static String
getErrorReason
(String fromName, ServletRequest request) static String
Gets the rejected reason for a payment attempt.static String
getRejectedReason
(String fromName, ServletRequest request) static String
Gets the review reason for a transaction that has been placed on hold.static String
getReviewReason
(String fromName, ServletRequest request) static String
Gets the per-processor unique transaction ID.static String
getTransactionId
(String fromName, ServletRequest request) static boolean
Determines if the payment was accepted (approved).static boolean
isError()
static boolean
isHeld()
Determines if the payment was held (pending some sort of review).static boolean
Determines if the payment was rejected (declined).static String
maskCardNumber
(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. -
isError
-
getErrorReason
- Throws:
JspException
-
getErrorReason
Gets the reason for a processing error. -
isAccepted
Determines if the payment was accepted (approved). -
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). -
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). -
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:
-