TransactionContext

public struct TransactionContext

TransactionContext defines the context of a transaction, encompassing details such as the merchant name, transaction amount, and currency code.

Version

Version 3.0

Since

Since 3.0
  • merchantName The name of the merchant.

    Declaration

    Swift

    public let merchantName: String
  • amount The transaction amount in ISO 4217 format. That is, with the correct number of digits after the decimal separator.

    Declaration

    Swift

    public let amount: String
  • currencyCode The ISO 4217 currency code of the transaction where both numeric and alpha-numeric values are supported.

    Declaration

    Swift

    public let currencyCode: String
  • Initializer for Transaction Context

    Declaration

    Swift

    public init(merchantName: String, amount: String, currencyCode: String)