Contents

init(amount:currencyCode:for:)

Creates a new transaction request for the specified amount in the designated currency.

Declaration

init(amount: Decimal, currencyCode: String, for type: PaymentCardTransactionRequest.TransactionType = .purchase)

Parameters

  • amount:

    The purchase or refund price in the specified currency. This value must be greater than 0.

  • currencyCode:

    The ISO 4217 code that indicates the currency type for the purchase or refund.

  • type:

    A value that indicates whether the transaction is a purchase or refund.