Payment

constructor(amount: Long, currency: String, captureMethod: PaymentSheet.IntentConfiguration.CaptureMethod)

Parameters

amount

Amount intended to be collected in the smallest currency unit (e.g. 100 cents to charge $1.00). Shown in Google Pay, Buy now pay later UIs, the Pay button, and influences available payment methods. See our docs for more info.

currency

Three-letter ISO currency code. Filters out payment methods based on supported currency. See our docs for more info.

captureMethod

Controls when the funds will be captured from the customer's account. See our docs for more info.


constructor(amount: Long, currency: String, setupFutureUse: PaymentSheet.IntentConfiguration.SetupFutureUse? = null, captureMethod: PaymentSheet.IntentConfiguration.CaptureMethod)

Deprecated

Use the required-argument constructor and the builder methods instead.

Replace with

Payment(amount, currency, captureMethod).setupFutureUse(setupFutureUse)

Deprecated

Use the required-argument constructor and the builder methods instead.

Replace with

Payment(amount, currency, captureMethod).setupFutureUse(setupFutureUse).paymentMethodOptions(paymentMethodOptions)