0.3.1 • Published 2 months ago
flow-sdk v0.3.1
Flow SDK
Unofficial but wonderful heavily typed NodeJS Flow SDK to ease your integrations with Flow payment gateway.
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
0.3.0
2 months ago
0.3.1
2 months ago
0.1.0
2 months ago
0.0.1
3 months ago
0.1.2
2 months ago
0.0.3
3 months ago
0.2.0
2 months ago
0.1.1
2 months ago
0.0.2
3 months ago
0.0.9
2 months ago
0.0.8
2 months ago
0.1.4
2 months ago
0.0.5
2 months ago
0.1.3
2 months ago
0.0.4
3 months ago
0.1.6
2 months ago
0.0.7
2 months ago
0.0.6
2 months ago
1.0.2
1 year ago
1.0.1
1 year ago
1.0.4
1 year ago
1.0.3
1 year ago
1.0.0
4 years ago