0.3.1 • Published 1 year 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
1 year ago
0.3.1
1 year ago
0.1.0
1 year ago
0.0.1
1 year ago
0.1.2
1 year ago
0.0.3
1 year ago
0.2.0
1 year ago
0.1.1
1 year ago
0.0.2
1 year ago
0.0.9
1 year ago
0.0.8
1 year ago
0.1.4
1 year ago
0.0.5
1 year ago
0.1.3
1 year ago
0.0.4
1 year ago
0.1.6
1 year ago
0.0.7
1 year ago
0.0.6
1 year ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.0
5 years ago