zpi-nodejs
v1.0.2
Published
Utils to integrate zpi
Downloads
5
Readme
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