upiqr
Version:
Generate NPCI's UPI QR code along with UPI intent link, By using it any payment is possible from UPI enabled apps.
3 lines (2 loc) • 439 B
TypeScript
export type ImageType='png'|'jpeg'|'webp';export type Base64<imageType extends ImageType>=`data:image/${imageType};base64,${string}`;export interface UPIIntentParams{payeeVPA:string;payeeName:string;payeeMerchantCode?:string;transactionId?:string;transactionRef?:string;transactionNote?:string;amount?:string;minimumAmount?:string;currency?:string;transactionRefUrl?:string;}
export interface QRResult{qr:Base64<ImageType>;intent:string;}