|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Contains the credit card information needed to tender payment at the point-of-sale system.
Field Summary | |
---|---|
static java.lang.String |
AMEX
American express credit card type identifier |
static java.lang.String |
CARTE_BLANCHE
Mastercard credit card type identifier |
static java.lang.String |
DINERS_CLUB
Diners club credit card type identifier |
static java.lang.String |
DISCOVER
Discover card credit card type identifier |
static java.lang.String |
MASTERCARD
Mastercard credit card type identifier |
static java.lang.String |
UNKNOWN
Unknown credit card type identifier |
static java.lang.String |
VISA
Visa credit card type identifier |
Fields inherited from interface com.ibm.retail.saf.provider.PaymentInfo |
---|
CREDIT, DEBIT |
Method Summary | |
---|---|
java.lang.String |
getAccountNumber()
Gets the account number. |
java.lang.String |
getCardType()
Gets the card type. |
java.lang.String |
getExpirationDate()
Gets the expiration date. |
byte[] |
getTrackData(int trackNumber)
Gets the credit card track data. |
void |
setAccountNumber(java.lang.String accountNumber)
Sets the account number. |
void |
setCardType(java.lang.String cardType)
Sets the card type. |
void |
setExpirationDate(java.lang.String expDate)
Sets the expiration date. |
void |
setTrackData(int trackNumber,
byte[] trackData)
Sets the credit card track data. |
Methods inherited from interface com.ibm.retail.saf.provider.PaymentInfo |
---|
getPaymentType |
Methods inherited from interface com.ibm.retail.saf.provider.POSInfo |
---|
getExtendedAttribute, getExtendedAttributeNames, removeExtendedAttribute, setExtendedAttribute |
Field Detail |
public static final java.lang.String MASTERCARD
public static final java.lang.String VISA
public static final java.lang.String AMEX
public static final java.lang.String DINERS_CLUB
public static final java.lang.String DISCOVER
public static final java.lang.String CARTE_BLANCHE
public static final java.lang.String UNKNOWN
Method Detail |
public void setCardType(java.lang.String cardType)
cardType
- the type of credit cardpublic void setAccountNumber(java.lang.String accountNumber)
accountNumber
- the account number of the cardpublic void setExpirationDate(java.lang.String expDate)
expDate
- the expiration date of the cardpublic java.lang.String getCardType()
public java.lang.String getAccountNumber()
public java.lang.String getExpirationDate()
public void setTrackData(int trackNumber, byte[] trackData)
Data is in "raw" non-decoded format as returned from JavaPOS or OPOS drivers.
trackNumber
- identifies the track (1-4) to retrievetrackData
- card track data in raw non-decoded format
java.lang.IllegalArgumentException
- if the track number is out of rangepublic byte[] getTrackData(int trackNumber)
Data is in "raw" non-decoded format as returned from JavaPOS or OPOS drivers.
Returns a zero length array if no track data is found.
trackNumber
- identifies the track (1-4) to retrieve
java.lang.IllegalArgumentException
- if the track number is out of range
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |