Companion

object Companion

Functions

Link copied to clipboard
fun getDLMobileCheckoutBottomSheet(theme: DLMobileCheckoutTheme = DLMobileCheckoutTheme(), amount: Double? = null, currencyCode: String? = null, onSuccess: (DLCheckoutResult) -> Unit?, onError: (String) -> Unit?): BottomSheetDialogFragment

Creates the BottomSheetDialogFragment containing the checkout UI ready to be presented.

Link copied to clipboard
fun initialize(apiKey: String, countryCode: String, allowInstallments: Boolean = false, testMode: Boolean = false)

Initialize the library. Must be the first interaction with the library as the data provided here is required by other features.