-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from TrustlyInc/added-example-app
added new example app
- Loading branch information
Showing
9 changed files
with
1,708 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Oops, something went wrong.