createForCompose

fun createForCompose(publishableKey: String, stripeAccountId: String? = null, callback: PaymentLauncher.PaymentResultCallback): PaymentLauncher

Deprecated

Use rememberPaymentLauncher() instead

Replace with

rememberPaymentLauncher(publishableKey, stripeAccountId, callback)

Create a PaymentLauncher used for Jetpack Compose.

This API uses Compose specific API rememberLauncherForActivityResult to register a ActivityResultLauncher into current activity, it should be called as part of Compose initialization path. This method creates a new PaymentLauncher object every time it is called, even during recompositions.