Class PaymentMethod.Card

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

public static class PaymentMethod.Card extends StripeObject
  • Constructor Details

    • Card

      public Card()
  • Method Details

    • getBrand

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

      public PaymentMethod.Card.Checks getChecks()
      Checks on Card address and CVC if provided.
    • 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.
    • getDescription

      public String getDescription()
      A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
    • getDisplayBrand

      public String getDisplayBrand()
      The brand to use when displaying the card, this accounts for customer's brand choice on dual-branded cards. Can be american_express, cartes_bancaires, diners_club, discover, eftpos_australia, interac, jcb, mastercard, union_pay, visa, or other and may contain more values in the future.
    • 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.
    • getGeneratedFrom

      public PaymentMethod.Card.GeneratedFrom getGeneratedFrom()
      Details of the original PaymentMethod that created this object.
    • getIin

      public String getIin()
      Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
    • getIssuer

      public String getIssuer()
      The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
    • getLast4

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

      public PaymentMethod.Card.Networks getNetworks()
      Contains information about card networks that can be used to process the payment.
    • getThreeDSecureUsage

      public PaymentMethod.Card.ThreeDSecureUsage getThreeDSecureUsage()
      Contains details on how this Card may be used for 3D Secure authentication.
    • getWallet

      public PaymentMethod.Card.Wallet getWallet()
      If this Card is part of a card wallet, this contains the details of the card wallet.
    • setBrand

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

      public void setChecks(PaymentMethod.Card.Checks checks)
      Checks on Card address and CVC if provided.
    • 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.
    • setDescription

      public void setDescription(String description)
      A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
    • setDisplayBrand

      public void setDisplayBrand(String displayBrand)
      The brand to use when displaying the card, this accounts for customer's brand choice on dual-branded cards. Can be american_express, cartes_bancaires, diners_club, discover, eftpos_australia, interac, jcb, mastercard, union_pay, visa, or other and may contain more values in the future.
    • 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.
    • setGeneratedFrom

      public void setGeneratedFrom(PaymentMethod.Card.GeneratedFrom generatedFrom)
      Details of the original PaymentMethod that created this object.
    • setIin

      public void setIin(String iin)
      Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
    • setIssuer

      public void setIssuer(String issuer)
      The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
    • setLast4

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

      public void setNetworks(PaymentMethod.Card.Networks networks)
      Contains information about card networks that can be used to process the payment.
    • setThreeDSecureUsage

      public void setThreeDSecureUsage(PaymentMethod.Card.ThreeDSecureUsage threeDSecureUsage)
      Contains details on how this Card may be used for 3D Secure authentication.
    • setWallet

      public void setWallet(PaymentMethod.Card.Wallet wallet)
      If this Card is part of a card wallet, this contains the details of the card wallet.
    • 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