@katorymnd/pawapay-node-sdk 1.1.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/CHANGELOG.md +36 -0
- package/LICENSE +19 -0
- package/README.md +252 -0
- package/data/active_conf.json +739 -0
- package/data/active_conf_v1.json +740 -0
- package/data/active_conf_v2.json +2531 -0
- package/data/mno_availability.json +1117 -0
- package/data/mno_availability_v1.json +1479 -0
- package/data/mno_availability_v2.json +317 -0
- package/package.json +103 -0
- package/src/api/ApiClient.js +1 -0
- package/src/api/index.js +7 -0
- package/src/config/Config.js +137 -0
- package/src/config/index.js +7 -0
- package/src/index.js +18 -0
- package/src/utils/failureCodeHelper.js +237 -0
- package/src/utils/helpers.js +55 -0
- package/src/utils/license/index.js +16 -0
- package/src/utils/license/integrity.js +1 -0
- package/src/utils/license/protection.js +1 -0
- package/src/utils/license/server-check.js +1 -0
- package/src/utils/license/validator.js +81 -0
- package/src/utils/validator.js +317 -0
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"country": "GHA",
|
|
4
|
+
"providers": [
|
|
5
|
+
{
|
|
6
|
+
"provider": "VODAFONE_GHA",
|
|
7
|
+
"operationTypes": {
|
|
8
|
+
"DEPOSIT": "OPERATIONAL",
|
|
9
|
+
"REFUND": "OPERATIONAL",
|
|
10
|
+
"PAYOUT": "OPERATIONAL"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"provider": "AIRTELTIGO_GHA",
|
|
15
|
+
"operationTypes": {
|
|
16
|
+
"DEPOSIT": "OPERATIONAL",
|
|
17
|
+
"REFUND": "OPERATIONAL",
|
|
18
|
+
"PAYOUT": "OPERATIONAL"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"provider": "MTN_MOMO_GHA",
|
|
23
|
+
"operationTypes": {
|
|
24
|
+
"DEPOSIT": "OPERATIONAL",
|
|
25
|
+
"REFUND": "OPERATIONAL",
|
|
26
|
+
"PAYOUT": "OPERATIONAL"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"country": "CMR",
|
|
33
|
+
"providers": [
|
|
34
|
+
{
|
|
35
|
+
"provider": "MTN_MOMO_CMR",
|
|
36
|
+
"operationTypes": {
|
|
37
|
+
"DEPOSIT": "OPERATIONAL",
|
|
38
|
+
"REFUND": "OPERATIONAL",
|
|
39
|
+
"PAYOUT": "OPERATIONAL"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"provider": "ORANGE_CMR",
|
|
44
|
+
"operationTypes": {
|
|
45
|
+
"DEPOSIT": "OPERATIONAL",
|
|
46
|
+
"REFUND": "OPERATIONAL",
|
|
47
|
+
"PAYOUT": "OPERATIONAL"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"country": "BEN",
|
|
54
|
+
"providers": [
|
|
55
|
+
{
|
|
56
|
+
"provider": "MTN_MOMO_BEN",
|
|
57
|
+
"operationTypes": {
|
|
58
|
+
"DEPOSIT": "OPERATIONAL",
|
|
59
|
+
"REFUND": "OPERATIONAL",
|
|
60
|
+
"PAYOUT": "OPERATIONAL"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"provider": "MOOV_BEN",
|
|
65
|
+
"operationTypes": {
|
|
66
|
+
"DEPOSIT": "OPERATIONAL",
|
|
67
|
+
"REFUND": "OPERATIONAL",
|
|
68
|
+
"PAYOUT": "OPERATIONAL"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"country": "SLE",
|
|
75
|
+
"providers": [
|
|
76
|
+
{
|
|
77
|
+
"provider": "ORANGE_SLE",
|
|
78
|
+
"operationTypes": {
|
|
79
|
+
"DEPOSIT": "OPERATIONAL",
|
|
80
|
+
"REFUND": "OPERATIONAL",
|
|
81
|
+
"PAYOUT": "OPERATIONAL"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"country": "ZMB",
|
|
88
|
+
"providers": [
|
|
89
|
+
{
|
|
90
|
+
"provider": "ZAMTEL_ZMB",
|
|
91
|
+
"operationTypes": {
|
|
92
|
+
"DEPOSIT": "OPERATIONAL",
|
|
93
|
+
"REFUND": "OPERATIONAL",
|
|
94
|
+
"PAYOUT": "OPERATIONAL"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"provider": "MTN_MOMO_ZMB",
|
|
99
|
+
"operationTypes": {
|
|
100
|
+
"DEPOSIT": "OPERATIONAL",
|
|
101
|
+
"REFUND": "OPERATIONAL",
|
|
102
|
+
"PAYOUT": "OPERATIONAL"
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"provider": "AIRTEL_OAPI_ZMB",
|
|
107
|
+
"operationTypes": {
|
|
108
|
+
"DEPOSIT": "OPERATIONAL",
|
|
109
|
+
"REFUND": "OPERATIONAL",
|
|
110
|
+
"PAYOUT": "OPERATIONAL"
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"country": "UGA",
|
|
117
|
+
"providers": [
|
|
118
|
+
{
|
|
119
|
+
"provider": "MTN_MOMO_UGA",
|
|
120
|
+
"operationTypes": {
|
|
121
|
+
"DEPOSIT": "OPERATIONAL",
|
|
122
|
+
"REFUND": "OPERATIONAL",
|
|
123
|
+
"PAYOUT": "OPERATIONAL"
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"provider": "AIRTEL_OAPI_UGA",
|
|
128
|
+
"operationTypes": {
|
|
129
|
+
"DEPOSIT": "OPERATIONAL",
|
|
130
|
+
"REFUND": "OPERATIONAL",
|
|
131
|
+
"PAYOUT": "OPERATIONAL"
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"country": "CIV",
|
|
138
|
+
"providers": [
|
|
139
|
+
{
|
|
140
|
+
"provider": "ORANGE_CIV",
|
|
141
|
+
"operationTypes": {
|
|
142
|
+
"DEPOSIT": "OPERATIONAL",
|
|
143
|
+
"REFUND": "OPERATIONAL",
|
|
144
|
+
"PAYOUT": "OPERATIONAL"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"provider": "MTN_MOMO_CIV",
|
|
149
|
+
"operationTypes": {
|
|
150
|
+
"DEPOSIT": "OPERATIONAL",
|
|
151
|
+
"REFUND": "OPERATIONAL",
|
|
152
|
+
"PAYOUT": "OPERATIONAL"
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
]
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"country": "KEN",
|
|
159
|
+
"providers": [
|
|
160
|
+
{
|
|
161
|
+
"provider": "MPESA_KEN",
|
|
162
|
+
"operationTypes": {
|
|
163
|
+
"DEPOSIT": "OPERATIONAL",
|
|
164
|
+
"REFUND": "OPERATIONAL",
|
|
165
|
+
"PAYOUT": "OPERATIONAL"
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"country": "COD",
|
|
172
|
+
"providers": [
|
|
173
|
+
{
|
|
174
|
+
"provider": "VODACOM_MPESA_COD",
|
|
175
|
+
"operationTypes": {
|
|
176
|
+
"DEPOSIT": "OPERATIONAL",
|
|
177
|
+
"REFUND": "OPERATIONAL",
|
|
178
|
+
"PAYOUT": "OPERATIONAL"
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"provider": "AIRTEL_COD",
|
|
183
|
+
"operationTypes": {
|
|
184
|
+
"DEPOSIT": "OPERATIONAL",
|
|
185
|
+
"REFUND": "OPERATIONAL",
|
|
186
|
+
"PAYOUT": "OPERATIONAL"
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"provider": "ORANGE_COD",
|
|
191
|
+
"operationTypes": {
|
|
192
|
+
"DEPOSIT": "OPERATIONAL",
|
|
193
|
+
"REFUND": "OPERATIONAL",
|
|
194
|
+
"PAYOUT": "OPERATIONAL"
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
]
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"country": "COG",
|
|
201
|
+
"providers": [
|
|
202
|
+
{
|
|
203
|
+
"provider": "AIRTEL_COG",
|
|
204
|
+
"operationTypes": {
|
|
205
|
+
"DEPOSIT": "OPERATIONAL",
|
|
206
|
+
"REFUND": "OPERATIONAL",
|
|
207
|
+
"PAYOUT": "OPERATIONAL"
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
]
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"country": "TZA",
|
|
214
|
+
"providers": [
|
|
215
|
+
{
|
|
216
|
+
"provider": "HALOTEL_TZA",
|
|
217
|
+
"operationTypes": {
|
|
218
|
+
"DEPOSIT": "OPERATIONAL",
|
|
219
|
+
"REFUND": "OPERATIONAL",
|
|
220
|
+
"PAYOUT": "OPERATIONAL"
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"provider": "AIRTEL_TZA",
|
|
225
|
+
"operationTypes": {
|
|
226
|
+
"DEPOSIT": "OPERATIONAL",
|
|
227
|
+
"REFUND": "OPERATIONAL",
|
|
228
|
+
"PAYOUT": "OPERATIONAL"
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"provider": "TIGO_TZA",
|
|
233
|
+
"operationTypes": {
|
|
234
|
+
"DEPOSIT": "OPERATIONAL",
|
|
235
|
+
"REFUND": "OPERATIONAL",
|
|
236
|
+
"PAYOUT": "OPERATIONAL"
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
]
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"country": "BFA",
|
|
243
|
+
"providers": [
|
|
244
|
+
{
|
|
245
|
+
"provider": "MOOV_BFA",
|
|
246
|
+
"operationTypes": {
|
|
247
|
+
"DEPOSIT": "OPERATIONAL",
|
|
248
|
+
"REFUND": "OPERATIONAL",
|
|
249
|
+
"PAYOUT": "OPERATIONAL"
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
]
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"country": "RWA",
|
|
256
|
+
"providers": [
|
|
257
|
+
{
|
|
258
|
+
"provider": "AIRTEL_RWA",
|
|
259
|
+
"operationTypes": {
|
|
260
|
+
"DEPOSIT": "OPERATIONAL",
|
|
261
|
+
"REFUND": "OPERATIONAL",
|
|
262
|
+
"PAYOUT": "OPERATIONAL"
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"provider": "MTN_MOMO_RWA",
|
|
267
|
+
"operationTypes": {
|
|
268
|
+
"DEPOSIT": "OPERATIONAL",
|
|
269
|
+
"REFUND": "OPERATIONAL",
|
|
270
|
+
"PAYOUT": "OPERATIONAL"
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
]
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"country": "SEN",
|
|
277
|
+
"providers": [
|
|
278
|
+
{
|
|
279
|
+
"provider": "FREE_SEN",
|
|
280
|
+
"operationTypes": {
|
|
281
|
+
"DEPOSIT": "OPERATIONAL",
|
|
282
|
+
"REFUND": "OPERATIONAL",
|
|
283
|
+
"PAYOUT": "OPERATIONAL"
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"provider": "ORANGE_SEN",
|
|
288
|
+
"operationTypes": {
|
|
289
|
+
"DEPOSIT": "OPERATIONAL",
|
|
290
|
+
"REFUND": "OPERATIONAL",
|
|
291
|
+
"PAYOUT": "OPERATIONAL"
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
]
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"country": "MWI",
|
|
298
|
+
"providers": [
|
|
299
|
+
{
|
|
300
|
+
"provider": "TNM_MWI",
|
|
301
|
+
"operationTypes": {
|
|
302
|
+
"DEPOSIT": "OPERATIONAL",
|
|
303
|
+
"REFUND": "OPERATIONAL",
|
|
304
|
+
"PAYOUT": "OPERATIONAL"
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"provider": "AIRTEL_MWI",
|
|
309
|
+
"operationTypes": {
|
|
310
|
+
"DEPOSIT": "OPERATIONAL",
|
|
311
|
+
"REFUND": "OPERATIONAL",
|
|
312
|
+
"PAYOUT": "OPERATIONAL"
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
]
|
|
316
|
+
}
|
|
317
|
+
]
|
package/package.json
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@katorymnd/pawapay-node-sdk",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "Official Premium Node.js SDK by Katorymnd Web Solutions for PawaPay mobile money API integration.",
|
|
5
|
+
"main": "src/index.js",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": "./src/index.js"
|
|
8
|
+
},
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"access": "public"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"src",
|
|
14
|
+
"data",
|
|
15
|
+
"README.md",
|
|
16
|
+
"LICENSE",
|
|
17
|
+
"CHANGELOG.md"
|
|
18
|
+
],
|
|
19
|
+
"scripts": {
|
|
20
|
+
"test": "jest",
|
|
21
|
+
"test:unit": "jest tests/unit",
|
|
22
|
+
"test:integration": "jest tests/integration",
|
|
23
|
+
"test:coverage": "jest --coverage",
|
|
24
|
+
"dev": "nodemon --watch example --watch src --ext js,ejs,json --legacy-watch example/server.js",
|
|
25
|
+
"start": "node example/server.js",
|
|
26
|
+
"lint": "eslint src/**/*.js example/**/*.js tests/**/*.js",
|
|
27
|
+
"lint:fix": "eslint src/**/*.js example/**/*.js tests/**/*.js --fix",
|
|
28
|
+
"clean": "pnpm store prune",
|
|
29
|
+
"update": "pnpm update --latest",
|
|
30
|
+
"dev:vite": "vite",
|
|
31
|
+
"build": "pnpm check-master-keys && vite build",
|
|
32
|
+
"build:secure": "pnpm check-master-keys && node scripts/obfuscate.js",
|
|
33
|
+
"publish:secure": "pnpm build:secure && cd dist && npm publish --access public",
|
|
34
|
+
"preview": "vite preview",
|
|
35
|
+
"format": "prettier --write .",
|
|
36
|
+
"format:check": "prettier --check .",
|
|
37
|
+
"check-master-keys": "node scripts/checkMasterKeys.js"
|
|
38
|
+
},
|
|
39
|
+
"keywords": [
|
|
40
|
+
"katorymnd",
|
|
41
|
+
"pawapay",
|
|
42
|
+
"mobile-money",
|
|
43
|
+
"payments",
|
|
44
|
+
"africa",
|
|
45
|
+
"fintech",
|
|
46
|
+
"sdk",
|
|
47
|
+
"nodejs",
|
|
48
|
+
"premium"
|
|
49
|
+
],
|
|
50
|
+
"author": {
|
|
51
|
+
"name": "Katorymnd Web Solutions",
|
|
52
|
+
"email": "support@katorymnd.com",
|
|
53
|
+
"url": "https://katorymnd.com"
|
|
54
|
+
},
|
|
55
|
+
"maintainers": [
|
|
56
|
+
{
|
|
57
|
+
"name": "Kato Raymond",
|
|
58
|
+
"email": "support@katorymnd.com"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "Kato Raymond",
|
|
62
|
+
"email": "katorymnd@gmail.com"
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"license": "UNLICENSED",
|
|
66
|
+
"dependencies": {
|
|
67
|
+
"axios": "^1.12.2",
|
|
68
|
+
"dotenv": "^16.6.1",
|
|
69
|
+
"joi": "^18.0.1",
|
|
70
|
+
"libphonenumber-js": "^1.12.24",
|
|
71
|
+
"winston": "^3.18.3"
|
|
72
|
+
},
|
|
73
|
+
"devDependencies": {
|
|
74
|
+
"bootstrap": "^5.3.3",
|
|
75
|
+
"connect-livereload": "^0.6.1",
|
|
76
|
+
"ejs": "^3.1.10",
|
|
77
|
+
"eslint": "^8.57.1",
|
|
78
|
+
"eslint-config-prettier": "^10.1.8",
|
|
79
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
80
|
+
"express": "^4.21.2",
|
|
81
|
+
"javascript-obfuscator": "^4.1.1",
|
|
82
|
+
"jest": "^29.7.0",
|
|
83
|
+
"livereload": "^0.10.3",
|
|
84
|
+
"nodemon": "^3.1.10",
|
|
85
|
+
"prettier": "^3.6.2",
|
|
86
|
+
"supertest": "^6.3.4",
|
|
87
|
+
"vite": "^7.1.12",
|
|
88
|
+
"vite-plugin-ejs": "^1.7.0"
|
|
89
|
+
},
|
|
90
|
+
"engines": {
|
|
91
|
+
"node": ">=14.0.0",
|
|
92
|
+
"pnpm": ">=8.0.0"
|
|
93
|
+
},
|
|
94
|
+
"packageManager": "pnpm@10.19.0",
|
|
95
|
+
"repository": {
|
|
96
|
+
"type": "git",
|
|
97
|
+
"url": "https://github.com/katorymnd/pawapay-node-sdk.git"
|
|
98
|
+
},
|
|
99
|
+
"homepage": "https://katorymnd.com/pawapay-payment-sdk/nodejs",
|
|
100
|
+
"bugs": {
|
|
101
|
+
"url": "https://github.com/katorymnd/pawapay-node-sdk/issues"
|
|
102
|
+
}
|
|
103
|
+
}
|