Token

public final class Token

Represents a credit card or similar payment method for a particular account.

Fields

MERCHANT_SCOPE

public static final String MERCHANT_SCOPE

Scope of merchant of the token.

ORGANIZATION_SCOPE

public static final String ORGANIZATION_SCOPE

Scope of organization of the token.

VENUE_SCOPE

public static final String VENUE_SCOPE

Scope of Venue of the token.

mData

final HashMap<String, String> mData

mExpiry

final String mExpiry

mIsCreated

final boolean mIsCreated

mScheme

final String mScheme

mScope

final String mScope

mTokenType

final TokenType mTokenType

mValue

final String mValue

Constructors

Token

public Token(String value, String scheme, String scope, TokenType tokenType, String expiry, HashMap<String, String> data, boolean isCreated)

Methods

getData

public HashMap<String, String> getData()

For VAS information and other relevant information.

getExpiry

public String getExpiry()

Datetime when the token expires if provided by the host.

getIsCreated

public boolean getIsCreated()

True if it was just created, or false if it was retrieved.

getScheme

public String getScheme()

The scheme for tokens with type REUSE_WITH_SCHEME.

getScope

public String getScope()

Either a scope constant as listed above or a custom value as defined for this estate.

getTokenType

public TokenType getTokenType()

The enumerated type of token returned.

getValue

public String getValue()

The token value.

toString

public String toString()