Builder
class Builder<T : MPPaymentData, C : MPUserCancelledContext>(context: Context, checkoutType: MPCheckoutType<T, C>, checkoutAppearance: MPCheckoutAppearance? = MPCheckoutAppearance(
theme = MercadoPagoThemes.Default,
style = MercadoPagoUserInterfaceStyle.System,
))
Builder for MercadoPagoCheckout.
Parameters
context
Context
checkoutType
MPCheckoutType — determines T and C, and therefore the concrete types of MercadoPagoCheckoutResult.Success.paymentData and MercadoPagoCheckoutResult.UserCancelled.cancelledData.
checkoutAppearance
MPCheckoutAppearance
Constructors
Link copied to clipboard
constructor(context: Context, checkoutType: MPCheckoutType<T, C>, checkoutAppearance: MPCheckoutAppearance? = MPCheckoutAppearance(
theme = MercadoPagoThemes.Default,
style = MercadoPagoUserInterfaceStyle.System,
))
Functions
Link copied to clipboard
Builds the MercadoPagoCheckout
Link copied to clipboard
fun setPaymentMethodConfiguration(paymentMethodConfigs: List<MPPaymentMethodConfig> = MPPaymentMethodConfig.defaults): MercadoPagoCheckout.Builder<T, C>
Sets the payment methods