Home
Documentation
Resources
Certifications
Community
Configure accepted payment methods - Advanced features - Mercado Pago Developers

Intelligent search powered by OpenAI 

Configure accepted payment methods

Client-Side

With Card Payment Brick it is possible to define which payment methods (debit and/or credit) will be accepted in a purchase. By default, both are enabled at the time of integration, however, it is also possible to offer only one of these options, limiting payment to debit or credit only.

In the table below you will find the details of the customization and the code necessary to carry out the configuration.

BrickCard Payment Brick
Customization momentWhen rendering Brick.
Propertycustomization.paymentMethods.types.excluded
Typestring []
NotesThe values ​​accepted within the array are: credit_card, debit_card.
          
settings = {
  ...,
  customization: {
    paymentMethods: {
      types:{
        excluded: ['debit_card']
      }
    }
  }
}

        
          
const customization = {
 paymentMethods: {
   types: {
     excluded: ['debit_card'],
   },
 },
};