skinpay-api

1.0.1 • Public • Published

SkinPay API for Node.js

npm version npm downloads license

This module is designed for manage API of Skinpay.

You absolutely need Node.js v6.0.0 or later or this won't work.

Install it from npm

Example

const SkinPayApi = require('skinpay-api');
const api = new SkinPayApi({ "privateKey": 'private_key_from_skinpay', "publicKey": 'public_key_from_skinpay' });
 
// Return deposit url for skinpay
console.log(api.deposit.create({ userid: '76561198216122468', min_amount: 1, currency: 'usd', currency_rate: 66 }));
// Return true or false (check for sign is right)
let query = { }; // here your POST body data from request to your server
console.log(api.deposit.result(query));
// Request skinpay for order status
api.api.getOrderStatus({ orderid: 1 }).then(console.log).catch(console.error);

Installing

Using npm:

$ npm install skinpay-api

Support

If you use it and you need more api methods, please make an issue and I will help you. Report bugs on the issue tracker

Readme

Keywords

none

Package Sidebar

Install

npm i skinpay-api

Weekly Downloads

4

Version

1.0.1

License

ISC

Unpacked Size

5.81 kB

Total Files

7

Last publish

Collaborators

  • darkwar123