On This Page
Refund
Use this information to process a refund using a reference to the original transaction for a full
or partial transaction amount. Stand-alone credits are also supported in this
Acceptance Devices solution. For more information, see Stand-Alone Credit.
Follow these steps to process a refund.
- Use therefundTransactionmethod to start the transaction flow.let linkedRefund = await mposUi.refundTransaction(withID: "transactionIdentifier", //Specify amount and currency for partial refunds partiallyWithAmount: (Decimal(1.00), .USD))
- When the transaction is complete, you can view the result of the transaction.switch linkedRefund { case .success(let transaction): print("Transaction with id: %@ completed with state: %@", transaction.identifier, transaction.status) case .cancelledByUser: print("Transaction canceled.") case .error(let developerInfo): print("Transaction failed. Info: %@", developerInfo) }
- To get complete transaction details, access thetransactionobject.