onPaymentMethodSelectionRequired

open fun onPaymentMethodSelectionRequired(paymentIntent: PaymentIntent, availablePaymentOptions: List<PaymentOption>, callback: PaymentMethodSelectionCallback)

This method is called when payment method selection is required during payment collection. Payment collection will block until the callback is invoked with either the selected payment option or a failure.

Parameters

paymentIntent

The PaymentIntent being processed

availablePaymentOptions

List of PaymentOption options available for selection

callback

The PaymentMethodSelectionCallback to invoke with the selected payment option or failure