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:

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
data class Success<T : MPPaymentData>(val paymentData: T) : MercadoPagoCheckoutResult<T, Nothing>

Checkout completed successfully.

Link copied to clipboard

User cancelled the checkout flow before completion.