@vjymisal0/upi-link
v0.1.5
Published
Create and parse UPI payment deep links with zero runtime dependencies.
Maintainers
Readme
@vjymisal0/upi-link
Module format
This package supports both ESM and CommonJS. Use import or require() depending on your project.
Create and parse UPI payment deep links with zero runtime dependencies.
Install
npm install @vjymisal0/upi-linkUsage
import { createUpiLink, parseUpiLink } from "@vjymisal0/upi-link";
const link = createUpiLink({
pa: "merchant@upi",
pn: "Example Store",
am: 499,
tn: "Order 123"
});
console.log(link);
// upi://pay?pa=merchant%40upi&cu=INR&pn=Example+Store&am=499&tn=Order+123
console.log(parseUpiLink(link));isValidVpa checks syntax only. It cannot confirm that a VPA exists or that a payment will succeed.
License
MIT
