Serving all MercadoPago users who use react native in their application, the gateway in turn does not have support for react native and the MercadoPago community is very small, so we created a lib using the native services of MercadoPago to facilitate the use.
npm install rn-mercadopago-services
yarn add rn-mercadopago-services
// Add in build.gradle
repositories {
...
maven { url 'https://artifacts.mercadolibre.com/repository/android-releases/' }
}
// Example get Card Token for payments checkout transparent ...
import { CardToken } from 'rn-mercadopago-services';
const response = await CardToken(
publicKey,
cardNumber,
expirationMonth,
expirationYear,
securityCode,
cardholderName,
identificationType,
identificationNumber
);
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT license. Copyright (c) 2022 - Jose Eduardo
For more information, see the LICENSE file.