- Clone this repository
git clone [email protected]:TrustlyInc/trustly-cordova-example.git
- Install project dependencies
npm install
- Add desired platforms to your project. We suggest at least adding
ios
andandroid
.
npx cordova platform add ios && npx cordova platform add android
- Replace the placeholder tokens with your credentials:
// ./www/js/index.js
const ACCESS_ID = 'YOUR_ACCESS_ID';
const MERCHANT_ID = 'YOUR_MERCHANT_ID';
Also replace YOUR_ACCESS_ID in ./www/index.html
within the script tag that loads trustly.js
.
- Start the app!
npx cordova run ios
or
npx cordova run android
You can participate in this project by submitting bugs and feature requests in the Issues tab. Please, add @lukevance as an assignee.
If you are interested in fixing issues and contributing directly to the code base, feel free to open a Pull Request with your changes. Please, make sure to fulfill our Pull Request Template and add @lukevance as code reviewer.