Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

korapay-node

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

korapay-node

#### The Korapay NodeJS SDK

  • 1.3.5
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 25 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc