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.
- package/README.md +12 -12
- package/index.js +5 -1
- 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
|
|
27
|
-
|
|
28
|
-
| payeeVPA
|
|
29
|
-
| payeeName
|
|
30
|
-
| payeeMerchantCode
|
|
31
|
-
| transactionId
|
|
32
|
-
| transactionRef
|
|
33
|
-
| transactionNote
|
|
34
|
-
| amount
|
|
35
|
-
| minimumAmount
|
|
36
|
-
| currency
|
|
37
|
-
| transactionRefUrl
|
|
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
|
-
|
|
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.
|
|
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
|
|
16
|
+
"QR",
|
|
17
|
+
"CODE",
|
|
17
18
|
"Payment",
|
|
18
19
|
"Generate"
|
|
19
20
|
],
|