public class CardToken
extends java.lang.Object
Constructor and Description |
---|
CardToken(java.lang.String cardNumber,
java.lang.Integer expirationMonth,
java.lang.Integer expirationYear,
java.lang.String securityCode,
java.lang.String cardholderName,
java.lang.String identificationType,
java.lang.String identificationNumber) |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkLuhn(java.lang.String cardNumber) |
Cardholder |
getCardholder() |
java.lang.String |
getCardNumber() |
Device |
getDevice() |
java.lang.Integer |
getExpirationMonth() |
java.lang.Integer |
getExpirationYear() |
java.lang.String |
getSecurityCode() |
void |
setCardholder(Cardholder cardholder) |
void |
setCardNumber(java.lang.String cardNumber) |
void |
setDevice(android.content.Context context) |
void |
setExpirationMonth(java.lang.Integer expirationMonth) |
void |
setExpirationYear(java.lang.Integer expirationYear) |
void |
setSecurityCode(java.lang.String securityCode) |
boolean |
validate(boolean includeSecurityCode) |
boolean |
validateCardholderName() |
boolean |
validateCardNumber() |
void |
validateCardNumber(PaymentMethod paymentMethod) |
boolean |
validateExpiryDate() |
static boolean |
validateExpiryDate(java.lang.Integer month,
java.lang.Integer year) |
boolean |
validateIdentification() |
boolean |
validateIdentificationNumber() |
boolean |
validateIdentificationNumber(IdentificationType identificationType) |
boolean |
validateSecurityCode() |
static boolean |
validateSecurityCode(java.lang.CharSequence securityCode) |
void |
validateSecurityCode(PaymentMethod paymentMethod) |
static void |
validateSecurityCode(java.lang.String securityCode,
PaymentMethod paymentMethod,
java.lang.String bin) |
public CardToken(java.lang.String cardNumber, @Nullable java.lang.Integer expirationMonth, @Nullable java.lang.Integer expirationYear, java.lang.String securityCode, java.lang.String cardholderName, java.lang.String identificationType, java.lang.String identificationNumber)
public static boolean validateSecurityCode(java.lang.CharSequence securityCode)
public static void validateSecurityCode(java.lang.String securityCode, PaymentMethod paymentMethod, java.lang.String bin) throws CardTokenException
CardTokenException
public static boolean validateExpiryDate(java.lang.Integer month, java.lang.Integer year)
public static boolean checkLuhn(java.lang.String cardNumber)
public Cardholder getCardholder()
public void setCardholder(Cardholder cardholder)
public java.lang.String getCardNumber()
public void setCardNumber(java.lang.String cardNumber)
public Device getDevice()
public void setDevice(android.content.Context context)
public java.lang.Integer getExpirationMonth()
public void setExpirationMonth(@Nullable java.lang.Integer expirationMonth)
public java.lang.Integer getExpirationYear()
public void setExpirationYear(@Nullable java.lang.Integer expirationYear)
public java.lang.String getSecurityCode()
public void setSecurityCode(java.lang.String securityCode)
public boolean validate(boolean includeSecurityCode)
public boolean validateCardNumber()
public void validateCardNumber(PaymentMethod paymentMethod) throws CardTokenException
CardTokenException
public boolean validateSecurityCode()
public void validateSecurityCode(@Nullable PaymentMethod paymentMethod) throws CardTokenException
CardTokenException
public boolean validateIdentificationNumber(IdentificationType identificationType)
public boolean validateExpiryDate()
public boolean validateIdentification()
public boolean validateIdentificationNumber()
public boolean validateCardholderName()