PaymentDatapublic class CreditCard extends Object implements PaymentData
| Constructor | Description |
|---|---|
CreditCard(String cardholder,
String cardNumber,
int expMonth,
int expYear) |
|
CreditCard(String cardholder,
String cardNumber,
int expMonth,
int expYear,
Integer cvv) |
| Modifier and Type | Method | Description |
|---|---|---|
CreditCard |
addAddress(String country,
String state,
String city,
String line1,
String line2,
String postalCode) |
Deprecated.
|
CreditCard |
addAddress(Country country,
String state,
String city,
String line1,
String line2,
String postalCode) |
|
CreditCard |
addPhoneNumber(PhoneNumber phoneNumber) |
|
String |
getCardholder() |
|
String |
getCardNumber() |
|
CardBrand |
getCardType() |
|
String |
getCity() |
|
String |
getCountry() |
The returned type will be changed to
Country on later release |
Country |
getCountryEnum() |
This method will be deleted when the returned type by "getCountry(String)" is changed to
Country |
Integer |
getCvv() |
|
int |
getExpMonth() |
|
int |
getExpYear() |
|
String |
getLine1() |
|
String |
getLine2() |
|
PaymentTypeName |
getPaymentType() |
|
PhoneNumber |
getPhoneNumber() |
|
String |
getPostalCode() |
|
String |
getState() |
|
boolean |
validateCard() |
|
boolean |
validateDate() |
|
boolean |
validateNumber() |
public String getCountry()
Country on later releasepublic Country getCountryEnum()
Country@Deprecated public CreditCard addAddress(String country, String state, String city, String line1, String line2, String postalCode)
public CreditCard addAddress(Country country, String state, String city, String line1, String line2, String postalCode)
public CreditCard addPhoneNumber(PhoneNumber phoneNumber)
public String getCardholder()
public String getCardNumber()
public int getExpMonth()
public int getExpYear()
public Integer getCvv()
public CardBrand getCardType()
public String getState()
public String getCity()
public String getLine1()
public String getLine2()
public String getPostalCode()
public PhoneNumber getPhoneNumber()
public boolean validateDate()
public boolean validateNumber()
public boolean validateCard()
public PaymentTypeName getPaymentType()
getPaymentType in interface PaymentDataCopyright © 2018 The Apache Software Foundation. All rights reserved.