paystack-fee-calculator
v0.1.1
Published
Paystack fee calculator
Downloads
3
Maintainers
Readme
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.