Inicializar dados nos Bricks
Client-Side
Iniciar Brick com e-mail
| Brick | Card Payment Brick |
| Momento da customização | Ao renderizar Brick |
| Propriedade | initialization.payer.email |
| Tipo | string |
| Observações | Quando um e-mail válido é enviado, o campo de email é ocultado. |
const settings = {
initialization: {
amount: number,
payer: {
email: 'string',
},
},
...
}
const initialization = {
...,
payer: {
...,
email: '<PAYER_EMAIL_HERE>',
},
};
Iniciar Brick com documento
| Brick | Card Payment Brick |
| Momento da customização | Ao renderizar Brick |
| Propriedade | initialization.payer.identification.type & initialization.payer.identification.number |
| Tipo | string |
| Observações | Quando envia-se um identification.number válido e um identification.type correspondente, o campo de documento do pagador é automaticamente preenchido. |
const settings = {
initialization: {
amount: number,
payer: {
identification: {
type: 'string',
number: 'string',
},
},
},
...
}
const initialization = {
...,
payer: {
...,
identification: {
type: 'string',
number: 'string',
},
},
};