INNER CODE UNIT · Kotlin

presentPaymentSheet

shmykelsa/AAAD · app/src/main/java/com/legs/appsforaa/AboutPaymentActivity.kt:236

    private fun presentPaymentSheet() {
        paymentIntentClientSecret?.let { clientSecret ->
            val configuration = PaymentSheet.Configuration(
                merchantDisplayName = "AAAD",
                customer = customerConfig,
                allowsDelayedPaymentMethods = true
            )

            paymentSheet.presentWithPaymentIntent(
                clientSecret,
                configuration
            )
        }
    }

    private fun onPaymentSheetResult(paymentSheetResult: PaymentSheetResult) {
        when (paymentSheetResult) {
            is PaymentSheetResult.Canceled -> {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…