1.0.0 • Published 4 years ago

@setu/upi-deep-link v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

Setu

This package helps you work with Setu's deeplink APIs.

The following functions are supported

  1. Generate UPI payment link
  2. Check status of UPI payment link

Installation

npm install @setu/upi-deep-link

Configuration

const SetuUPIDeepLink = require("@setuapis/upi-deep-link")

let setu = new SetuUPIDeepLink({
    schemeId: "YOUR SCHEME ID",
    jwtSecret: "YOUR JWT SECRET",
    setuProductInstanceId: "YOUR PRODUCT INSTANCE ID",
});

Usage

Generate UPI payment link

let paymentLinkBody = {
    expiresInDays: Number,
    amountValue: Number,
    amountExactness: String,
    billerBillID: String,
    payeeName: String,
    settlementObject: Object, // Optional
    validationRulesObject: Object // Optional
};

let data = await setu.createPaymentLink(paymentLinkBody);

Check status of UPI payment link

let data = await setu.checkPaymentStatus("platformBillID");
1.0.0

4 years ago