flutterwave-node-sdk
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

flutterwave-node-sdk

flutterwave-node-sdk

Nodejs sdk for flutterwave for flutterwave

Build Status NPM version Downloads Standard Version styled with prettier Conventional Commits


✨ Features

  • Card Payments. (Visa, MasterCard)
  • Mobile Money Payments.

🔧 Installation

yarn add flutterwave-node-sdk

🎬 Getting started

Let's demonstrate simple usage with ... example:

import { RavePay } from 'flutterwave-node-sdk'
 
export const rave = RavePay(
  RAVE_PUBLIC_KEY,
  RAVE_SECRET_KEY,
  RAVE_IS_PRODUCTION
)
const raveData = {
  payment_type: 'mobilemoneygh',
  network: transactionSchema.network,
  voucher: transactionSchema.voucher, // only needed for Vodafone users.
  is_mobile_money_gh: 1,
 
  currency: 'GHS',
  country: 'GH',
  amount: amount.toString(),
  email: email,
  phonenumber: phone,
 
  firstname: '',
  lastname: '',
 
  IP: '',
  txRef: 'APP-NAME' + Date.now(),
  redirect_url: '',
  meta: [],
  device_fingerprint: '',
}
let res = await rave.initPayment(raveData)

🎭 Examples

Go checkout examples !

🥂 License

MIT as always

Package Sidebar

Install

npm i flutterwave-node-sdk

Weekly Downloads

2

Version

1.1.0

License

MIT

Unpacked Size

10.5 MB

Total Files

59

Last publish

Collaborators

  • silvrash