Builder

class Builder

Fluent builder for TerminalOptions. Obtain one via TerminalOptions.builder.

Functions

Link copied to clipboard

true (the default) to let the terminal make the commit decision automatically for every transaction; false to require an explicit UncommittedTransactionResult.commit/UncommittedTransactionResult.rollback call instead. See "Staged payments" in the README. Applies to every Terminal.startTransaction/Terminal.startTransactionAsync call made by the resulting Terminal - there is no per-request override.

Link copied to clipboard

Builds the TerminalOptions. Every field not set explicitly keeps its default.

Link copied to clipboard

How long to wait for card insertion or contactless presentation. Defaults to 60 seconds.

Link copied to clipboard

How long to wait for card removal after payment. Defaults to 10 seconds.

Link copied to clipboard

Number of characters that fit on one line of a printed receipt, used to format Receipt.content. Defaults to 42.

Link copied to clipboard

Total budget for a commit/rollback POST and status confirmation, and for Terminal.resume to keep polling Terminal.fetchTransactionStatus while it reports IN_PROGRESS. Defaults to 60 seconds.

Link copied to clipboard

Whether to offer the cardholder a tip. Defaults to false.

Link copied to clipboard

How long a single payment may take before the SDK gives up waiting. Defaults to 6 minutes.

Link copied to clipboard

Whether to offer Dynamic Currency Conversion. Defaults to true.