Class PaymentRecord.PaymentMethodDetails.Card

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.PaymentRecord.PaymentMethodDetails.Card
All Implemented Interfaces:
StripeObjectInterface
Enclosing class:
PaymentRecord.PaymentMethodDetails

public static class PaymentRecord.PaymentMethodDetails.Card extends StripeObject
Details of the card used for this payment attempt.
  • Constructor Details

    • Card

      public Card()
  • Method Details

    • getBrand

      public String getBrand()
      Card brand. Can be amex, cartes_bancaires, diners, discover, eftpos_au, jcb, link, mastercard, unionpay, visa or unknown.
    • getCaptureBefore

      public Long 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

      public String 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

      public Long getExpMonth()
      Two-digit number representing the card's expiration month.
    • getExpYear

      public Long getExpYear()
      Four-digit number representing the card's expiration year.
    • getFingerprint

      public String 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

      public String getFunding()
      Card funding type. Can be credit, debit, prepaid, or unknown.
    • getLast4

      public String getLast4()
      The last four digits of the card.
    • getMoto

      public Boolean getMoto()
      True if this payment was marked as MOTO and out of scope for SCA.
    • getNetwork

      public String getNetwork()
      Identifies which network this charge was processed on. Can be amex, cartes_bancaires, diners, discover, eftpos_au, interac, jcb, link, mastercard, unionpay, visa, or unknown.
    • getNetworkToken

      If this card has network token credentials, this contains the details of the network token credentials.
    • getNetworkTransactionId

      public String 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

      public void setBrand(String brand)
      Card brand. Can be amex, cartes_bancaires, diners, discover, eftpos_au, jcb, link, mastercard, unionpay, visa or unknown.
    • setCaptureBefore

      public void setCaptureBefore(Long captureBefore)
      When using manual capture, a future timestamp at which the charge will be automatically refunded if uncaptured.
    • setChecks

      public void setChecks(PaymentRecord.PaymentMethodDetails.Card.Checks checks)
      Check results by Card networks on Card address and CVC at time of payment.
    • setCountry

      public void setCountry(String country)
      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

      public void setExpMonth(Long expMonth)
      Two-digit number representing the card's expiration month.
    • setExpYear

      public void setExpYear(Long expYear)
      Four-digit number representing the card's expiration year.
    • setFingerprint

      public void setFingerprint(String fingerprint)
      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

      public void setFunding(String funding)
      Card funding type. Can be credit, debit, prepaid, or unknown.
    • setLast4

      public void setLast4(String last4)
      The last four digits of the card.
    • setMoto

      public void setMoto(Boolean moto)
      True if this payment was marked as MOTO and out of scope for SCA.
    • setNetwork

      public void setNetwork(String network)
      Identifies which network this charge was processed on. Can be amex, cartes_bancaires, diners, discover, eftpos_au, interac, jcb, link, mastercard, unionpay, visa, or unknown.
    • setNetworkToken

      public void setNetworkToken(PaymentRecord.PaymentMethodDetails.Card.NetworkToken networkToken)
      If this card has network token credentials, this contains the details of the network token credentials.
    • setNetworkTransactionId

      public void setNetworkTransactionId(String networkTransactionId)
      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(PaymentRecord.PaymentMethodDetails.Card.ThreeDSecure threeDSecure)
      Populated if this transaction used 3D Secure authentication.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object