@katorymnd/pawapay-node-sdk 2.6.1 โ 2.8.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 +30 -16
- package/LICENSE +13 -7
- package/README.md +84 -200
- package/package.json +24 -9
- package/scripts/install-sdk.js +123 -1
- package/src/api/ApiClient.js +373 -1
- package/src/config/Config.js +30 -72
- package/src/core/index.js +100 -0
- package/src/core/katorymnd_pawapay_core.darwin-arm64.node +0 -0
- package/src/core/katorymnd_pawapay_core.darwin-x64.node +0 -0
- package/src/core/katorymnd_pawapay_core.linux-arm64-gnu.node +0 -0
- package/src/core/katorymnd_pawapay_core.linux-x64-gnu.node +0 -0
- package/src/core/katorymnd_pawapay_core.linux-x64-musl.node +0 -0
- package/src/core/katorymnd_pawapay_core.node +0 -0
- package/src/core/katorymnd_pawapay_core.win32-arm64-msvc.node +0 -0
- package/src/core/katorymnd_pawapay_core.win32-x64-msvc.node +0 -0
- package/src/utils/license/integrity.js +170 -1
- package/src/utils/license/protection.js +275 -1
- package/src/utils/license/server-check.js +326 -1
- package/src/utils/license/validator.js +42 -1
- package/src/utils/validator.js +2 -25
- package/src/utils/vm/bytecode-encoder.js +205 -1
- package/src/utils/vm/degradation-manager.js +146 -1
- package/src/utils/vm/interpreter.js +179 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,32 +5,46 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
-
## [
|
|
8
|
+
## [2.8.0] - 2026-04-06
|
|
9
9
|
|
|
10
10
|
### Added
|
|
11
|
-
- **
|
|
12
|
-
- **
|
|
13
|
-
- **
|
|
14
|
-
- **
|
|
15
|
-
- **
|
|
11
|
+
- **Native Vault Core:** Migrated core security, licensing, and payload logic to compiled Rust binaries (`.node`).
|
|
12
|
+
- **PawaPay API V2:** Full surgical integration of V2 endpoints (Deposits, Payouts, Refunds) alongside V1.
|
|
13
|
+
- **Cross-Platform Support:** Added pre-compiled native support for Windows (x64), Linux (x64/arm64, glibc/musl), and macOS (Intel/Silicon).
|
|
14
|
+
- **Surgical Staging:** Implemented a new `build-secure.js` pipeline that filters development backups and proprietary source files before publication.
|
|
15
|
+
- **Enhanced Test Suite:** Added comprehensive Jest integration and unit tests covering the Native Vault and API logic.
|
|
16
16
|
|
|
17
17
|
### Changed
|
|
18
|
-
- **
|
|
19
|
-
- **
|
|
20
|
-
- **
|
|
18
|
+
- **Security Strategy:** Replaced legacy JavaScript obfuscation with Native Machine Code protection for industry-leading IP security.
|
|
19
|
+
- **Configuration Logic:** Updated `Config.js` to default to `sandbox` environment automatically if omitted.
|
|
20
|
+
- **Documentation:** Rebranded the SDK as a high-performance Native Core library.
|
|
21
|
+
- **Environment Handling:** Cleaned up `.env.example` to follow standard API provider patterns.
|
|
21
22
|
|
|
22
23
|
### Fixed
|
|
23
|
-
- Fixed
|
|
24
|
-
-
|
|
24
|
+
- **Jest Collisions:** Fixed a "Haste module naming collision" by implementing `modulePathIgnorePatterns` for the `/dist` folder.
|
|
25
|
+
- **VM Stability:** Resolved an issue where background timers in the VM prevented Jest from exiting cleanly.
|
|
26
|
+
- **URL Normalization:** Improved API URL normalization via native Rust string processing.
|
|
25
27
|
|
|
26
28
|
### Removed
|
|
27
|
-
- Removed
|
|
28
|
-
- Removed
|
|
29
|
+
- **Obfuscation:** Removed all `javascript-obfuscator` dependencies and logic.
|
|
30
|
+
- **Legacy Artifacts:** Removed `opcodes.json`, `bytecode.bin`, and all `.secure.js` / `.unsecure.js` development files from the production distribution.
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## [1.1.0] - 2025-12-22
|
|
35
|
+
|
|
36
|
+
### Added
|
|
37
|
+
- **Security Layer:** Implemented initial JavaScript protection for core API and License logic.
|
|
38
|
+
- **Integrity Checker:** Added background process to detect file modifications.
|
|
39
|
+
- **Installation Imprint:** Implemented unique installation "Soul" (TOFU) via the `.pawapay-imprint` system.
|
|
40
|
+
|
|
41
|
+
### Changed
|
|
42
|
+
- **Build Pipeline:** Moved production builds to a `/dist` folder strategy.
|
|
43
|
+
- **License Logic:** Strict domain enforcement via `PAWAPAY_SDK_LICENSE_DOMAIN`.
|
|
29
44
|
|
|
30
45
|
---
|
|
31
46
|
|
|
32
47
|
## [1.0.0] - 2025-11-15
|
|
33
|
-
- Initial release of the
|
|
48
|
+
- Initial release of the pawaPay Node.js SDK.
|
|
34
49
|
- Core API client for mobile money deposits and payments.
|
|
35
|
-
- Basic error handling and logging.
|
|
36
|
-
|
|
50
|
+
- Basic error handling and logging.
|
package/LICENSE
CHANGED
|
@@ -1,19 +1,25 @@
|
|
|
1
1
|
PROPRIETARY SOFTWARE LICENSE AGREEMENT
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2026 Katorymnd Web Solutions. All Rights Reserved.
|
|
4
4
|
|
|
5
5
|
NOTICE: This software is the proprietary property of Katorymnd Web Solutions. The intellectual property contained herein is protected by copyright and other intellectual property laws.
|
|
6
6
|
|
|
7
7
|
1. LICENSE GRANT
|
|
8
|
-
Subject to the terms of this Agreement and payment of the applicable fees, Katorymnd Web Solutions grants you a limited, non-exclusive, non-transferable, revocable license to use the
|
|
8
|
+
Subject to the terms of this Agreement and payment of the applicable fees, Katorymnd Web Solutions grants you a limited, non-exclusive, non-transferable, revocable license to use the pawaPay Node SDK ("Software"). This license is granted for use on a **single authorized domain** as specified during the purchase and activation process.
|
|
9
9
|
|
|
10
10
|
2. RESTRICTIONS
|
|
11
11
|
You may NOT:
|
|
12
|
-
|
|
13
12
|
* Distribute, sub-license, rent, lease, or lend the Software to any third party.
|
|
14
|
-
* Make the Software available to the public in any form (including
|
|
15
|
-
* Reverse engineer, decompile,
|
|
13
|
+
* Make the Software available to the public in any form (including but not limited to public GitHub/GitLab repositories).
|
|
14
|
+
* Reverse engineer, decompile, disassemble, or attempt to derive the source code from the Native Core binaries (.node files) included in the Software.
|
|
15
|
+
* Bypass, modify, or defeat any license validation or integrity check mechanisms within the Software.
|
|
16
16
|
* Remove or alter any copyright notices or proprietary markings on the Software.
|
|
17
17
|
|
|
18
|
-
3.
|
|
19
|
-
|
|
18
|
+
3. INTELLECTUAL PROPERTY
|
|
19
|
+
Katorymnd Web Solutions retains all rights, title, and interest in and to the Software, including all native compiled binaries and JavaScript wrappers. This Agreement does not grant you any ownership rights to the Software.
|
|
20
|
+
|
|
21
|
+
4. DISCLAIMER OF WARRANTIES
|
|
22
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND. KATORYMND WEB SOLUTIONS DISCLAIMS ALL WARRANTIES, WHETHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
|
23
|
+
|
|
24
|
+
5. TERMINATION
|
|
25
|
+
This license is effective until terminated. Your rights under this license will terminate automatically without notice if you fail to comply with any term(s) of this Agreement, including but not limited to unauthorized domain reuse or tampering with the native core.
|
package/README.md
CHANGED
|
@@ -1,252 +1,136 @@
|
|
|
1
|
-
# pawaPay Node.js SDK
|
|
2
|
-
|
|
3
|
-
A professional, commercial Node.js SDK for integrating with the **pawaPay API**.
|
|
4
|
-
This SDK enables seamless payment processing with **mobile money deposits, refunds, payouts**, and **real-time transaction verification**, designed for production-grade systems.
|
|
5
|
-
|
|
6
|
-
> **Commercial Software**
|
|
7
|
-
> This SDK is a premium product. A valid license key is required to operate it in production environments.
|
|
8
|
-
|
|
9
|
-
> **Versioning Note**
|
|
10
|
-
> V1 is the default main codebase. V2 has been surgically integrated and can run alongside V1, selectable through configuration without breaking existing implementations.
|
|
11
|
-
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
## Folder Structure
|
|
15
|
-
|
|
16
|
-
```
|
|
17
|
-
example/
|
|
18
|
-
data/
|
|
19
|
-
src/
|
|
20
|
-
tests/
|
|
21
|
-
logs/
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
* **example**
|
|
25
|
-
Contains live and demo samples for each major workflow, including deposits, refunds, payouts, and configuration fetching. Both frontend and backend usage patterns are demonstrated.
|
|
26
|
-
|
|
27
|
-
* **data**
|
|
28
|
-
Stores generated and cached configuration files such as `mno_availability` and `active_conf` JSON files for both V1 and V2.
|
|
29
|
-

|
|
30
|
-
* **src**
|
|
31
|
-
Core SDK source code and internal architecture.
|
|
32
|
-
|
|
33
|
-
* **logs**
|
|
34
|
-
Cotains logs files for any request - failed or successful.
|
|
35
|
-
|
|
36
|
-
* **tests**
|
|
37
|
-
Automated test suites using Mocha or Jest, covering SDK logic and transaction workflows.
|
|
38
|
-
|
|
39
|
-
---
|
|
40
|
-
|
|
41
|
-
## Available Features
|
|
42
|
-
|
|
43
|
-
The pawaPay Node.js SDK provides a comprehensive, production-ready feature set with real-time validation at every stage.
|
|
44
|
-
|
|
45
|
-
### Mobile Money Deposit Request
|
|
46
|
-
|
|
47
|
-

|
|
48
|
-
|
|
49
|
-
Initiate deposit requests to mobile money accounts with built-in real-time transaction verification. Each deposit is validated immediately, ensuring accurate and current status reporting.
|
|
50
|
-
|
|
51
|
-
---
|
|
52
|
-
|
|
53
|
-
### Mobile Money Refund Request
|
|
54
|
-
|
|
55
|
-

|
|
56
|
-
|
|
57
|
-
Process refunds for completed deposits using the original `depositId`. Refund availability depends on your pawaPay merchant configuration, and all refund requests are verified in real time.
|
|
58
|
-
|
|
59
|
-
---
|
|
60
|
-
|
|
61
|
-
### Mobile Money Payout Request
|
|
62
|
-
|
|
63
|
-

|
|
64
|
-
|
|
65
|
-
Execute payouts to single or multiple recipients within one request. This feature is optimized for bulk payments and includes real-time payout status tracking.
|
|
66
|
-
|
|
67
|
-
---
|
|
68
|
-
|
|
69
|
-
### Real-Time Transaction Verification
|
|
70
|
-
|
|
71
|
-
All operations, deposits, refunds, and payouts, are verified in real time. This ensures reliable, up-to-date transaction states without polling delays or stale responses.
|
|
72
|
-
|
|
73
|
-
---
|
|
74
|
-
|
|
75
|
-
### Country-Specific Payment Configuration
|
|
76
|
-
|
|
77
|
-
The SDK dynamically fetches supported Mobile Network Operators (MNOs) based on the country associated with your merchant account. This prevents attempts against inactive or unsupported operators.
|
|
78
|
-
|
|
79
|
-
---
|
|
80
|
-
|
|
81
|
-
### Mobile Network Operator (MNO) Status Checks
|
|
82
1
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
---
|
|
86
|
-
|
|
87
|
-
### Owner Name Notification
|
|
88
|
-
|
|
89
|
-

|
|
2
|
+
# pawaPay Node.js SDK
|
|
90
3
|
|
|
91
|
-
|
|
4
|
+
A professional, high-performance Node.js SDK for integrating with the **pawaPay API**.
|
|
5
|
+
This SDK provides a streamlined interface for **mobile money deposits, refunds, payouts**, and **real-time transaction verification**, built for production-grade fintech applications.
|
|
92
6
|
|
|
93
7
|
---
|
|
94
8
|
|
|
95
|
-
|
|
96
|
-

|
|
97
|
-
Use the hosted payment widget to collect payments through a secure redirect flow.
|
|
9
|
+
## ๐๏ธ Architecture
|
|
98
10
|
|
|
99
|
-
|
|
100
|
-
2. pawaPay returns a `redirectUrl`.
|
|
101
|
-
3. The customer completes payment on the hosted page.
|
|
102
|
-
4. Upon success, the customer is redirected back to your application:
|
|
11
|
+
The SDK is designed for maximum reliability and speed. It utilizes a **Native Core Integration** to handle complex cryptographic operations and data normalization, ensuring that your payment processing is both fast and secure across all supported environments.
|
|
103
12
|
|
|
104
|
-
|
|
105
|
-
|
|
13
|
+
### Folder Structure
|
|
14
|
+
```text
|
|
15
|
+
example/ # Implementation samples and workflows
|
|
16
|
+
data/ # Localized MNO & API configurations
|
|
17
|
+
src/ # SDK Source code
|
|
18
|
+
โโโ api/ # API Request wrappers
|
|
19
|
+
โโโ core/ # Native runtime binaries
|
|
20
|
+
โโโ utils/ # Internal helper logic
|
|
21
|
+
tests/ # Automated test suites
|
|
22
|
+
scripts/ # SDK management utilities
|
|
106
23
|
```
|
|
107
24
|
|
|
108
|
-
You may then activate services, store customer details, or trigger post-payment workflows as required.
|
|
109
|
-
|
|
110
25
|
---
|
|
111
26
|
|
|
112
|
-
|
|
27
|
+
## ๐ Key Features
|
|
113
28
|
|
|
114
|
-
|
|
29
|
+
| Feature | Description |
|
|
30
|
+
| :--- | :--- |
|
|
31
|
+
| **Native Performance** | Core logic is executed via optimized native bindings. |
|
|
32
|
+
| **Hybrid V1/V2 Support** | Toggle between pawaPay API V1 and V2 within the same project. |
|
|
33
|
+
| **MNO Intelligence** | Automatic network availability checks before payment initiation. |
|
|
34
|
+
| **Enterprise Logging** | Structured logging for successful and failed transaction flows. |
|
|
35
|
+
| **Platform Optimized** | Pre-compiled for Windows, Linux, and macOS (Intel & Apple Silicon). |
|
|
115
36
|
|
|
116
37
|
---
|
|
117
38
|
|
|
118
|
-
##
|
|
119
|
-
|
|
120
|
-
* [Overview](#overview)
|
|
121
|
-
* [Licensing & Pricing](#licensing--pricing)
|
|
122
|
-
* [Installation](#installation)
|
|
123
|
-
* [Configuration (.env)](#configuration-env)
|
|
124
|
-
* [Usage](#usage)
|
|
125
|
-
|
|
126
|
-
* [Initializing the SDK](#initializing-the-sdk)
|
|
127
|
-
* [MNO Configuration & Version Switching](#mno-configuration--version-switching)
|
|
128
|
-
|
|
129
|
-
* [Support](#support)
|
|
130
|
-
|
|
131
|
-
---
|
|
132
|
-
|
|
133
|
-
## Overview
|
|
134
|
-
|
|
135
|
-
The pawaPay Node.js SDK integrates seamlessly with Node.js frameworks such as **Express**, **NestJS**, and **Fastify**.
|
|
136
|
-
It abstracts pawaPayโs payment APIs into a clean, predictable interface focused on correctness, security, and operational clarity.
|
|
137
|
-
|
|
138
|
-
---
|
|
139
|
-
|
|
140
|
-
## Licensing & Pricing
|
|
141
|
-
|
|
142
|
-
This is a **paid commercial SDK**.
|
|
143
|
-
|
|
144
|
-
* **License Model:** One-time payment
|
|
145
|
-
* **Validity:** Lifetime license
|
|
146
|
-
* **Scope:** One licensed domain per key
|
|
147
|
-
|
|
148
|
-
To purchase a license and obtain your credentials:
|
|
149
|
-
|
|
150
|
-
๐ **[https://katorymnd.com/pawapay-payment-sdk/nodejs](https://katorymnd.com/pawapay-payment-sdk/nodejs)**
|
|
39
|
+
## ๐ฆ Installation
|
|
151
40
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
* `KATORYMND_PAWAPAY_SDK_LICENSE_KEY`
|
|
155
|
-
* `PAWAPAY_SDK_LICENSE_SECRET`
|
|
156
|
-
|
|
157
|
-
---
|
|
158
|
-
|
|
159
|
-
## Installation
|
|
41
|
+
The SDK is cross-platform and will automatically utilize the correct native components for your specific server architecture.
|
|
160
42
|
|
|
161
43
|
```bash
|
|
162
44
|
npm install @katorymnd/pawapay-node-sdk
|
|
163
45
|
# or
|
|
164
|
-
|
|
46
|
+
pnpm add @katorymnd/pawapay-node-sdk
|
|
165
47
|
```
|
|
166
48
|
|
|
167
49
|
---
|
|
168
50
|
|
|
169
|
-
## Configuration (.env)
|
|
51
|
+
## ๐ ๏ธ Configuration (.env)
|
|
170
52
|
|
|
171
|
-
|
|
53
|
+
Set up your project environment with your pawaPay credentials and SDK access keys.
|
|
172
54
|
|
|
173
55
|
```bash
|
|
174
|
-
#
|
|
175
|
-
#
|
|
176
|
-
# ===============================
|
|
177
|
-
|
|
56
|
+
# .env.example
|
|
57
|
+
# Sandbox API token (for testing environment)
|
|
178
58
|
PAWAPAY_SANDBOX_API_TOKEN=your_sandbox_api_token_here
|
|
59
|
+
|
|
60
|
+
# Production API token (for live environment)
|
|
179
61
|
PAWAPAY_PRODUCTION_API_TOKEN=your_production_api_token_here
|
|
180
62
|
|
|
181
|
-
#
|
|
182
|
-
|
|
183
|
-
|
|
63
|
+
# License key used by the Katorymnd PawaPay SDK
|
|
64
|
+
KATORYMND_PAWAPAY_SDK_LICENSE_KEY=your_license_key_here
|
|
65
|
+
|
|
66
|
+
# License domain (used for license validation)
|
|
67
|
+
PAWAPAY_SDK_LICENSE_DOMAIN=your_license_domain_here
|
|
184
68
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
PAWAPAY_SDK_LICENSE_SECRET=your_sdk_license_secret_here
|
|
69
|
+
# License secret (used for license validation)
|
|
70
|
+
PAWAPAY_SDK_LICENSE_SECRET=your_license_secret_here
|
|
188
71
|
```
|
|
189
72
|
|
|
190
73
|
---
|
|
191
74
|
|
|
192
|
-
## Usage
|
|
75
|
+
## ๐ป Usage
|
|
193
76
|
|
|
194
|
-
|
|
77
|
+
To begin, initialize the `ApiClient`. The SDK will perform a quick environmental check and prepare the native core for processing.
|
|
195
78
|
|
|
196
|
-
|
|
79
|
+
```javascript
|
|
80
|
+
const { ApiClient } = require('@katorymnd/pawapay-node-sdk');
|
|
197
81
|
|
|
198
|
-
|
|
199
|
-
|
|
82
|
+
const client = new ApiClient({
|
|
83
|
+
apiToken: process.env.PAWAPAY_SANDBOX_API_TOKEN,
|
|
84
|
+
environment: 'sandbox',
|
|
85
|
+
licenseKey: process.env.KATORYMND_PAWAPAY_SDK_LICENSE_KEY,
|
|
86
|
+
apiVersion: 'v2',
|
|
87
|
+
sslVerify: false
|
|
88
|
+
});
|
|
200
89
|
```
|
|
201
90
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
91
|
+
### ๐ค Initiating a Deposit
|
|
92
|
+
```javascript
|
|
93
|
+
async function handlePayment() {
|
|
94
|
+
try {
|
|
95
|
+
const response = await client.initiateDepositV2(
|
|
96
|
+
"unique-order-id-123",
|
|
97
|
+
"5000",
|
|
98
|
+
"UGX",
|
|
99
|
+
"256783456789",
|
|
100
|
+
"MTN_MOMO_UGA",
|
|
101
|
+
"Payment for Order #101"
|
|
102
|
+
);
|
|
103
|
+
|
|
104
|
+
console.log("Response:", response.response);
|
|
105
|
+
} catch (error) {
|
|
106
|
+
console.error("API Error:", error.message);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
```
|
|
209
110
|
|
|
210
111
|
---
|
|
211
112
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
The SDK ships with default configuration templates. However, you are expected to maintain **up-to-date MNO and active configuration files**.
|
|
215
|
-
|
|
216
|
-
* Use the example script:
|
|
217
|
-
|
|
218
|
-
```
|
|
219
|
-
example/fetchMnoConf.js
|
|
220
|
-
```
|
|
221
|
-
* This script fetches and generates:
|
|
222
|
-
|
|
223
|
-
* `active_conf_v1.json`
|
|
224
|
-
* `mno_availability_v1.json`
|
|
225
|
-
* `active_conf_v2.json`
|
|
226
|
-
* `mno_availability_v2.json`
|
|
113
|
+
## ๐ Platform Support
|
|
227
114
|
|
|
228
|
-
|
|
115
|
+
The SDK includes high-performance native core support for:
|
|
116
|
+
* **Windows:** x64 (msvc)
|
|
117
|
+
* **Linux:** x64, arm64 (including `musl` for Docker/Alpine)
|
|
118
|
+
* **macOS:** x64 (Intel), arm64 (Apple Silicon)
|
|
229
119
|
|
|
230
|
-
|
|
231
|
-
> You should configure a cron job to periodically refresh these files to ensure MNO availability and configuration data remain current.
|
|
232
|
-
|
|
233
|
-
This approach keeps runtime fast, predictable, and independent of unnecessary API calls.
|
|
234
|
-
|
|
235
|
-
## Support
|
|
120
|
+
---
|
|
236
121
|
|
|
237
|
-
|
|
122
|
+
## ๐ Licensing
|
|
238
123
|
|
|
239
|
-
|
|
124
|
+
This is a commercial product. The SDK is licensed per domain and requires a valid key for operation.
|
|
240
125
|
|
|
241
|
-
|
|
242
|
-
* **Priority Support:** Included with Professional (6 months) and Agency (1 year) licenses
|
|
243
|
-
* **Urgent Assistance:** Available as an add-on for production outages
|
|
126
|
+
๐ **Get a License:** [katorymnd.com/pawapay-payment-sdk](https://katorymnd.com/pawapay-payment-sdk/nodejs)
|
|
244
127
|
|
|
245
|
-
|
|
246
|
-
For licensed users experiencing production issues or needing implementation guidance.
|
|
128
|
+
---
|
|
247
129
|
|
|
248
|
-
|
|
249
|
-
_Backup:_ [katorymnd@gmail.com](mailto:katorymnd@gmail.com)
|
|
130
|
+
## ๐ Support
|
|
250
131
|
|
|
132
|
+
* **Documentation:** [Official Guides](https://katorymnd.com/pawapay-payment-sdk/nodejs)
|
|
133
|
+
* **Email Support:** [support@katorymnd.com](mailto:support@katorymnd.com)
|
|
134
|
+
* **Gmail Support:** [katorymnd@gmail.com](mailto:katorymnd@gmail.com)
|
|
251
135
|
|
|
252
|
-
|
|
136
|
+
---
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@katorymnd/pawapay-node-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0",
|
|
4
4
|
"description": "Official Premium Node.js SDK by Katorymnd Web Solutions for PawaPay mobile money API integration.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -35,13 +35,18 @@
|
|
|
35
35
|
"format:check": "prettier --check .",
|
|
36
36
|
"check-master-keys": "node scripts/checkMasterKeys.js",
|
|
37
37
|
"build": "pnpm check-master-keys && vite build",
|
|
38
|
-
"build:
|
|
39
|
-
"
|
|
40
|
-
"build:
|
|
41
|
-
"
|
|
42
|
-
"test:install": "pnpm build:secure && cd dist && node scripts/install-sdk.js && echo 'โ
Test Complete: Wizard ran successfully'",
|
|
38
|
+
"build:core": "napi build --release --no-js --dts false --manifest-path core-rust/Cargo.toml --output-dir ./src/core",
|
|
39
|
+
"build:secure": "pnpm check-master-keys && node scripts/build-secure.js",
|
|
40
|
+
"build:full": "pnpm clean:dist && pnpm build:secure",
|
|
41
|
+
"test:install": "pnpm build:full && cd dist && node scripts/install-sdk.js && echo 'โ
Test Complete: Native Vault SDK successfully staged and verified'",
|
|
43
42
|
"postinstall": "node scripts/install-sdk.js",
|
|
44
|
-
"publish:secure": "pnpm build:full && echo '๐ Verifying Installer...' && cd dist && node scripts/install-sdk.js && echo '
|
|
43
|
+
"publish:secure": "pnpm build:full && echo '๐ Verifying Installer...' && cd dist && node scripts/install-sdk.js && echo '๐ Publishing...' && npm publish --access public"
|
|
44
|
+
},
|
|
45
|
+
"jest": {
|
|
46
|
+
"testEnvironment": "node",
|
|
47
|
+
"modulePathIgnorePatterns": [
|
|
48
|
+
"<rootDir>/dist/"
|
|
49
|
+
]
|
|
45
50
|
},
|
|
46
51
|
"keywords": [
|
|
47
52
|
"katorymnd",
|
|
@@ -78,6 +83,7 @@
|
|
|
78
83
|
"winston": "^3.18.3"
|
|
79
84
|
},
|
|
80
85
|
"devDependencies": {
|
|
86
|
+
"@napi-rs/cli": "^3.6.0",
|
|
81
87
|
"bootstrap": "^5.3.3",
|
|
82
88
|
"connect-livereload": "^0.6.1",
|
|
83
89
|
"ejs": "^3.1.10",
|
|
@@ -85,7 +91,6 @@
|
|
|
85
91
|
"eslint-config-prettier": "^10.1.8",
|
|
86
92
|
"eslint-plugin-prettier": "^5.5.4",
|
|
87
93
|
"express": "^4.21.2",
|
|
88
|
-
"javascript-obfuscator": "^4.1.1",
|
|
89
94
|
"jest": "^29.7.0",
|
|
90
95
|
"livereload": "^0.10.3",
|
|
91
96
|
"nodemon": "^3.1.10",
|
|
@@ -95,6 +100,16 @@
|
|
|
95
100
|
"vite": "^7.1.12",
|
|
96
101
|
"vite-plugin-ejs": "^1.7.0"
|
|
97
102
|
},
|
|
103
|
+
"napi": {
|
|
104
|
+
"name": "katorymnd_pawapay_core",
|
|
105
|
+
"triples": {
|
|
106
|
+
"defaults": true,
|
|
107
|
+
"additional": [
|
|
108
|
+
"x86_64-unknown-linux-musl",
|
|
109
|
+
"aarch64-unknown-linux-musl"
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
},
|
|
98
113
|
"engines": {
|
|
99
114
|
"node": ">=14.0.0",
|
|
100
115
|
"pnpm": ">=8.0.0"
|
|
@@ -108,4 +123,4 @@
|
|
|
108
123
|
"bugs": {
|
|
109
124
|
"url": "https://github.com/katorymnd/pawapay-node-sdk/issues"
|
|
110
125
|
}
|
|
111
|
-
}
|
|
126
|
+
}
|