CreateIntentCallback

fun interface CreateIntentCallback

Callback to be used when you use PaymentSheet and intend to create and optionally confirm the PaymentIntent or SetupIntent on your server.

Functions

Link copied to clipboard
abstract suspend fun onCreateIntent(paymentMethod: PaymentMethod, shouldSavePaymentMethod: Boolean): CreateIntentResult

Called when the customer confirms the payment or setup.