1.0.2 • Published 3 years ago

paystack-transaction-charges-to-cus v1.0.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years ago

PASS PAYSTACK TRANSACTION CHARGE TO CUSTOMER

PaystackTransactionChargeToCustomer provides the implementation to the formula provided by the Paystack support team as regards passing the Paystack transaction charge to customers Here's the article .

Before getting started

This library currently only works with the Nigerian Paystack Charges

Flat Fee - 100 Naira | Decimal Fee - 1.5%

Get Started

This library would help you calculate the total amount to charge the customer including the Paystack charges. All you need to do is ...

Version Downloads Build Status Maintenance

Usage

paystack-transaction-charges-to-cus.js can be used in both node.js and in the browser.

Install paystack-transaction-charges-to-cus.js using npm:

npm install paystack-transaction-charges-to-cus
import {
  calculateTotalPrice
} from 'paystack-transaction-charges-to-cus'

// functions and constants
calculateTotalPrice(100)                // 101

Constants

NameTypeRequiredDefault ValueDescription
DECIMAL_FEEDoubletrue0.0150
FEE_CAPinttrue2000
FLAT_FEEinttrue100

Done

Checkout Paystack API