paystack-fee-calculator
    TypeScript icon, indicating that this package has built-in type declarations

    0.1.1 • Public • Published

    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.

    Install

    npm i paystack-fee-calculator

    DownloadsWeekly Downloads

    6

    Version

    0.1.1

    License

    ISC

    Unpacked Size

    18.6 kB

    Total Files

    9

    Last publish

    Collaborators

    • fuadop