PaymentLauncherFactory

class PaymentLauncherFactory(context: Context, hostActivityLauncher: ActivityResultLauncher<PaymentLauncherContract.Args>)

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)
Link copied to clipboard
fun PaymentLauncherFactory(fragment: Fragment, callback: PaymentLauncher.PaymentResultCallback)
Link copied to clipboard
fun PaymentLauncherFactory(context: Context, hostActivityLauncher: ActivityResultLauncher<PaymentLauncherContract.Args>)

Functions

Link copied to clipboard
fun create(publishableKey: String, stripeAccountId: String? = null): PaymentLauncher