Contents

token(for:)

Returns a token of the specified type.

Declaration

static func token(for tokenType: TransactionReporting.TokenType) async throws -> String

Parameters

  • tokenType:

    The type of token to generate.

Mentioned in

Return Value

JSON data in a Base64URL-encoded string.

Discussion

When you pass a token type, this method returns a token.

For example, passing the coreTechnology token type, returns a token for reporting a potential purchase related to your app.