Skip to main content

In-Person Payments

Token.hpp

Last updated: 26-Jul-2024

namespace verifone_sdk

struct Token

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

Public Functions

inline Token(std::string value_, std::optional<std::string> scheme_, std::string scope_, TokenType tokenType_, std::optional<std::string> expiry_, std::optional<std::unordered_map<std::string, std::string>> data_, bool isCreated_)

Public Members

std::string value

  • The token value.

std::optional<std::string> scheme

  • The scheme for tokens with type REUSE_WITH_SCHEME.

std::string scope

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

TokenType tokenType

  • The enumerated type of token returned.

std::optional<std::string> expiry

  • Datetime when the token expires if provided by the host.

std::optional<std::unordered_map<std::string, std::string>> data

  • For VAS information and other relevant information.

bool isCreated

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

Public Static Attributes

static std::string const ORGANIZATION_SCOPE

  • Scope of organization of the token.

static std::string const MERCHANT_SCOPE

  • Scope of merchant of the token.

static std::string const VENUE_SCOPE

  • Scope of Venue of the token.

Need help?

Do you have a question? If you didn’t find the answer you are looking for in our documentation, you can contact our Support teams for more information. If you have a technical issue or question, please contact us. We are happy to help.

Not yet a Verifone customer?

We’ll help you choose the right payment solution for your business, wherever you want to sell, in-person or online. Our team of experts will happily discuss your needs.

Verifone logo