@seaverse/payment-sdk 0.9.6 → 0.9.8

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.6 | **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,11 @@ 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
+
931
936
  ### v0.9.6 (2026-02-08) - Link Payment Callback Fix
932
937
 
933
938
  **🔧 Bug Fixes**:
@@ -1048,4 +1053,4 @@ Issues and Pull Requests are welcome!
1048
1053
  ---
1049
1054
 
1050
1055
  **Last Updated**: 2026-02-08
1051
- **SDK Version**: 0.9.6
1056
+ **SDK Version**: 0.9.7
@@ -1885,6 +1885,9 @@ class PaymentModal {
1885
1885
  onClose: options.onClose ?? (() => { }),
1886
1886
  className: options.className ?? '',
1887
1887
  maxWidth: options.maxWidth ?? '480px',
1888
+ background: options.background ?? '#ffffff',
1889
+ border: options.border ?? '1px solid rgba(0, 0, 0, 0.1)',
1890
+ borderRadius: options.borderRadius ?? '16px',
1888
1891
  };
1889
1892
  }
1890
1893
  /**
@@ -2011,9 +2014,9 @@ class PaymentModal {
2011
2014
  width: 100%;
2012
2015
  max-width: ${this.options.maxWidth};
2013
2016
  overflow-y: auto;
2014
- border-radius: 16px;
2015
- border: 1px solid rgba(0, 0, 0, 0.1);
2016
- background: #ffffff;
2017
+ border-radius: ${this.options.borderRadius};
2018
+ border: ${this.options.border};
2019
+ background: ${this.options.background};
2017
2020
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
2018
2021
  transform: translateY(20px);
2019
2022
  opacity: 0;
@@ -2862,8 +2865,8 @@ const ENVIRONMENT_CONFIGS = {
2862
2865
  production: {
2863
2866
  scriptUrl: 'https://seaart-publish.sc-api.saconsole.com/payment-component/client.js',
2864
2867
  clientId: 'XF11ik3u5AJ16IyDI3hebq5',
2865
- orderApiUrl: 'https://payment.seaverse.com',
2866
- walletApiUrl: 'https://wallet.seaverse.com',
2868
+ orderApiUrl: 'https://payment.seaverse.ai',
2869
+ walletApiUrl: 'https://wallet.seaverse.ai',
2867
2870
  cssUrl: 'https://seaart-publish.sc-api.saconsole.com/payment-component/public/style.css',
2868
2871
  },
2869
2872
  };
@@ -8304,6 +8307,9 @@ class CreditPackageModal extends BasePackageModal {
8304
8307
  closeOnOverlayClick: false, // Disable click overlay to close
8305
8308
  closeOnEsc: false, // Disable ESC key to close
8306
8309
  maxWidth: '1200px',
8310
+ background: '#0a0a0f',
8311
+ border: '1px solid rgba(255, 255, 255, 0.1)',
8312
+ borderRadius: '24px',
8307
8313
  onClose: () => {
8308
8314
  this.cleanup();
8309
8315
  this.options.onClose?.();
@@ -8475,13 +8481,8 @@ class CreditPackageModal extends BasePackageModal {
8475
8481
  * Apply modal styling (hook method override)
8476
8482
  */
8477
8483
  applyModalStyling() {
8478
- // Modify modal background to dark
8479
- const modalElement = document.querySelector('.payment-modal');
8480
- if (modalElement) {
8481
- modalElement.style.background = '#0a0a0f';
8482
- modalElement.style.border = '1px solid rgba(255, 255, 255, 0.1)';
8483
- modalElement.style.borderRadius = '24px';
8484
- }
8484
+ // Modal background, border, and borderRadius are now configured
8485
+ // via PaymentModal constructor options in createModal()
8485
8486
  // Modify title style
8486
8487
  const titleElement = document.querySelector('.payment-modal-title');
8487
8488
  if (titleElement) {
@@ -9183,7 +9184,7 @@ class GenericPackageModal extends BasePackageModal {
9183
9184
  /**
9184
9185
  * SDK version
9185
9186
  */
9186
- const VERSION$2 = '0.9.6';
9187
+ const VERSION$2 = '0.9.7';
9187
9188
 
9188
9189
  var __defProp = Object.defineProperty;
9189
9190
  var __defProps = Object.defineProperties;