The code in this folder shows an example on how to integrate with the checkout.
As a pre requisite you'll need the following before running the example app:
- A MercadoPago Account
- A
publicKeyfrom your MercadoPago Account
If you don't have any of the followings, you can start from here:
If you've more doubts you can read more documentation in this portal:
You'll need to create in this folder a .env file with the following keys:
#.env
MP_ACCESS_TOKEN=Your_MP_Access_Token
MP_PUBLIC_KEY=Your_MP_Public_KeyThe example project uses react-native-config to manage .env variables.
You can install dependencies via NPM or YARN.
npm installyarn installFor running the app in IOS you'll have to follow these steps:
- Open a terminal positioning
example/iosand run:
pod install- Open a terminal positioning in the
examplefolder and run:
npm start- Open another terminal positioning in the
examplefolder and run:
npm run iosIf everything goes right, you'll be able to see your app in the simulator.
For running the app in Android you'll have to follow these steps:
- Open a terminal positioning in the
examplefolder and run:
npm start- Open another terminal positioning in the
examplefolder and run:
npm run androidIf everything goes right, you'll be able to see your app in the emulator.