Companion

object Companion

Functions

Link copied to clipboard
fun create(from: ComponentActivity, stripePublishableKey: String, cardScanSheetResultCallback: CardScanSheet.CardScanResultCallback, registry: ActivityResultRegistry = from.activityResultRegistry): CardScanSheet

Create a CardScanSheet instance with ComponentActivity.

fun create(from: Fragment, stripePublishableKey: String, cardScanSheetResultCallback: CardScanSheet.CardScanResultCallback, registry: ActivityResultRegistry? = null): CardScanSheet

Create a CardScanSheet instance with Fragment.

Link copied to clipboard
fun removeCardScanFragment(supportFragmentManager: FragmentManager)