Initialize data on the Bricks
Client-Side
Initiate Brick with e-mail
Brick | Card Payment Brick |
Customization moment | When rendering Brick |
Property | initialization.payer.email |
Type | string |
Comments | When 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
Brick | Card Payment Brick |
Customization moment | When rendering Brick |
Property | initialization.payer.identification.type & initialization.payer.identification.number |
Type | string |
Comments | When 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',
},
},
};