beacash
v0.1.0
Published
BEACASH Node SDK
Downloads
8
Maintainers
Readme
BEACASH
Promise based SDK client for the browser and node.js
Table of Contents
Features
- Charge / Cashin
- Transfer / Cashout
Installing
Using npm:
$ npm install beacash
Using yarn:
$ yarn add beacash
Example
Charge
Supported environments
- Browser
- Node
import Beacash from 'beacash';
const beacash = new Beacash({ publickey: 'pubk_test_00a2eed1a6fe4c28aef28af6f6db70bd });
await beacash.charge({
amount: 2000,
phoneNumber: '243970000000',
holderNames: 'First Name Last name',
});
Transfer
Supported environments:
- Node only / Server side
import Beacash from "beacash";
const beacash = new Beacash({
publickey: "pubk_test_00a2eed1a6fe4c28aef28af6f6db70bd",
secretKey: "seck_test_01a2eed1a6fe4c28aef28af6f6db70bc",
});
await beacash.transfer({
amount: 2000,
phoneNumber: "243970000000",
holderNames: "First Name Last name",
});