Home
Documentation
Resources
Partners
Community

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.

Callbacks - Brand - Mercado Pago Developers

Intelligent search powered by OpenAI 

Callbacks

To simplify integration and interaction with Brick, callbacks are provided that can be used at different moments in the lifecycle to execute functions on your website.

Value propTime of use
onReadyWhen finishing loading the Brick.
          
const settings = {
   callbacks: {
      onReady: () => {
        /*
          Callback called when Brick is ready.
          Here you can hide loadings on your site, for example.
        */
      },
    },
};

        
          
import { Brand } from '@mercadopago/sdk-react';
const onReady = async () => {
  /*
    Callback called when Brick is ready.
    Here you can hide loadings on your site, for example.
  */
};

<Brand
   onReady={onReady}
/>