EmbeddedPaymentElement

Types

Link copied to clipboard
class Builder(createIntentCallback: CreateIntentCallback, resultCallback: EmbeddedPaymentElement.ResultCallback)

Builder used in the creation of the EmbeddedPaymentElement.

Link copied to clipboard
Link copied to clipboard
sealed interface ConfigureResult

The result of a configure call.

Link copied to clipboard
Link copied to clipboard
sealed interface Result

The result of an attempt to confirm a PaymentIntent or SetupIntent.

Link copied to clipboard
fun interface ResultCallback

Callback that is invoked when a Result is available.

Properties

Link copied to clipboard

Contains information about the customer's selected payment option. Use this to display the payment option in your own UI.

Functions

Link copied to clipboard

Sets the current paymentOption to null.

Link copied to clipboard

Call this method to configure EmbeddedPaymentElement or when the IntentConfiguration values you used to configure EmbeddedPaymentElement (amount, currency, etc.) change.

Link copied to clipboard
fun confirm()

Asynchronously confirms the currently selected payment option.

Link copied to clipboard

A composable function that displays payment methods.