seerbit-nodejs
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

SeerBit

SeerBit's API SDK for NodeJS

SeerBit NodeJS SDK for easy integration with SeerBit's API.

Integration

The Library supports all APIs under the following services:

  • [x] standard checkout
  • [x] recurrent payment
  • [x] pre-auth payment
  • [x] mobile money payment
  • [x] card payments
  • [x] order service

Requirements

  • Node 10 or higher

Installation

npm install --save seerbit-nodejs

yarn add --save seerbit-nodejs

You can find both public and secret keys from your merchant dashboard.

Your merchant account token can be generated following the guides here

Usage

Standard Checkout

const {Client, Config, StandardCheckout} = require("seerbit-nodejs");
const {SeerBitConfig} = require("../config");
const config = new Config(
    {
        publicKey: SeerBitConfig.PUBLIC_KEY,
        secretKey: SeerBitConfig.SECRET_KEY,
        bearerToken: SeerBitConfig.TOKEN
    });
const client = new Client(config);

const standard = new StandardCheckout(client);
const payload = {
    amount:100,
    callbackUrl: "www.testapp.com",
    country: "NG",
    currency: "NGN",
    email:"testmerchant@mail.com",
    paymentReference: Date.now()
}

standard.Initialize(payload)
    .then(res=>console.log(res))
    .catch(e=>console.log(e))

You can find more usage in the samples folder

API Documentation

Contributing

We strongly encourage you to join us in contributing to this repository so everyone can benefit from:

  • New features and functionality
  • Resolved bug fixes and issues
  • Any general improvements

License

The MIT License (MIT). Please see License File for more information.

Package Sidebar

Install

npm i seerbit-nodejs

Weekly Downloads

221

Version

0.3.0

License

MIT

Unpacked Size

113 kB

Total Files

180

Last publish

Collaborators

  • seerbit