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