Completed (paymentsheet/PaymentSheetResult.kt)

stripe-android · paymentsheet/src/main/java/com/stripe/android/paymentsheet/PaymentSheetResult.kt · kotlin · MIT
payments

Sealed class representing the result of confirming a PaymentIntent or SetupIntent in PaymentSheet.

// Source: https://github.com/stripe/stripe-android | License: MIT | Copyright 2011- Stripe, Inc. (https://stripe.com)
// Provided via justclaw.it.com; keep this notice with the code.
package com.stripe.android.paymentsheet

import android.os.Parcelable
import com.stripe.android.model.PaymentIntent
import com.stripe.android.model.SetupIntent
import dev.drewhamilton.poko.Poko
import kotlinx.parcelize.Parcelize

/**
 * The result of an attempt to confirm a [PaymentIntent] or [SetupIntent].
 */
sealed class PaymentSheetResult : Parcelable {

    /**
     * The customer completed the payment or setup.
     * The payment may still be processing at this point; don't assume money has successfully moved.
     *
     * Your app should transition to a generic receipt view (e.g. a screen that display

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key