Class PaymentMethod.CardPresent

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

public static class PaymentMethod.CardPresent extends StripeObject
Owner's verified shipping address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
  • Constructor Details

    • CardPresent

      public CardPresent()
  • Method Details

    • getBrand

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

      public String getCardholderName()
      The cardholder name as read from the card, in ISO 7813 format. May include alphanumeric characters, special characters and first/last name separator (/). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay.
    • 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.)
    • 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.
    • 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.CardPresent.Networks getNetworks()
      Contains information about card networks that can be used to process the payment.
    • getPreferredLocales

      public List<String> getPreferredLocales()
      EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
    • getReadMethod

      public String getReadMethod()
      How card details were read in this transaction.

      One of contact_emv, contactless_emv, contactless_magstripe_mode, magnetic_stripe_fallback, or magnetic_stripe_track2.

    • setBrand

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

      public void setCardholderName(String cardholderName)
      The cardholder name as read from the card, in ISO 7813 format. May include alphanumeric characters, special characters and first/last name separator (/). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay.
    • 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.)
    • 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.
    • 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.CardPresent.Networks networks)
      Contains information about card networks that can be used to process the payment.
    • setPreferredLocales

      public void setPreferredLocales(List<String> preferredLocales)
      EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
    • setReadMethod

      public void setReadMethod(String readMethod)
      How card details were read in this transaction.

      One of contact_emv, contactless_emv, contactless_magstripe_mode, magnetic_stripe_fallback, or magnetic_stripe_track2.

    • 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