On This Page
Stand-Alone Credit
Use this information to process a stand-alone credit. This transaction is used to process a
credit without reference to the original transaction. The customer is required to
present their payment card for this type of transaction.
WARNING
When processing a stand-alone credit, there is no limit on the
credit amount because there is no reference to the original transaction amount. The
recommendation is to use a refund transaction whenever possible. For more
information, see Refund.
Follow these steps to process a stand-alone credit.
- Create aRefundParametersobject and provide the required information for the payment.
- Use thestartStandaloneRefundTransactionmethod to initiate the transaction flow.let refundParameters = RefundParameters(amount: Decimal(1.00), currency: .USD, customIdentifier: "yourReferenceForTheTransaction") let refund = await mposUi.startStandaloneRefundTransaction(with: refundParameters)
- After the transaction is completed, get the results of the transaction.switch refund { case .success(let transaction): print("Transaction with id: %@ completed with state: %@", transaction.identifier, transaction.status) case .failure(let error): print("Transaction failed with error: %@", error.localizedDescription) }
- To get complete transaction details, access thetransactionobject.