Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@setu/upi-deep-links
Advanced tools
@setu/upi-deep-links
is a NodeJS SDK for accessing Setu’s UPI Deeplinks APIs. The SDK is designed with ease of access in mind, with full TypeScript support.
SDK documentation →
Full documentation →
Product overview →
npm install @setu/upi-deep-links
yarn add @setu/upi-deep-links
SANDBOX
mode to test integration & PRODUCTION
for live dataimport { SetuUPIDeepLink } from "@setu/upi-deep-links";
const upidl = SetuUPIDeepLink({
schemeID: "5bf4376b-6008-43c8-8ce0-a5ea196e3091",
secret: "9975fd99-d5ed-416a-9963-5d113dc80582",
productInstanceID: "861023031961584801",
mode: "SANDBOX",
authType: "JWT",
});
const paymentLinkBody = {
amountValue: 20000, // amount in paisa
billerBillID: "918147077472", // Unique merchant platform identifier for bill
amountExactness: "EXACT",
// Optional fields
settlement: {
parts: [
{
account: {
id: "987654321",
ifsc: "KKBK0000001",
},
remarks: "EXACT sample split",
split: {
unit: "INR",
value: 10000,
},
},
],
primaryAccount: {
id: "123456789",
ifsc: "KKBK0000001",
},
},
};
const data = await upiDL.createPaymentLink(paymentLinkBody);
const data = await upiDL.checkPaymentStatus("891365293916423373");
const data = await upidl.triggerMockPayment({
amountValue: 200, // amount in rupees
platformBillID: "891365293916423373",
vpa: "nareshlocal@kaypay", // Merchant VPA
});
const data = await upiDL.expireBill("891365293916423373");
const data = await upiDL.initiateRefund({
refunds: [
{
identifier: platformBillID,
identifierType: "BILL_ID",
refundType: "FULL",
deductions: [
{
account: {
id: "123456789",
ifsc: "KKBK0000001",
},
split: {
unit: "INR",
value: 10000,
},
},
{
account: {
id: "987654321",
ifsc: "KKBK0000001",
},
split: {
unit: "INR",
value: 10000,
},
},
],
},
],
});
const data = await upiDL.getRefundBatchStatus(initiateRefundResponse.batchID);
const data = await upiDL.getRefundStatus(getRefundBatchStatusResponse.refunds[0].id);
Have a look through existing Issues and Pull Requests that you could help with. If you'd like to request a feature or report a bug, please create a GitHub Issue using the template provided.
MIT. Have at it.
FAQs
NPM package to connect to Setu's UPI Deep Link APIs
The npm package @setu/upi-deep-links receives a total of 97 weekly downloads. As such, @setu/upi-deep-links popularity was classified as not popular.
We found that @setu/upi-deep-links demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.