On This Page
Incremental Authorization
Use this information to process an incremental authorization. This transaction can be
applied to a pre-authorization request to increase the authorized amount before it
is captured.
Follow these steps to process an incremental authorization.
- Use theincrementTransactionmethod to initiate the transaction flow.let increment = await mposUi.incrementTransaction(withID: "transactionIdentifier", withAmount: (Decimal(1.00), .USD))
- After the transaction is completed, get the results of the transaction.switch increment { 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.