flutterwave-node-sdk
v1.1.0
Published
Nodejs sdk for flutterwave for flutterwave
Downloads
13
Maintainers
Readme
flutterwave-node-sdk
Nodejs sdk for flutterwave for flutterwave
✨ 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