WalletToken

data class WalletToken(val paymentData: String, val network: CardNetwork?, val displayLabel: String?)(source)

The authorization material a wallet hands back, normalized across vendors.

paymentData is an opaque, encrypted blob — base64 of Apple's PKPaymentToken.paymentData, or Google's paymentMethodData.tokenizationData.token JSON. It is meaningless to the client and is only ever forwarded to the PSP by the backend; nothing here may branch on its contents.

Constructors

Link copied to clipboard
constructor(paymentData: String, network: CardNetwork?, displayLabel: String?)

Properties

Link copied to clipboard

Safe-to-display card description, e.g. Visa 1234. Never a PAN.

Link copied to clipboard

The network the user actually paid with, when the wallet reports one.

Link copied to clipboard