flow-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.3.1 • Public • Published

Flow SDK

Unofficial [but wonderful] heavily typed NodeJS Flow SDK to ease your integrations with Flow payment gateway.

alt text

Installation

Install flow-sdk in your project

  npm install flow-sdk

Usage/Examples

import { Flow } from "flow-sdk";

const APIKEY = process.env.FLOW_API_KEY;
const ENV = process.env.NODE_ENV;
const SECRET = process.env.FLOW_SECRET;

const flowClient = new Flow(APIKEY, ENV, SECRET);

// Generate customer payment link
const paymentProps = { yourPropsHere: fullyTyped };

const { raw, redirectionUrl } = await flowClient.payments.generatePaymentOrder(
  paymentProps
);

//Delete a discount coupon
const deletedDiscount = await flowClient.coupons.deleteDiscountCoupon(
  "couponId"
);

Authors

Readme

Keywords

none

Package Sidebar

Install

npm i flow-sdk

Weekly Downloads

1

Version

0.3.1

License

ISC

Unpacked Size

128 kB

Total Files

9

Last publish

Collaborators

  • josetomassilvaz