@seaverse/payment-sdk 0.9.5 → 0.9.7

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # @seaverse/payment-sdk
2
2
 
3
- > **Version**: 0.9.5 | **Language**: English
3
+ > **Version**: 0.9.7 | **Language**: English
4
4
 
5
5
  A comprehensive payment solution for SeaVerse platform, providing credit management, payment checkout, subscription management, and order tracking.
6
6
 
@@ -928,6 +928,17 @@ import type {
928
928
 
929
929
  ## 📄 Changelog
930
930
 
931
+ ### v0.9.7 (2026-02-08) - Configuration & Stability
932
+
933
+ **🔧 Improvements**:
934
+ - Configuration updates and stability improvements.
935
+
936
+ ### v0.9.6 (2026-02-08) - Link Payment Callback Fix
937
+
938
+ **🔧 Bug Fixes**:
939
+ - **Dynamic Callback URL**: Fixed Link payment `callback_url` from hardcoded `/pricing` to `window.location.pathname`, ensuring correct redirect on any page.
940
+ - **Removed Debug Logs**: Cleaned up leftover `console.log` in `packages.ts`.
941
+
931
942
  ### v0.9.5 (2026-02-08) - CreditPackCard UI Refinement & Modal Fix
932
943
 
933
944
  **🎨 CreditPackCard UI Overhaul**:
@@ -1042,4 +1053,4 @@ Issues and Pull Requests are welcome!
1042
1053
  ---
1043
1054
 
1044
1055
  **Last Updated**: 2026-02-08
1045
- **SDK Version**: 0.9.5
1056
+ **SDK Version**: 0.9.7
@@ -2862,8 +2862,8 @@ const ENVIRONMENT_CONFIGS = {
2862
2862
  production: {
2863
2863
  scriptUrl: 'https://seaart-publish.sc-api.saconsole.com/payment-component/client.js',
2864
2864
  clientId: 'XF11ik3u5AJ16IyDI3hebq5',
2865
- orderApiUrl: 'https://payment.seaverse.com',
2866
- walletApiUrl: 'https://wallet.seaverse.com',
2865
+ orderApiUrl: 'https://payment.seaverse.ai',
2866
+ walletApiUrl: 'https://wallet.seaverse.ai',
2867
2867
  cssUrl: 'https://seaart-publish.sc-api.saconsole.com/payment-component/public/style.css',
2868
2868
  },
2869
2869
  };
@@ -4465,7 +4465,6 @@ async function fetchAvailablePackages(apiHost, token) {
4465
4465
  throw new Error(`Failed to fetch available packages: ${response.status} ${response.statusText}`);
4466
4466
  }
4467
4467
  const result = await response.json();
4468
- console.log('%c =获取可用积分包列表==result===>>>>>>>>', 'color:orange;', result);
4469
4468
  if (result.code !== 0 || !result.data) {
4470
4469
  throw new Error(result.msg || 'Failed to fetch available packages');
4471
4470
  }
@@ -6610,7 +6609,7 @@ class LinkPaymentStrategy extends BasePaymentStrategy {
6610
6609
  // 创建 Link 支付实例
6611
6610
  const link = context.orderPayment.createLinkPayment(method, {
6612
6611
  callback_url: typeof window !== 'undefined'
6613
- ? `${window.location.origin}/pricing`
6612
+ ? `${window.location.origin}${window.location.pathname}`
6614
6613
  : '',
6615
6614
  });
6616
6615
  // 创建订单
@@ -9184,7 +9183,7 @@ class GenericPackageModal extends BasePackageModal {
9184
9183
  /**
9185
9184
  * SDK version
9186
9185
  */
9187
- const VERSION$2 = '0.9.5';
9186
+ const VERSION$2 = '0.9.7';
9188
9187
 
9189
9188
  var __defProp = Object.defineProperty;
9190
9189
  var __defProps = Object.defineProperties;