ZPI NODEJS
Usage
- Install package
$ npm i zpi-nodejs
- Create order (Detail)
const { App } = require('zpi-nodejs');
const app = new App(appid, macKey, callbackKey);
const data = await app.createOrder(apptransid, appuser, amount, apptime, embeddata, item, description);
- Generate deeplink
const { genDeeplink } = require('zpi-nodejs');
genDeeplink(data.orderUrl);
- Open deeplink from client