Home
Documentation
Resources
Certifications
Community
Initialize data on the Bricks - Advanced features - Mercado Pago Developers

Intelligent search powered by OpenAI 

Initialize data on the Bricks

Client-Side

Cards

In the form displayed for payment by card, you can start with the document and email fields already filled in. For this, it is necessary to pass the following configuration in the Brick's initialization object.

          
settings = {
  ...,
  initialization: {
    ...,
    payer: {
      ...,
      email: '<PAYER_EMAIL_HERE>',
      identification: {
          type: 'string',
          number: 'string',
      },
    }
  }
}

        
          
const initialization = {
 ...,
 payer: {
   ...,
   email: '<PAYER_EMAIL_HERE>',
   identification: {
     type: 'string',
     number: 'string',
   },
 },
};

        

Other payment methods

In the form displayed for payment by PagoEfectivo, you can start with the fields already filled in. For this, it is necessary to pass the following configuration in the Brick's initialization object.

          
settings = {
  ...,
  initialization: {
    ...,
    payer: {
      ...,
      email: '<PAYER_EMAIL_HERE>',
    }
  }
}

        
          
const initialization = {
 ...,
 payer: {
   email: '<PAYER_EMAIL_HERE>',
 },
};