cordova-plugin-onestore

0.1.1 • Public • Published

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!)

Usage

Initialization

hello.init(
    () => {alert('init success')},
    e => {alert('init failed: ' + e)}
)

Purchase

hello.purchase(
    'uid',
    'pid',
    data => {
        // let purchaseData = JSON.parse(data);
        alert(data);
    },
    error => {
        alert(error);
    }
)

Package Sidebar

Install

npm i cordova-plugin-onestore

Weekly Downloads

1

Version

0.1.1

License

Apache-2

Unpacked Size

75.6 kB

Total Files

6

Last publish

Collaborators

  • but0n