Skip to content

Commit

Permalink
Merge pull request #2 from TrustlyInc/easy-start-up
Browse files Browse the repository at this point in the history
Easy start up instructions
  • Loading branch information
lukevance authored Apr 19, 2023
2 parents 4e45191 + f161aa4 commit 07abdb7
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
```

0 comments on commit 07abdb7

Please sign in to comment.