Package com.stripe.model
Class PaymentAttemptRecord.PaymentMethodDetails.Card
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.PaymentAttemptRecord.PaymentMethodDetails.Card
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- PaymentAttemptRecord.PaymentMethodDetails
Details of the card used for this payment attempt.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
For more details about Checks, please refer to the API Reference.static class
For more details about NetworkToken, please refer to the API Reference.static class
For more details about ThreeDSecure, please refer to the API Reference. -
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
getBrand()
Card brand.When using manual capture, a future timestamp at which the charge will be automatically refunded if uncaptured.Check results by Card networks on Card address and CVC at time of payment.Two-letter ISO code representing the country of the card.Two-digit number representing the card's expiration month.Four-digit number representing the card's expiration year.Uniquely identifies this particular card number.Card funding type.getLast4()
The last four digits of the card.getMoto()
True if this payment was marked as MOTO and out of scope for SCA.Identifies which network this charge was processed on.If this card has network token credentials, this contains the details of the network token credentials.This is used by the financial networks to identify a transaction.Populated if this transaction used 3D Secure authentication.int
hashCode()
void
Card brand.void
setCaptureBefore
(Long captureBefore) When using manual capture, a future timestamp at which the charge will be automatically refunded if uncaptured.void
Check results by Card networks on Card address and CVC at time of payment.void
setCountry
(String country) Two-letter ISO code representing the country of the card.void
setExpMonth
(Long expMonth) Two-digit number representing the card's expiration month.void
setExpYear
(Long expYear) Four-digit number representing the card's expiration year.void
setFingerprint
(String fingerprint) Uniquely identifies this particular card number.void
setFunding
(String funding) Card funding type.void
The last four digits of the card.void
True if this payment was marked as MOTO and out of scope for SCA.void
setNetwork
(String network) Identifies which network this charge was processed on.void
If this card has network token credentials, this contains the details of the network token credentials.void
setNetworkTransactionId
(String networkTransactionId) This is used by the financial networks to identify a transaction.void
Populated if this transaction used 3D Secure authentication.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
Card
public Card()
-
-
Method Details
-
getBrand
Card brand. Can beamex
,cartes_bancaires
,diners
,discover
,eftpos_au
,jcb
,link
,mastercard
,unionpay
,visa
orunknown
. -
getCaptureBefore
When using manual capture, a future timestamp at which the charge will be automatically refunded if uncaptured. -
getChecks
Check results by Card networks on Card address and CVC at time of payment. -
getCountry
Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. -
getExpMonth
Two-digit number representing the card's expiration month. -
getExpYear
Four-digit number representing the card's expiration year. -
getFingerprint
Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.
-
getFunding
Card funding type. Can becredit
,debit
,prepaid
, orunknown
. -
getLast4
The last four digits of the card. -
getMoto
True if this payment was marked as MOTO and out of scope for SCA. -
getNetwork
Identifies which network this charge was processed on. Can beamex
,cartes_bancaires
,diners
,discover
,eftpos_au
,interac
,jcb
,link
,mastercard
,unionpay
,visa
, orunknown
. -
getNetworkToken
If this card has network token credentials, this contains the details of the network token credentials. -
getNetworkTransactionId
This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. -
getThreeDSecure
Populated if this transaction used 3D Secure authentication. -
setBrand
Card brand. Can beamex
,cartes_bancaires
,diners
,discover
,eftpos_au
,jcb
,link
,mastercard
,unionpay
,visa
orunknown
. -
setCaptureBefore
When using manual capture, a future timestamp at which the charge will be automatically refunded if uncaptured. -
setChecks
Check results by Card networks on Card address and CVC at time of payment. -
setCountry
Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. -
setExpMonth
Two-digit number representing the card's expiration month. -
setExpYear
Four-digit number representing the card's expiration year. -
setFingerprint
Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.
-
setFunding
Card funding type. Can becredit
,debit
,prepaid
, orunknown
. -
setLast4
The last four digits of the card. -
setMoto
True if this payment was marked as MOTO and out of scope for SCA. -
setNetwork
Identifies which network this charge was processed on. Can beamex
,cartes_bancaires
,diners
,discover
,eftpos_au
,interac
,jcb
,link
,mastercard
,unionpay
,visa
, orunknown
. -
setNetworkToken
public void setNetworkToken(PaymentAttemptRecord.PaymentMethodDetails.Card.NetworkToken networkToken) If this card has network token credentials, this contains the details of the network token credentials. -
setNetworkTransactionId
This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. -
setThreeDSecure
public void setThreeDSecure(PaymentAttemptRecord.PaymentMethodDetails.Card.ThreeDSecure threeDSecure) Populated if this transaction used 3D Secure authentication. -
equals
-
canEqual
-
hashCode
public int hashCode()
-