Class Charge.PaymentMethodDetails.CardPresent

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

public static class Charge.PaymentMethodDetails.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

    • getAmountAuthorized

      public Long getAmountAuthorized()
      The authorized amount.
    • getBrand

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

      public Long getCaptureBefore()
      When using manual capture, a future timestamp after which the charge will be automatically refunded if uncaptured.
    • 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.)
    • getEmvAuthData

      public String getEmvAuthData()
      Authorization response cryptogram.
    • 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.
    • getGeneratedCard

      public String getGeneratedCard()
      ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod.
    • getIin

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

      public Boolean getIncrementalAuthorizationSupported()
      Whether this PaymentIntent is eligible for incremental authorizations. Request support using request_incremental_authorization_support.
    • 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.
    • getNetwork

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

      Details about payments collected offline.
    • getOvercaptureSupported

      public Boolean getOvercaptureSupported()
      Defines whether the authorized amount can be over-captured or not.
    • 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.

    • getReceipt

      A collection of fields required to be displayed on receipts. Only required for EMV transactions.
    • setAmountAuthorized

      public void setAmountAuthorized(Long amountAuthorized)
      The authorized amount.
    • setBrand

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

      public void setCaptureBefore(Long captureBefore)
      When using manual capture, a future timestamp after which the charge will be automatically refunded if uncaptured.
    • 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.)
    • setEmvAuthData

      public void setEmvAuthData(String emvAuthData)
      Authorization response cryptogram.
    • 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.
    • setGeneratedCard

      public void setGeneratedCard(String generatedCard)
      ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod.
    • setIin

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

      public void setIncrementalAuthorizationSupported(Boolean incrementalAuthorizationSupported)
      Whether this PaymentIntent is eligible for incremental authorizations. Request support using request_incremental_authorization_support.
    • 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.
    • 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, mastercard, unionpay, visa, or unknown.
    • setOffline

      public void setOffline(Charge.PaymentMethodDetails.CardPresent.Offline offline)
      Details about payments collected offline.
    • setOvercaptureSupported

      public void setOvercaptureSupported(Boolean overcaptureSupported)
      Defines whether the authorized amount can be over-captured or not.
    • 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.

    • setReceipt

      public void setReceipt(Charge.PaymentMethodDetails.CardPresent.Receipt receipt)
      A collection of fields required to be displayed on receipts. Only required for EMV transactions.
    • 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