onConfirmCustomPaymentMethod

abstract fun onConfirmCustomPaymentMethod(    customPaymentMethod: PaymentSheet.CustomPaymentMethod,     billingDetails: PaymentMethod.BillingDetails)

Called when a user confirms payment or setup with a custom payment method.

On completion, this should call CustomPaymentMethodResultHandler.handleCustomPaymentMethodResult with the result of the custom payment method's confirmation.

Parameters

customPaymentMethod

The custom payment method to confirm payment with

billingDetails

Any billing details you've configured Payment Element to collect