Modifier and Type | Method and Description |
---|---|
java.lang.String |
component1()
Card brand.
|
java.lang.String |
component2()
Two-letter ISO code representing the country of the card.
|
int |
component3()
The expiration month of the payment method
|
int |
component4()
The expiration year of the payment method
|
java.lang.String |
component5()
Uniquely identifies this particular card number.
|
java.lang.String |
component6()
Card funding type.
|
java.lang.String |
component7()
The last four digits of the card number
|
CardDetails |
copy(java.lang.String brand,
java.lang.String country,
int expMonth,
int expYear,
java.lang.String fingerprint,
java.lang.String funding,
java.lang.String last4)
The
CardDetails object contains details about a specific card presented to a reader |
boolean |
equals(java.lang.Object p) |
java.lang.String |
getBrand()
Card brand.
|
java.lang.String |
getCountry()
Two-letter ISO code representing the country of the card.
|
int |
getExpMonth()
The expiration month of the payment method
|
int |
getExpYear()
The expiration year of the payment method
|
java.lang.String |
getFingerprint()
Uniquely identifies this particular card number.
|
java.lang.String |
getFunding()
Card funding type.
|
java.lang.String |
getLast4()
The last four digits of the card number
|
int |
hashCode() |
java.lang.String |
toString() |
@Nullable public java.lang.String getBrand()
Card brand.
Can be amex
, diners
, discover
, jcb
, mastercard
, unionpay
, visa
, orunknown
.
@Nullable public java.lang.String getCountry()
Two-letter ISO code representing the country of the card.
You could use this attribute to geta sense of the international breakdown of cards you’ve collected.
public int getExpMonth()
The expiration month of the payment method
public int getExpYear()
The expiration year of the payment method
@Nullable public java.lang.String getFingerprint()
Uniquely identifies this particular card number.
You can use this attribute to check whethertwo customers who’ve signed up with you are using the same card number, for example.
@Nullable public java.lang.String getFunding()
Card funding type.
Can be credit
, debit
, prepaid
, or unknown
.
@Nullable public java.lang.String getLast4()
The last four digits of the card number
@Nullable public java.lang.String component1()
Card brand.
Can be amex
, diners
, discover
, jcb
, mastercard
, unionpay
, visa
, orunknown
.
@Nullable public java.lang.String component2()
Two-letter ISO code representing the country of the card.
You could use this attribute to geta sense of the international breakdown of cards you’ve collected.
public int component3()
The expiration month of the payment method
public int component4()
The expiration year of the payment method
@Nullable public java.lang.String component5()
Uniquely identifies this particular card number.
You can use this attribute to check whethertwo customers who’ve signed up with you are using the same card number, for example.
@Nullable public java.lang.String component6()
Card funding type.
Can be credit
, debit
, prepaid
, or unknown
.
@Nullable public java.lang.String component7()
The last four digits of the card number
@NotNull public CardDetails copy(@Nullable java.lang.String brand, @Nullable java.lang.String country, int expMonth, int expYear, @Nullable java.lang.String fingerprint, @Nullable java.lang.String funding, @Nullable java.lang.String last4)
The CardDetails
object contains details about a specific card presented to a reader
For more information, see the official Stripe docs: Card
Use of this SDK is subject to the Stripe Terminal Terms: https://stripe.com/terminal/legal
@NotNull public java.lang.String toString()
public int hashCode()
public boolean equals(@Nullable java.lang.Object p)