diff --git a/README.md b/README.md index d51c93e..a19aac4 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,21 @@ 1. Clone this repository -2. `npm install` +``` +git clone git@github.com:TrustlyInc/trustly-cordova-example.git +``` +2. Install project dependencies + +``` +npm install +``` -3. Replace the placeholder tokens with your credentials: +3. Add desired platforms to your project. We suggest at least adding `ios` and `android`. +``` +npx cordova platform add ios && npx cordova platform add android +``` + +4. Replace the placeholder tokens with your credentials: ``` // ./www/js/index.js @@ -15,7 +27,11 @@ const MERCHANT_ID = 'YOUR_MERCHANT_ID'; ``` Also replace YOUR_ACCESS_ID in `./www/index.html` within the script tag that loads `trustly.js`. -4. Start the app! +5. Start the app! +``` +npx cordova run ios +``` +or ``` -npm start +npx cordova run android ``` \ No newline at end of file