@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/dist/index.cjs CHANGED
@@ -2864,8 +2864,8 @@ const ENVIRONMENT_CONFIGS = {
2864
2864
  production: {
2865
2865
  scriptUrl: 'https://seaart-publish.sc-api.saconsole.com/payment-component/client.js',
2866
2866
  clientId: 'XF11ik3u5AJ16IyDI3hebq5',
2867
- orderApiUrl: 'https://payment.seaverse.com',
2868
- walletApiUrl: 'https://wallet.seaverse.com',
2867
+ orderApiUrl: 'https://payment.seaverse.ai',
2868
+ walletApiUrl: 'https://wallet.seaverse.ai',
2869
2869
  cssUrl: 'https://seaart-publish.sc-api.saconsole.com/payment-component/public/style.css',
2870
2870
  },
2871
2871
  };
@@ -4467,7 +4467,6 @@ async function fetchAvailablePackages(apiHost, token) {
4467
4467
  throw new Error(`Failed to fetch available packages: ${response.status} ${response.statusText}`);
4468
4468
  }
4469
4469
  const result = await response.json();
4470
- console.log('%c =获取可用积分包列表==result===>>>>>>>>', 'color:orange;', result);
4471
4470
  if (result.code !== 0 || !result.data) {
4472
4471
  throw new Error(result.msg || 'Failed to fetch available packages');
4473
4472
  }
@@ -6612,7 +6611,7 @@ class LinkPaymentStrategy extends BasePaymentStrategy {
6612
6611
  // 创建 Link 支付实例
6613
6612
  const link = context.orderPayment.createLinkPayment(method, {
6614
6613
  callback_url: typeof window !== 'undefined'
6615
- ? `${window.location.origin}/pricing`
6614
+ ? `${window.location.origin}${window.location.pathname}`
6616
6615
  : '',
6617
6616
  });
6618
6617
  // 创建订单
@@ -9186,7 +9185,7 @@ class GenericPackageModal extends BasePackageModal {
9186
9185
  /**
9187
9186
  * SDK version
9188
9187
  */
9189
- const VERSION$2 = '0.9.5';
9188
+ const VERSION$2 = '0.9.7';
9190
9189
 
9191
9190
  var __defProp = Object.defineProperty;
9192
9191
  var __defProps = Object.defineProperties;