A react native bridge for MercadoPago checkout components
This package provides a bridge to trigger MercadoPago UI components (Android and iOS) from a react-native app. For more info about the native MercadoPago components, checkout the official documentation: Android and iOS
Install with npm: npm install --save react-native-checkout-mercadopago
.
Or, install with yarn: yarn add react-native-checkout-mercadopago
.
Either way, then link with react-native link react-native-checkout-mercadopago
.
Libraries > MercadoPagoSDK.xcodeproj > Products
from your projectimport { startCheckout } from 'react-native-checkout-mercadopago';
//from your checkout button, start the checkout process like this:
let payment = await startCheckout('my_public_key', 'my_preference_id');
Check out the /example
directory for a working demo of a react-native app triggering the MercadoPago components.