Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

PaystackOSS/paystack-node

Open more actions menu
 
 

Repository files navigation

Paystack Node.js Library

A Node client library for consuming the Paystack API

Prerequisite

Your need to create a Paystack account, if you don't have one already, to get your test and live secret keys.

Installation

npm install @paystack/node --save

Usage

Import and initialize the library:

import Paystack from '@paystack/node'
const paystack = new Paystack("sk_test_xxxxxx")

Initiate a request and parse response:

paystack.customer.fetch({code: "CUS_o9rf5kuwei3lt4vl"})
                  .then(customer => console.log(customer))
                  .catch(error => console.log(error))

Issues

Kindly open an issue if you discover any bug or have problems using this library.

License

This repository is made available under the MIT license. Kindly read the LICENSE file for more information.

About

Paystack API Node Client Library

Resources

License

Stars

Watchers

Forks

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.