On This Page
Pre-Authorization
Use this information to process a pre-authorization for an initial amount. This
transaction places a temporary hold on the customer's payment card. The transaction
amount can be captured at a later time.
Most authorizations expire in 5 to 7 days. The issuing bank sets this period of time.
When an authorization expires with the issuing bank, your bank or processor might
require you to re-submit an authorization request and include a request for capture
in the same message.
- Create the online payment service, create aChargeParametersobject withautocaptureset tofalse, and callstartChargeTransaction(with:).// Throws MposUIReaderError.notActivated if device is not activated let online = try await reader.mposUIOnline() let chargeParameters = ChargeParameters(amount: Decimal(1.00), currency: .USD, customIdentifier: "yourReferenceForTheTransaction", autocapture: false) let charge = await online.startChargeTransaction(with: chargeParameters)