Home
Documentation
Resources
Partners
Community

Resources

Check for updates on our solutions and system performance, or request technical support.

Partners

Discover our program for agencies or developers that offer integration services and sellers who want to hire them.

Community

Get the latest news, ask others for help and share your knowledge.

Change button appearance - User interface - Mercado Pago Developers

Intelligent search powered by OpenAI 

Change button appearance

Client-Side

It is possible to customize the look of the payment button by defining visual properties with alternative values to the default ones. By default, the payment button renders as in the following image.

cow-visual-wallet-default

To change the default texts, modify the customization property during rendering.

-Description
Customization momentWhen rendering.
Propertycustomization
ObservationsWhen sending an empty property, the screen will present the value defined by the default layout. On the other hand, when sending alternative text, it will replace the default text. To check which alternative texts are available, see the table below.

Check below for the visuals available to change and a code example.

KeyAvailable optionsDefaultObservations
buttonBackgrounddefault, black, blue, whitedefault-
buttonHeight-48pxMínimo: 48px.
Maximum: free choice.
borderRadius-6px-
valuePropColorgrey, whitegrey-
verticalPadding-16pxMínimo: 8px.
Maximum: free choice.
horizontalPadding-0pxMínimo: 0px.
Maximum: free choice.
          
const settings = {
 ...,
 customization: {
      visual: {
          buttonBackground: 'black',
          borderRadius: '16px',
      },
 },
}

        
          
const customization = {
 visual: {
     buttonBackground: 'black',
     borderRadius: '6px',
 },
}

        

Such customization examples will generate the following result:

cow-visual-wallet