Payment
class Payment @JvmOverloads constructor(val amount: Long, val currency: String, setupFutureUse: PaymentSheet.IntentConfiguration.SetupFutureUse? = null, captureMethod: PaymentSheet.IntentConfiguration.CaptureMethod = CaptureMethod.Automatic) : PaymentSheet.IntentConfiguration.Mode
Use this if your integration creates a PaymentIntent.
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.
setupFutureUse
Indicates that you intend to make future payments. 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.
Constructors
Link copied to clipboard
constructor(amount: Long, currency: String, setupFutureUse: PaymentSheet.IntentConfiguration.SetupFutureUse? = null, captureMethod: PaymentSheet.IntentConfiguration.CaptureMethod = CaptureMethod.Automatic)