Skip to content

Trustly-Samples/trustly-cordova-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trustly Cordova Example App

Getting Started

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

  1. Start the app!
npx cordova run ios

or

npx cordova run android

Contributing

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.

About

Simple Cordova app using the Trustly SDK

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors