This package has been deprecated

Author message:

Please go to https://www.npmjs.com/package/@setu/upi-deep-links for updated SDK

@setuapis/upi-deep-link

1.0.1 • Public • Published

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 @setuapis/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,
};

let data = await setu.createPaymentLink(paymentLinkBody);

Check status of UPI payment link

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

Readme

Keywords

none

Package Sidebar

Install

npm i @setuapis/upi-deep-link

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

7.58 kB

Total Files

9

Last publish

Collaborators

  • nithinnn
  • setuzens