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?, 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.