MercadoPagoCheckoutResult
Sealed interface representing the possible outcomes of a checkout flow.
Both type parameters are inferred from the com.mercadopago.sdk.android.checkout.core.model.MPCheckoutType passed to the builder:
T types Success.paymentData — no
whenor cast required.C types UserCancelled.cancelledData — no
whenor cast required.
Implementations:
Success Checkout completed successfully with payment data.
Error Checkout failed due to a card form or payment error.
UserCancelled User explicitly cancelled the checkout.
Inheritors
Types
Link copied to clipboard
Checkout failed with an error from the card form brick.
Link copied to clipboard
Checkout completed successfully.
Link copied to clipboard
data class UserCancelled<C : MPUserCancelledContext>(val cancelledData: C) : MercadoPagoCheckoutResult<Nothing, C>
User cancelled the checkout flow before completion.