A Pre-Authorization (Pre-Auth) transaction is used to place a temporary hold on a customer’s funds without immediately capturing the payment. This is commonly used in industries such as hospitality, car rentals, or services where the final amount may vary at checkout.
The transaction must later be completed using a Ticket transaction, where the final amount (including tips, fees, or taxes) is captured.
Import the payload provided below into your code to perform Pre Auth transactions.
// Pre Auth Transaction
let preAuth = TxnData(
amount: "10.00",
currencyCode: .USD,
tranType: .PRE_AUTH,
showApprovalScreen: true
)
// Start the transaction using this method.
readerInstance.startTransaction(param: preAuth, delegate: self)