Demo of the Purchase Plugin for Cordova
retrive from git
add platforms and plugins:
cordova platform add ios cordova platform add android cordova plugin add cordova-plugin-console
- add the purchase plugin:
cordova plugin add cordova-plugin-purchase
setup for ios
compile for ios
cordova build ios
test on your ios device
- the best is to run directly using XCode, as you may have some provisioning profile issues XCode will be able to address.
setup for android
compile for android
cordova build android --release
- sign using your release key and test on your device.
during plugin development
While working on the plugin itself, the demo project is useful too.
You can install from your local disk:
cordova plugin add "../cordova-plugin-purchase"
To refresh to the latest local version, remove it first with:
cordova plugin remove cordova-plugin-purchase