- Clone this repository:
git clone https://github.com/edwardsmoses/braintree-rn-integration-sample
- Change into the project directory:
cd braintree-rn-integration-sample
- In order to run the app locally change the directory:
cd app
- Install all the dependencies to run the App locally:
npm install
- Now Run the App:
npm start
- Run the backend locally,
cd backend
npm install
npm start
The following folders contains the following things:
- The app folder contains the code and setup for Mobile App.
- The backend folder contains the code and setup for The serverside.
- Update the authorization property in the
backend/braintree.html
with the tokenization key from your Braintree account - Add the .env, and add the following properties
BRAINTREE_MERCHANT_ID=
BRAINTREE_PUBLIC_KEY=
BRAINTREE_PRIVATE_KEY=