Skip to content

Repository files navigation

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:

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

Requirements

  • Node 14 or higher

Installation

npm install --save seerbit-nodejs
OR
yarn add --save seerbit-nodejs
OR
pnpm install --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");constconfig=newConfig({publicKey: SeerBitConfig.PUBLIC_KEY,secretKey: SeerBitConfig.SECRET_KEY,bearerToken: SeerBitConfig.TOKEN});constclient=newClient(config);conststandard=newStandardCheckout(client);constpayload={amount:100,callbackUrl: "www.testapp.com",country: "NG",currency: "NGN",email:"testmerchant@mail.com",paymentReference: Date.now()fullName: "Test Name"tokenize: false}standard.Initialize(payload).then(res=>console.log(res)).catch(e=>console.log(e))

You can find more usage in the samples folder

Properties

PropertyTypeRequiredDesc
currencyStringOptionalThe currency for the transaction e.g NGN
emailStringRequiredThe email of the user to be charged
fullNameStringOptionalThe fullname of the user to be charged
countryStringOptionalTransaction country which can be optional
amountStringRequiredThe transaction amount in kobo
publicKeyStringRequiredYour Public key or see above step to get yours
tokenizeboolOptionalTokenize card
paymentReferenceString or NumberRequiredSet a unique transaction reference for every transaction

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.

About

SeerBit NodeJS SDK

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages