PaymentLauncherFactory
class PaymentLauncherFactory(context: Context, hostActivityLauncher: ActivityResultLauncher<PaymentLauncherContract.Args>)
Content copied to clipboard
Factory to create a PaymentLauncher, initialize all required dependencies.
Used when PaymentLauncher is used as a standalone API.
Constructors
Link copied to clipboard
fun PaymentLauncherFactory(activity: ComponentActivity, callback: PaymentLauncher.PaymentResultCallback)
Content copied to clipboard
Link copied to clipboard
fun PaymentLauncherFactory(fragment: Fragment, callback: PaymentLauncher.PaymentResultCallback)
Content copied to clipboard
Link copied to clipboard
fun PaymentLauncherFactory(context: Context, hostActivityLauncher: ActivityResultLauncher<PaymentLauncherContract.Args>)
Content copied to clipboard
Functions
Link copied to clipboard
fun create(publishableKey: String, stripeAccountId: String? = null): PaymentLauncher
Content copied to clipboard