AI resources

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',
      },
    }
  }
}

Other payment methods

In the form displayed for payment by other payment methods, 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>',
    }
  }
}

PSE

In the form shown for payment with PSE, you can start with the email, person and id 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>',
      entityType: 'individual',
      identification: {
        type: '<PAYER_IDENTIFICATION_TYPE>',
        number: '<PAYER_IDENTIFICATION_NUMBER>'
      }
    }
  }
}