Skip to content

Silvrash/flutterwave-node-sdk

Repository files navigation

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

About

NodeJS sdk for flutterwave

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published