- Clone this repository
git clone git@github.com:TrustlyInc/trustly-cordova-example.git
- Install project dependencies
npm install
- Add desired platforms to your project. We suggest at least adding
iosandandroid.
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.
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.