@pkpayplus/core 1.0.0 → 1.0.2
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 +31 -32
- package/dist/index.cjs +1429 -58
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +77 -1
- package/dist/index.d.ts +77 -1
- package/dist/index.js +1421 -58
- package/dist/index.js.map +1 -1
- package/package.json +20 -1
package/README.md
CHANGED
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
# @pkpayplus/core
|
|
2
|
-
|
|
3
|
-
The universal shared core engine, HTTP client, iframe dialog controller, event listeners, and domain models for the **PKPay+** SDK ecosystem.
|
|
4
|
-
|
|
5
|
-
[](https://www.npmjs.com/package/@pkpayplus/core)
|
|
6
|
-
[](https://opensource.org/licenses/MIT)
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
## Installation
|
|
11
|
-
|
|
12
|
-
```bash
|
|
13
|
-
npm install @pkpayplus/core
|
|
14
|
-
# or
|
|
15
|
-
pnpm add @pkpayplus/core
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
---
|
|
19
|
-
|
|
20
|
-
## What's Included
|
|
21
|
-
|
|
22
|
-
- **`HTTPClient`**: Universal fetch-based HTTP transport with retries, exponential backoff, and standard PKPay+ error translation (`PKPayPlusAuthenticationError`, `PKPayPlusInvalidRequestError`, `PKPayPlusRateLimitError`, etc.).
|
|
23
|
-
- **`createCheckoutDialog`**: Headless DOM dialog/overlay injector for rendering secure PKPay+ iframe checkout.
|
|
24
|
-
- **`setupPostMessageListener`**: Type-safe cross-origin postMessage event listener (`pkpayplus:ready`, `pkpayplus:success`, `pkpayplus:close`).
|
|
25
|
-
- **TypeScript Types**: Complete definitions for `CheckoutSession`, `Product`, `Price`, `PaymentLink`, and checkout events.
|
|
26
|
-
|
|
27
|
-
---
|
|
28
|
-
|
|
29
|
-
## License
|
|
30
|
-
|
|
31
|
-
MIT © [PKPay+](https://pkpayplus.com)
|
|
32
|
-
|
|
1
|
+
# @pkpayplus/core
|
|
2
|
+
|
|
3
|
+
The universal shared core engine, HTTP client, iframe dialog controller, event listeners, and domain models for the **PKPay+** SDK ecosystem.
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/@pkpayplus/core)
|
|
6
|
+
[](https://opensource.org/licenses/MIT)
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Installation
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
npm install @pkpayplus/core
|
|
14
|
+
# or
|
|
15
|
+
pnpm add @pkpayplus/core
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## What's Included
|
|
21
|
+
|
|
22
|
+
- **`HTTPClient`**: Universal fetch-based HTTP transport with retries, exponential backoff, and standard PKPay+ error translation (`PKPayPlusAuthenticationError`, `PKPayPlusInvalidRequestError`, `PKPayPlusRateLimitError`, etc.).
|
|
23
|
+
- **`createCheckoutDialog`**: Headless DOM dialog/overlay injector for rendering secure PKPay+ iframe checkout.
|
|
24
|
+
- **`setupPostMessageListener`**: Type-safe cross-origin postMessage event listener (`pkpayplus:ready`, `pkpayplus:success`, `pkpayplus:close`).
|
|
25
|
+
- **TypeScript Types**: Complete definitions for `CheckoutSession`, `Product`, `Price`, `PaymentLink`, and checkout events.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## License
|
|
30
|
+
|
|
31
|
+
MIT © [PKPay+](https://pkpayplus.com)
|