Skip to content

Commit

Permalink
Merge pull request #1 from TrustlyInc/added-example-app
Browse files Browse the repository at this point in the history
added new example app
  • Loading branch information
lukevance authored Apr 4, 2023
2 parents 616c164 + 7ab6b9a commit 4e45191
Show file tree
Hide file tree
Showing 9 changed files with 1,708 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Misc
.DS_Store

# Generated by package manager
node_modules/

# Generated by Cordova
/plugins/
/platforms/
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,21 @@
# trustly-android-webview-example
# Trustly Cordova Example App

## Getting Started

1. Clone this repository

2. `npm install`

3. 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`.

4. Start the app!
```
npm start
```
12 changes: 12 additions & 0 deletions config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version='1.0' encoding='utf-8'?>
<widget id="io.cordova.trustlyexample" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Trustly Cordova Example</name>
<description>Example Cordova application that renders the Trustly Lightbox</description>
<author email="[email protected]" href="https://amer.developers.trustly.com">
Trustly Developer Experience Team
</author>
<content src="index.html" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-navigation href="*" />
</widget>
Loading

0 comments on commit 4e45191

Please sign in to comment.