beacash

0.1.0 • Public • Published

BEACASH

Developer Documentation

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",
});

Package Sidebar

Install

npm i beacash

Weekly Downloads

2

Version

0.1.0

License

MIT

Unpacked Size

45.3 kB

Total Files

11

Last publish

Collaborators

  • beacashdev