https://github.com/bitpay/cordova-sdk-sample
sample application using the bitpay cordova sdk
https://github.com/bitpay/cordova-sdk-sample
Last synced: 10 months ago
JSON representation
sample application using the bitpay cordova sdk
- Host: GitHub
- URL: https://github.com/bitpay/cordova-sdk-sample
- Owner: bitpay
- Created: 2014-10-10T14:36:45.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-10-14T19:43:29.000Z (over 11 years ago)
- Last Synced: 2025-04-06T08:03:03.263Z (about 1 year ago)
- Language: JavaScript
- Size: 1.67 MB
- Stars: 8
- Watchers: 5
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Music Store App
This is a Cordova project for Android and IOS platforms, build with [Ionic](http://ionicframework.com/).
The project demos the integration of the [BitPay's Cordova SDK](http://github.com/bitpay/cordova-sdk).
## Install dependencies
sudo npm install -g cordova ionic
git clone https://github.com/bitpay/sample-cordova-sdk.git
npm install
bower install
## Configure project
cordova plugin add https://github.com/bitpay/cordova-sdk.git
cordova plugin add com.ionic.keyboard
cordova plugin add org.apache.cordova.console
cordova plugin add org.apache.cordova.device
cordova platform add ios
cordova platform add android
## Setup your token
Create a new token on [My Account > API Tokens](https://test.bitpay.com/api-tokens) and use it to create a Bitpay instance. Edit BitPay's serivce initialization at [www/js/services.js](./www/js/services.js#L14) to use your token.
var bitpay = new Bitpay({
host: 'test.bitpay.com',
port: 443,
token: ''
});
## Run it
cordova emulate ios
cordova run android