public class CreditCard extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
String |
cardholderName
Cardholder name.
|
String |
cardNumber
15 or 16 digit card number.
|
static Parcelable.Creator<CreditCard> |
CREATOR |
String |
cvv
Three or four character security code.
|
static int |
EXPIRY_MAX_FUTURE_YEARS
Number of years into the future that a card expiration date is considered to be valid.
|
int |
expiryMonth
Month in two digit natural form.
|
int |
expiryYear
Four digit year
|
String |
postalCode
Billing postal code for card.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
CreditCard() |
CreditCard(String number,
int month,
int year,
String code,
String postalCode,
String cardholderName) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
CardType |
getCardType() |
String |
getFormattedCardNumber() |
String |
getLastFourDigitsOfCardNumber() |
String |
getRedactedCardNumber() |
boolean |
isExpiryValid() |
String |
toString() |
void |
writeToParcel(Parcel dest,
int flags) |
public static final int EXPIRY_MAX_FUTURE_YEARS
public String cardNumber
public int expiryMonth
public int expiryYear
public String cvv
public String postalCode
public String cardholderName
public static final Parcelable.Creator<CreditCard> CREATOR
public int describeContents()
describeContents
in interface Parcelable
public final void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable
public String getLastFourDigitsOfCardNumber()
public String getRedactedCardNumber()
public CardType getCardType()
public String getFormattedCardNumber()
public boolean isExpiryValid()
true
indicates a current, valid date.Copyright © 2012-2016 PayPal, Inc. All Rights Reserved.