The amount to authorize.
Instance Method
preauth(amount:breakdown:currency:eventId:)
Performs a pre-authorization for a specified amount.
Declaration
func preauth(amount: Int, breakdown: PaymentBreakdown? = nil, currency: CurrencyCode, eventId: String? = nil) async throws -> TransactionResponse
Parameters
amount
-
breakdown
-
Optional breakdown of the payment.
currency
-
The currency of the transaction.
eventId
-
Optional tracking event ID.
Return Value
A TransactionResponse
representing the preauth result.
Discussion
This holds funds on the card without capturing them until later.