FILTER BY TAG

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.
  1. Use the
    refundTransaction
    method to start the transaction flow.
    let linkedRefund = await mposUi.refundTransaction(withID: "transactionIdentifier", //Specify amount and currency for partial refunds partiallyWithAmount: (Decimal(1.00), .USD))
  2. 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) }
  3. To get complete transaction details, access the
    transaction
    object.