When a payment method option is selected, the customer taps a button to continue or confirm payment. This is the default recommended integration.
When a payment method option is selected, onSelectPaymentOption
is triggered.
You can implement this function to immediately perform an action such as going back to the checkout screen or confirming the payment.
Note that certain payment options like Apple Pay and saved payment methods are disabled in this mode if you set
EmbeddedPaymentElementConfiguration.formSheetAction
to continue
Optional
onSelectPaymentOption?: () => void
Describes how the EmbeddedPaymentElement handles payment method row selections:
default
case, the payment method option row enters a selected state.immediateAction
case,onSelectPaymentOption
is called.