The ID of the transaction to refund.
Instance Method
refund(transactionId:amount:eventId:)
Issues a refund for a previously captured transaction.
Declaration
func refund(transactionId: String, amount: Int? = nil, eventId: String? = nil) async throws -> TransactionResponse
Parameters
transactionId
-
amount
-
Optional partial refund amount (defaults to full).
eventId
-
Optional tracking event ID (UUID4).
Return Value
A TransactionResponse
with refund details.