Initialize data on the Bricks - Additional settings - Mercado Pago Developers

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.

javascript

settings = {
  ...,
  initialization: {
    ...,
    payer: {
      ...,
      email: 'jose@maria.com',
      identification: {
          type: 'string',
          number: 'string',
      },
    }
  }
}

Other payment methods

In the form displayed for payment by Rapipago and Pago Fácil, 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.

javascript

settings = {
  ...,
  initialization: {
   ...,
  payer: {
  email: 'jose@maria.com',
   }
}