Payment

data class Payment(paymentMeanId: String, signedToken: String? = null, val issuedAt: Long = Instant.now().epochSecond) : Token

Payment Token data structure

Parameters

paymentMeanId

the payment mean id the token was generated for

signedToken

the string representation of the signed payment token

Constructors

Link copied to clipboard
constructor(paymentMeanId: String, signedToken: String? = null, issuedAt: Long = Instant.now().epochSecond)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun sign(keyManager: IKeyManager, timeStamp: Long): Token.Payment
Link copied to clipboard
open override fun stringRepresentation(): String

Function used for retrieving the string representation of a token provided to the QR/Aztec code