-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from TrustlyInc/easy-start-up
Easy start up instructions
- Loading branch information
Showing
1 changed file
with
20 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,21 @@ | |
|
||
1. Clone this repository | ||
|
||
2. `npm install` | ||
``` | ||
git clone [email protected]: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 | ||
``` |