Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/but0n/cordova-plugin-onestore
a cordova plugin for onestore in-app purchase
https://github.com/but0n/cordova-plugin-onestore
Last synced: 2 days ago
JSON representation
a cordova plugin for onestore in-app purchase
- Host: GitHub
- URL: https://github.com/but0n/cordova-plugin-onestore
- Owner: but0n
- Created: 2019-11-27T12:09:55.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-28T02:07:58.000Z (almost 5 years ago)
- Last Synced: 2024-11-07T09:08:13.489Z (6 days ago)
- Language: Java
- Size: 52.7 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Potato Engine Cordova ONEStore Plugin
## Install
```
cordova plugin add cordova-plugin-onestore
```You need manually replace the PUBLIC_KEY in `src/android/Hello.java` with your application's public key. (PR is welcome if you know other way!)
## Usage
Initialization
```js
hello.init(
() => {alert('init success')},
e => {alert('init failed: ' + e)}
)
```Purchase
```js
hello.purchase(
'uid',
'pid',
data => {
// let purchaseData = JSON.parse(data);
alert(data);
},
error => {
alert(error);
}
)
```