The DoLuhnCheckCmd Task Command checks the validity of the credit card number using the LUHN algorithm. If the number is found to be invalid according to the LUHN Algorithm the command is expected to throw the ECApplicationException specifying the Error View Command named by the errorTaskName command property and the errorCode specified by com.ibm.commerce.DoPaymentCmd.ERR_CODE_BAD_CCNUM.
Field Summary | |
static java.lang.String | COPYRIGHT IBM copyright notice field. |
static java.lang.String | defaultCommandClassName The default implementation of this command. |
static java.lang.String | NAME The name of this command. |
Method Summary | |
void | setCardNumber(java.lang.String cardNumber) Sets the cardNumber property of the command. |
void | setErrorTaskName(java.lang.String errorTaskName) Sets the errorTaskName property of the command. |
Field Detail |
public static final java.lang.String COPYRIGHT
public static final java.lang.String NAME
public static final java.lang.String defaultCommandClassName
Method Detail |
public void setCardNumber(java.lang.String cardNumber)
public void setErrorTaskName(java.lang.String errorTaskName)
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.