Complete a Pre-Authorization
This guide shows you how to capture funds from a previously authorized pre-authorization.
Pre-Authorization Completion
// Complete pre-auth (final amount may differ from original pre-auth, currently app supports only lower amounts)
startPaymentTransaction(
type = StartTransactionType.COMPLETION,
amountInCents = 4500, // Final amount
uniqueTransactionId = originalPreAuthUti, // UTI of original pre-auth
enablePrinting = true
)
Parameters
| Parameter | Value | Description |
|---|---|---|
type | StartTransactionType.COMPLETION | Transaction type |
amountInCents | 4500 | Final amount in cents (€45.00) |
uniqueTransactionId | originalPreAuthUti | UTI of original pre-auth |
enablePrinting | true | Enable receipt printing |
Critical Requirements
- Completion Amount: Amount must be lower or equal to pre-authorization amount
- The app currently supports only lower or equal amounts