rpay-sdk 0.0.0-stage → 1.0.0
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/LICENSE +21 -0
- package/README.md +330 -2
- package/index.cjs +10 -0
- package/index.d.ts +1104 -0
- package/index.mjs +2 -0
- package/package.json +63 -4
- package/src/client.mjs +1811 -0
- package/src/constants.mjs +474 -0
- package/src/errors.mjs +29 -0
- package/src/http.mjs +261 -0
- package/src/index.mjs +98 -0
- package/src/matcher.mjs +117 -0
- package/src/unified.mjs +367 -0
- package/src/webhooks.mjs +519 -0
package/index.mjs
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,65 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rpay-sdk",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Official RPAY Payment & Banking SDK for Node.js & TypeScript — VietQR, 15 Vietnamese Bank Gateways (POS/V1/V2/V3), Bank Invoices, 18-Network USDT/USDC Crypto Gateway, Quantum Router Hub & HMAC-SHA256 Webhooks.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"rpay",
|
|
7
|
+
"rpay-sdk",
|
|
8
|
+
"vietqr",
|
|
9
|
+
"sepay",
|
|
10
|
+
"payment-gateway",
|
|
11
|
+
"vietnam-bank-api",
|
|
12
|
+
"vietcombank",
|
|
13
|
+
"mbbank",
|
|
14
|
+
"acb",
|
|
15
|
+
"techcombank",
|
|
16
|
+
"bidv",
|
|
17
|
+
"vietinbank",
|
|
18
|
+
"usdt",
|
|
19
|
+
"usdc",
|
|
20
|
+
"trc20",
|
|
21
|
+
"bep20",
|
|
22
|
+
"webhook",
|
|
23
|
+
"hmac-sha256"
|
|
24
|
+
],
|
|
25
|
+
"homepage": "https://rpay.vn",
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "https://github.com/rpayvn/rpay-sdk.git"
|
|
29
|
+
},
|
|
30
|
+
"license": "MIT",
|
|
31
|
+
"author": "RPAY Team <support@rpay.vn> (https://rpay.vn)",
|
|
32
|
+
"type": "module",
|
|
33
|
+
"main": "./index.cjs",
|
|
34
|
+
"module": "./index.mjs",
|
|
35
|
+
"types": "./index.d.ts",
|
|
36
|
+
"exports": {
|
|
37
|
+
".": {
|
|
38
|
+
"types": "./index.d.ts",
|
|
39
|
+
"import": "./index.mjs",
|
|
40
|
+
"require": "./index.cjs",
|
|
41
|
+
"default": "./index.mjs"
|
|
42
|
+
},
|
|
43
|
+
"./package.json": "./package.json"
|
|
44
|
+
},
|
|
45
|
+
"files": [
|
|
46
|
+
"index.mjs",
|
|
47
|
+
"index.cjs",
|
|
48
|
+
"index.d.ts",
|
|
49
|
+
"src/",
|
|
50
|
+
"README.md",
|
|
51
|
+
"LICENSE"
|
|
52
|
+
],
|
|
53
|
+
"sideEffects": false,
|
|
54
|
+
"engines": {
|
|
55
|
+
"node": ">=18.0.0"
|
|
56
|
+
},
|
|
57
|
+
"publishConfig": {
|
|
58
|
+
"access": "public"
|
|
59
|
+
},
|
|
60
|
+
"scripts": {
|
|
61
|
+
"test": "node --test test/sdk.test.mjs",
|
|
62
|
+
"typecheck": "npx --no-install tsc -p tsconfig.json --noEmit",
|
|
63
|
+
"prepublishOnly": "npm test"
|
|
64
|
+
}
|
|
65
|
+
}
|