@seaverse/payment-sdk 0.2.0 → 0.3.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/README.md +5 -5
- package/dist/index.browser.js +22534 -65
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +22475 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +22474 -5
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -0
- package/package.json +6 -11
package/README.md
CHANGED
|
@@ -13,12 +13,12 @@ SeaVerse Payment SDK - Credit management and payment checkout for SeaVerse appli
|
|
|
13
13
|
## Installation
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
npm install @seaverse/payment-sdk
|
|
16
|
+
npm install @seaverse/payment-sdk
|
|
17
17
|
# or
|
|
18
|
-
pnpm add @seaverse/payment-sdk
|
|
18
|
+
pnpm add @seaverse/payment-sdk
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
> **
|
|
21
|
+
> **Note**: `@seaart/payment-component` is bundled into the SDK, no need to install it separately.
|
|
22
22
|
|
|
23
23
|
## Quick Start
|
|
24
24
|
|
|
@@ -52,8 +52,8 @@ Show payment modal for purchases:
|
|
|
52
52
|
|
|
53
53
|
```typescript
|
|
54
54
|
import { PaymentCheckoutClient } from '@seaverse/payment-sdk';
|
|
55
|
-
// Import the Web Component styles
|
|
56
|
-
import '@
|
|
55
|
+
// Import the Web Component styles (bundled in SDK)
|
|
56
|
+
import '@seaverse/payment-sdk/style.css';
|
|
57
57
|
|
|
58
58
|
const checkoutClient = new PaymentCheckoutClient({
|
|
59
59
|
apiHost: 'https://payment.sg.seaverse.dev',
|