Package com.mercadopago.resources
Class CardToken
- java.lang.Object
-
- com.mercadopago.net.MPResource
-
- com.mercadopago.resources.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 Summary
Constructors Constructor Description CardToken()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)CustomerCardCardholdergetCardholder()Cardholder information.StringgetCardId()Card id.IntegergetCardNumberLength()Security code of the card.OffsetDateTimegetDateCreated()Date token was created.OffsetDateTimegetDateDue()Date token expires.OffsetDateTimegetDateLastUpdated()Date token was last updated.IntegergetExpirationMonth()Expiration month of the card.IntegergetExpirationYear()Expiration year of the card.StringgetFirstSixDigits()First six digits of card number.StringgetId()Card token.StringgetLastFourDigits()Last four digits of the card.BooleangetLiveMode()Flag indicating if this is a production card token.BooleangetLuhnValidation()Flag indicating if Luhn validation is used.BooleangetRequireEsc()Require esc.IntegergetSecurityCodeLength()Security code of the card.StringgetStatus()Current status of card.inthashCode()-
Methods inherited from class com.mercadopago.net.MPResource
getResponse, setResponse, toString
-
-
-
-
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.
-
getCardholder
public CustomerCardCardholder getCardholder()
Cardholder information.
-
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.
-
getDateDue
public OffsetDateTime getDateDue()
Date token expires.
-
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.
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classMPResource
-
canEqual
protected boolean canEqual(Object other)
- Overrides:
canEqualin classMPResource
-
hashCode
public int hashCode()
- Overrides:
hashCodein classMPResource
-
-