upiqr 1.0.26 → 1.0.28

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.
Files changed (3) hide show
  1. package/README.md +12 -12
  2. package/index.js +5 -1
  3. package/package.json +3 -2
package/README.md CHANGED
@@ -23,18 +23,18 @@ This package will work on client and server.
23
23
 
24
24
  ### Fields detail:
25
25
 
26
- | Fields | Description | Default | Required |
27
- |---------------------|------------------------------------------------------------|----------|-----------|
28
- | payeeVPA | VPA address from UPI payment account | | Mandatory | pa
29
- | payeeName | Merchant Name registered in UPI payment account | | Mandatory | pn
30
- | payeeMerchantCode | Merchant Code from UPI payment account | | Optional | me
31
- | transactionId | Unique transaction id for merchant's reference | | Optional | tid
32
- | transactionRef | Unique transaction id for merchant's reference | | Optional | tr
33
- | transactionNote | Note that will displayed in payment app during transaction | | Optional | tn
34
- | amount | Amount | | Optional | am
35
- | minimumAmount | Minimum amount that has to be transferred | | Optional | mam
36
- | currency | Currency of amount | INR | Optional | cu
37
- | transactionRefUrl | URL for the order | | Optional | url
26
+ | Fields | Description | Required |
27
+ |-------------------|---------------------------------------------------|-----------|
28
+ | payeeVPA | VPA address from UPI payment account | Mandatory |
29
+ | payeeName | Merchant Name registered in UPI payment account | Mandatory |
30
+ | payeeMerchantCode | Merchant Code from UPI payment account | Optional |
31
+ | transactionId | Unique transaction id for merchant's reference | Optional |
32
+ | transactionRef | Unique transaction id for merchant's reference | Optional |
33
+ | transactionNote | Note will appear in payment app while transaction | Optional |
34
+ | amount | Amount | Optional |
35
+ | minimumAmount | Minimum amount that has to be transferred | Optional |
36
+ | currency | Currency of amount (default: INR) | Optional |
37
+ | transactionRefUrl | URL for the order | Optional |
38
38
 
39
39
 
40
40
  In table, fields requirement column is based on static QR, For dynamic QR you need to change more fields along with `payeeVPA` and `payeeName`.
package/index.js CHANGED
@@ -15,7 +15,7 @@ function buildUrl(params) {
15
15
  return url
16
16
  }
17
17
 
18
- export default function upiqr ({
18
+ function upiqr ({
19
19
  payeeVPA: pa,
20
20
  payeeName: pn,
21
21
  payeeMerchantCode: me,
@@ -51,4 +51,8 @@ export default function upiqr ({
51
51
  }
52
52
  )
53
53
  })
54
+ }
55
+
56
+ module.exports = {
57
+ upiqr
54
58
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "upiqr",
3
- "version": "1.0.26",
3
+ "version": "1.0.28",
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": "index.js",
6
6
  "scripts": {
@@ -13,7 +13,8 @@
13
13
  "keywords": [
14
14
  "UPI",
15
15
  "NPCI",
16
- "QR CODE",
16
+ "QR",
17
+ "CODE",
17
18
  "Payment",
18
19
  "Generate"
19
20
  ],