npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

flickpaysdk

v1.1.9

Published

This sdk contains flickpay inflow and outflow solutions

Downloads

119

Readme

paymentsdk

Flick PaymentSDK is a secure and quick way to for customer to access accounts and interacting with Flick API (Identity, Financial Data, Payout, Collections, Misc) Flick Payment SDK is a drop-in framework that handles connecting a financial institution to your app (multi-factor authentication, error handling, credential validation, etc). It works with all major Typescript and javascript frameworks.

Getting Started

• Register on the Flick website and get your public and secret keys.

• Setup a server to exchange tokens to access user financial data with your Flick secret key.

Installation

• You can install the package using NPM or Yarn;

 npm install flickpaysdk

or

yarn add flickpaysdk

• Then add it into your project;

const  Flickpay = require('flickpay-sdk');

• Or if you're using ES6 modules

import Flickpay  from 'flickpaysdk'

Initializing Flickpay

• To initialize the Flickpay SDK, create a new instance of the Flickpay class with your secret key:

const flickpay = new Flickpay('YOUR_SECRET_KEY');

Checkout Process

• You can initiate a checkout process using the flickCheckOut method:

const checkoutRequest = {
    amount: '1000',
    Phoneno: '1234567890',
    currency_collected: 'NGN',
    currency_settled: 'USD',
    email: < '[email protected]',
    redirectUrl:'https://example.com/redirect',
    webhookUrl: 'https://example.com/webhook',
    transactionId:'1234567890'
};

flickpay.flickCheckOut(checkoutRequest)
    .then(response => {
        console.log(response);
    })
    .catch(error => {
        console.error(error);
    });

Bank List Retrieval

• You can retrieve a list of supported banks using the flickBankListSdk method:

flickpay.flickBankListSdk()
    .then(bankList => {
        console.log(bankList);
    })
    .catch(error => {
        console.error(error);
    });

Bank Name Inquiry

• You can perform a bank name inquiry using the flickBankNameInquirySdk method:

const bankNameRequest = {
     account_number: '1234567890',
     bank_code: '012'
};

flickpay.flickBankNameInquirySdk(bankNameRequest)
    .then(bankName => {
        console.log(bankName);
    })
    .catch(error => {
        console.error(error);
    });

Payout Initialization

• You can initiate a payout using the flickInitiatPayoutSdk method:

const payoutRequest = {
    bank_name: 'Example Bank',
    bank_code: '012',
    account_number: '1234567890',
    amount: '1000',
    narration: 'Payout for services',
    currency: 'NGN',
    beneficiary_name: 'John Doe',
    reference: '1234567890',
    debit_currency: 'USD',
    emai: '[email protected]',
    mobile_number: '1234567890'
};

flickpay.flickInitiatPayoutSdk(payoutRequest)
    .then(payoutResponse => {
        console.log(payoutResponse);
    })
    .catch(error => {
        console.error(error);
    });

Payout Verification

• You can verify a payout using the flickVerifyPayoutSdk method:

const transactionId = '1234567890';

flickpay.flickVerifyPayoutSdk(transactionId)
    .then(verificationResponse => {
        console.log(verificationResponse);
    })
    .catch(error => {
        console.error(error);
    });

Identity Verification

• You can perform various identity verifications using the corresponding methods:

BVN (Bank Verification Number): flickIdentityBvnSdk
NIN (National Identification Number): flickIdentityNinSdk
CAC (Corporate Affairs Commission) Basic: flickIdentityCacBasicSdk
CAC (Corporate Affairs Commission) Advance: flickIdentityCacAdvanceSdk
KYB (Know Your Business) TIN (Tax Identification Number): flickpayKYBTINVerification

Best Practices

• Always handle errors returned by API calls. • Securely store and handle secret keys to prevent unauthorized access.

Troubleshooting

• If you encounter authentication errors, double-check your secret key and ensure it is correctly configured.

Support

• If you're having general trouble with flick paymentsdk or your Flick integration, please reach out to us or come chat with us on Slack channel. We will be more than happy to help you out with your integration to Flick