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

Initiate Brick with e-mail

BrickCard Payment Brick
Customization momentWhen rendering Brick
Propertyinitialization.payer.email
Typestring
CommentsWhen a valid email is sent, the email field is hidden.
          
const settings = {
   initialization: {
       amount: number,
       payer: {
           email: 'string',
       },
   },
   ...
}

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

        

Initiate Brick with document

BrickCard Payment Brick
Customization momentWhen rendering Brick
Propertyinitialization.payer.identification.type & initialization.payer.identification.number
Typestring
CommentsWhen a valid identification.number and a corresponding identification.type are sent, the payer document field is automatically filled in.
          
const settings = {
   initialization: {
       amount: number,
       payer: {
           identification: {
               type: 'string',
               number: 'string',
           },
       },
   },
   ...
}

        
          
const initialization = {
 ...,
 payer: {
   ...,
   identification: {
     type: 'string',
     number: 'string',
   },
 },
};