Change texts
Client-Side
Wallet Brick offers two reading levels: the call to action (button) and the value proposition. In both cases, the text can be customized according to the options provided by Mercado Pago.
- | Description |
Customization moment | When rendering the Brick |
Property | customization.texts.{action, valueProp} |
Type | String |
Comments | When sending empty text, the screen will present the text defined by the default layout. On the other hand, when you submit a custom text, it will replace the default text. To check what the default texts are, check out the table below. |
Check below the texts available for alteration and a code example.
Key | Available options | Default |
action | pay, buy | pay |
valueProp | practicality, security_details, security_safety | security_safety |
See the texts related to each option:
Key | Option | Text |
action | pay | Pay with Mercado Pago |
action | buy | Buy with Mercado Pago |
valueProp | practicality | Use saved cards or your account balance |
valueProp | security_details | Protection for your data |
valueProp | security_safety | Pay securely |
javascript
const settings = {
...,
customization: {
texts: {
action: 'buy',
valueProp: 'security_details',
},
},
}