1.3.5 • Published 10 months ago

korapay-node v1.3.5

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Korapay SDK

The Korapay NodeJS SDK

How to use

# NPM
npm install korapay-node

# YARN
yarn add korapay-node

ESM,

import { Korapay } from "korapay-node";

const korapay = new Korapay(secret_key, public_key);

CommonJs

const { Korapay } = require("korapay-node");

const korapay = new Korapay(secret_key, public_key);

All methods use promise meaning you can either use the async...await or then. However, you do not have to clutter your code with blocks of try..catch as the SDK intuitively handles error already. For instance:

 const charge = await korapay.charge.initialize( payload );

 if( !charge.status ) return charge.message; // this might be different depending on your use case

 redirect( charge.data.checkout_url ); // this might be different depending on your use case

Modules

  • Charge(Payin)
  • Payout
  • Verification
  • Balances
  • Miscellaneous

Contributing

Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities.

Created with 🧡 by Owoade

1.3.5

10 months ago

1.3.4

10 months ago

1.3.3

10 months ago

1.3.2

10 months ago

1.3.1

10 months ago

1.3.0

10 months ago

1.2.9

10 months ago

1.2.8

10 months ago

1.2.7

10 months ago

1.2.6

10 months ago

1.2.5

10 months ago

1.2.4

10 months ago

1.2.3

10 months ago

1.2.2

10 months ago

1.2.1

10 months ago

1.2.0

10 months ago

1.1.9

10 months ago

1.1.8

10 months ago

1.1.7

10 months ago

1.1.6

10 months ago

1.1.5

10 months ago

1.1.4

10 months ago

1.1.3

10 months ago

1.1.2

10 months ago

1.1.1

10 months ago

1.1.0

10 months ago

1.0.9

10 months ago

1.0.8

10 months ago

1.0.7

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago