upiqr 1.0.36 → 1.0.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -23,4 +23,4 @@ declare function validateParams({ pa, pn }: {
23
23
  pn: string | undefined;
24
24
  }): string;
25
25
  declare function buildUrl(this: string, params: object): string;
26
- declare function upiqr({ payeeVPA: pa, payeeName: pn, payeeMerchantCode: me, transactionId: tid, transactionRef: tr, transactionNote: tn, amount: am, minimumAmount: mam, currency: cu, transactionRefUrl, }: UPIIntentParams): Promise<UPIIntentResult | Error>;
26
+ declare function upiqr({ payeeVPA: pa, payeeName: pn, payeeMerchantCode: me, transactionId: tid, transactionRef: tr, transactionNote: tn, amount: am, minimumAmount: mam, currency: cu, transactionRefUrl: url, }: UPIIntentParams): Promise<UPIIntentResult | Error>;
package/dist/index.js CHANGED
@@ -38,6 +38,7 @@ function upiqr({ payeeVPA: pa, payeeName: pn, payeeMerchantCode: me, transaction
38
38
  intent = buildUrl.call(intent, { tr }); // tr: transactionRef upto 35 digits
39
39
  if (tn)
40
40
  intent = buildUrl.call(intent, { tn });
41
+ console.log(url);
41
42
  intent = intent.substring(0, intent.length - 1);
42
43
  QRCode.toDataURL(intent, (err, qr) => {
43
44
  if (err)
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "upiqr",
3
- "version": "1.0.36",
3
+ "version": "1.0.37",
4
4
  "description": "Generate NPCI's UPI QR code along with UPI intent link, By using it any payment is possible from UPI enabled apps.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
+ "type": "module",
7
8
  "files": [
8
9
  "dist",
9
10
  "LICENSE",