@omkarbhosale/upiqr
Version:
This package helps to generate dynamic QR code using UPI ID to accept payment.
13 lines (12 loc) • 506 B
TypeScript
/**
* Adds two numbers together.
* @param UPI_ID - It stores the user's unique payment identifier, which is a string in this case.
* @param AMOUNT - It stores the amount to be transferred, which is a number in this case.
* @returns - The function returns the base64 image of the QR code for the given UPI ID and AMOUNT.
*/
type FunctionParams = {
UPI_ID: string;
AMOUNT: number;
};
declare const generateQR: ({ UPI_ID, AMOUNT, }: FunctionParams) => Promise<string>;
export default generateQR;