UNPKG

@mercadopago/sdk-react

Version:
25 lines (24 loc) 822 B
import React from 'react'; import { TWallet } from './types'; /** * Wallet Brick allows you to offer payments from your Mercado Pago account at any stage of the purchase process. * * Usage: * * ```ts * import Wallet, {initMercadoPago} from '@mercadopago/sdk-react' * * initMercadoPago('YOUR_PUBLIC_KEY') * * const Example = () => { * return( * <Wallet initialization={{ preferenceId: '<PREFERENCE_ID>'}} /> // PREFERENCE_ID generated in backend * ) * } * export default Example * ``` * * @see {@link https://www.mercadopago.com/developers/en/docs/checkout-bricks/wallet-brick/introduction Wallet Brick documentation} for more information. */ declare const Wallet: ({ onReady, onError, onSubmit, customization, initialization, locale, id, }: TWallet) => React.JSX.Element; export default Wallet;