The transaction to reverse.
Instance Method
reverse(transactionId:amount:eventId:)
Reverses a previously authorized transaction before it is captured.
Declaration
func reverse(transactionId: String, amount: Int? = nil, eventId: String? = nil) async throws -> TransactionResponse
Parameters
transactionId
-
amount
-
Optional amount to reverse (defaults to full).
eventId
-
Optional event ID for tracking.
Return Value
A TransactionResponse
indicating reversal status.
Discussion
Typically used when the customer cancels before capture.