@sk-py/upi-qr
Version:
Generate NPCI-compliant UPI QR codes for Indian digital payments. Supports payee VPA, amount, transaction note, and more.
21 lines (18 loc) • 432 B
TypeScript
export interface UPIOptions {
payeeVPA: string;
payeeName: string;
amount?: string;
transactionNote?: string;
transactionRef?: string;
purpose?: string;
mode?: string;
merchantCode?: string;
fixedAmount?: boolean;
currency?: string;
url?: string;
}
export interface UPIQRResult {
qr: string;
intent: string;
}
export function generateUPIQR(options: UPIOptions): Promise<UPIQRResult>;