@seaverse/payment-sdk 0.7.0 → 0.7.1
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 +27 -0
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +10 -9
package/README.md
CHANGED
|
@@ -168,6 +168,33 @@ interface SubscribeOptions extends CheckoutOptions {
|
|
|
168
168
|
|
|
169
169
|
### Environment Configuration
|
|
170
170
|
|
|
171
|
+
#### PaymentClient (Credit Query)
|
|
172
|
+
|
|
173
|
+
| Environment | Base URL | Description |
|
|
174
|
+
|-------------|----------|-------------|
|
|
175
|
+
| Production | `https://payment.seaverse.ai` | Production environment |
|
|
176
|
+
| Staging | `https://payment.sg.seaverse.dev` | Staging/Test environment (default) |
|
|
177
|
+
|
|
178
|
+
```typescript
|
|
179
|
+
import { PaymentClient } from '@seaverse/payment-sdk';
|
|
180
|
+
|
|
181
|
+
// Default uses staging environment
|
|
182
|
+
const stagingClient = new PaymentClient({
|
|
183
|
+
appId: 'your-app-id',
|
|
184
|
+
token: 'your-token',
|
|
185
|
+
// baseURL defaults to 'https://payment.sg.seaverse.dev'
|
|
186
|
+
});
|
|
187
|
+
|
|
188
|
+
// Production environment
|
|
189
|
+
const prodClient = new PaymentClient({
|
|
190
|
+
appId: 'your-app-id',
|
|
191
|
+
token: 'your-token',
|
|
192
|
+
baseURL: 'https://payment.seaverse.ai',
|
|
193
|
+
});
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
#### PaymentCheckoutClient (Payment Modal)
|
|
197
|
+
|
|
171
198
|
| Environment | API Host |
|
|
172
199
|
|-------------|----------|
|
|
173
200
|
| `development` | `https://aiart-openresty.dev.seaart.dev` |
|