Class CardToken


  • public class CardToken
    extends MPResource
    Send customer card data to Mercado Pago server and receive a token to complete the payments transactions. For testing only. .
    • Constructor Detail

      • CardToken

        public CardToken()
    • Method Detail

      • getId

        public String getId()
        Card token.
      • getCardId

        public String getCardId()
        Card id.
      • getFirstSixDigits

        public String getFirstSixDigits()
        First six digits of card number.
      • getExpirationMonth

        public Integer getExpirationMonth()
        Expiration month of the card.
      • getExpirationYear

        public Integer getExpirationYear()
        Expiration year of the card.
      • getLastFourDigits

        public String getLastFourDigits()
        Last four digits of the card.
      • getStatus

        public String getStatus()
        Current status of card. E.g. active.
      • getDateCreated

        public OffsetDateTime getDateCreated()
        Date token was created.
      • getDateLastUpdated

        public OffsetDateTime getDateLastUpdated()
        Date token was last updated.
      • getLuhnValidation

        public Boolean getLuhnValidation()
        Flag indicating if Luhn validation is used.
      • getLiveMode

        public Boolean getLiveMode()
        Flag indicating if this is a production card token.
      • getRequireEsc

        public Boolean getRequireEsc()
        Require esc.
      • getCardNumberLength

        public Integer getCardNumberLength()
        Security code of the card.
      • getSecurityCodeLength

        public Integer getSecurityCodeLength()
        Security code of the card.