The ID of the authorized transaction.
Instance Method
capture(transactionId:amount:breakdown:eventId:)
Captures a previously authorized transaction.
Declaration
func capture(transactionId: String, amount: Int? = nil, breakdown: PaymentBreakdown? = nil, eventId: String? = nil) async throws -> TransactionResponse
Parameters
transactionId
-
amount
-
Optional amount to capture (partial or full).
breakdown
-
Optional breakdown of the amount.
eventId
-
Optional tracking ID.
Return Value
A TransactionResponse
confirming the capture.
Discussion
This finalizes a hold placed during an auth or preauth.