Home
Documentation
Resources
Partners
Community

Partners

Discover our program for agencies or developers that offer integration services and sellers who want to hire them.

Community

Get the latest news, ask others for help and share your knowledge.

Default payment method - Advanced features - Mercado Pago Developers

Intelligent search powered by OpenAI 

Default payment method

It is possible to initialize Payment Brick with a payment option already open. To configure a default payment method, use the configuration below.

          
settings = {
 ...,
 customization: {
   ...,
   visual: {
     ...,
     defaultPaymentOption: {
       walletForm: true,
       // creditCardForm: true,
       // debitCardForm: true,
       // savedCardForm: 'card id sent in the initialization',
       // ticketForm: true,
     },
   },
 }
}

        
          
const customization = {
 visual: {
   defaultPaymentOption: {
     walletForm: true,
     // creditCardForm: true,
     // debitCardForm: true,
     // savedCardForm: 'card id sent in the initialization',
     // ticketForm: true,
   },
 }
};

        
Attention
It is not possible to enable more than one default payment method, so use only one property inside the defaultPaymentOption object.

default-payment-option-mla