Instance Method

amount(_:currency:)

Specify the total amount to be paid by the customer (or refunded to the customer) for the transaction. The amount should be in major units of the specified Currency

Declaration

@discardableResult func amount(_ amount: Decimal, currency: Currency) -> TransactionBuilder

Return Value

The current TransactionBuilder instance for fluent access.

Parameters

amount

The amount to be paid or refunded.

currency

The currency of the payment amount.