Process a Pre-Authorization
This guide shows you how to reserve funds on a customer's card without capturing them immediately.
Pre-Authorization
// Pre-auth for €50.00
startPaymentTransaction(
type = StartTransactionType.PREAUTH,
amountInCents = 5000,
uniqueTransactionId = "",
enablePrinting = true
)
Parameters
| Parameter | Value | Description |
|---|---|---|
type | StartTransactionType.PREAUTH | Transaction type |
amountInCents | 5000 | Amount to reserve in cents (€50.00) |
uniqueTransactionId | "" | Leave empty for pre-auth |
enablePrinting | true | Enable receipt printing |
Important
Store the uti from the response—you'll need it to complete the pre-authorization later.