merchants for Node.js
merchants is a framework agnostic, multi-gateway payment processing library for node.js, like Omnipay for php or ActiveMerchant for ruby
Gateways support currently
Installation
npm i merchants
Usage
Initialize
const Merchants gateways: Stripe = const merchants = merchantsmerchants
Make a sync request & Grab the response
const request = merchantsconst response = await requestif responsesuccess // do some staff when success console
Make an async request & Grab the response
const request = merchantsconst redirect = request// form koa// ctx.body = redirect