Skip to main content

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

ParameterValueDescription
typeStartTransactionType.COMPLETIONTransaction type
amountInCents4500Final amount in cents (€45.00)
uniqueTransactionIdoriginalPreAuthUtiUTI of original pre-auth
enablePrintingtrueEnable 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