0.1.1 • Published 2 years ago

paystack-fee-calculator v0.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

paystack-fee-calculator

Paystack fee calculator

Usage

To calculate NGN fee

import calculateFee from 'paystack-fee-calculator';

console.log(calculateFee(50))
// 0.75

To calculate USD fee

import { calculateUSDFee } from 'paystack-fee-calculator';

console.log(calculateUSDFee(50))
// 101.95

Note: The argument and the return values of both functions are in NGN units.