Example code for PayPal Mobile SDK Cordova/Phonegap Plugin
- Make sure you have cordova installed if you have node just run
sudo npm install -g cordova
else read here - For security reasons, by default the environment is NoNetwork.
- If you want to try sandbox and/or live enter your client ids here and set environment to PayPalEnvironmentProduction or PayPalEnvironmentSandbox here
$ git clone https://github.com/romk1n/MyCordovaShop.git
$ cordova plugin add cordova-plugin-console
$ cordova plugin add com.paypal.cordova.mobilesdk
$ cordova platform add ios
$ cordova platform add android
# for ios
$ cordova run ios
# for android
$ cordova run android