public abstract class CreditCard extends PayMethod
PayMethod
Modifier and Type | Class and Description |
---|---|
static class |
CreditCard.CreditCardBrand
The brand of the credit card
|
PayMethod.PayMethodType
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
CreditCard() |
Modifier and Type | Method and Description |
---|---|
static CreditCard |
create(CreditCard.CreditCardBrand creditCardBrand,
String holderName,
String last4Digits)
Create a new
CreditCard object. |
abstract CreditCard.CreditCardBrand |
getCreditCardBrand()
The brand of the credit card.
|
abstract String |
getHolderName()
First and last name of the card holder.
|
abstract String |
getLast4Digits()
Last 4 digits of the credit card.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
describeContents, writeToParcel
public abstract CreditCard.CreditCardBrand getCreditCardBrand()
public abstract String getHolderName()
public abstract String getLast4Digits()
public static CreditCard create(CreditCard.CreditCardBrand creditCardBrand, String holderName, String last4Digits)
CreditCard
object.creditCardBrand
- The brand of the credit cardholderName
- First and last name of the card holderlast4Digits
- Last 4 digits of the credit card.