Nothing Precedes Matter

    @paystack/paystack-sdk
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.0-beta.6 • Public • Published

    Paystack Node 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/paystack-sdk --save
    

    Usage

    Import and initialize the library:

    import Paystack from '@paystack/paystack-sdk'
    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.

    Install

    npm i @paystack/paystack-sdk

    DownloadsWeekly Downloads

    25

    Version

    1.0.0-beta.6

    License

    MIT

    Unpacked Size

    709 kB

    Total Files

    244

    Last publish

    Collaborators

    • damilola-paystack
    • alex-paystack
    • paystack-admin
    • olumide
    • xolubi
    • fathermerry
    • onyekachi