@lydianpay/sdk-web 3.6.0 → 3.7.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.
@@ -221,6 +221,7 @@ export type KYCVerificationRequest = {
221
221
  documentType: string | undefined;
222
222
  documentFiles: File[];
223
223
  customerUUID?: string;
224
+ walletAddress?: string;
224
225
  };
225
226
  export type CreatePaymentRequest = {
226
227
  asset: string;
@@ -29,7 +29,7 @@ export interface KycFlowSeams {
29
29
  }): void;
30
30
  closeRestoreDialog(): void;
31
31
  }
32
- export declare function createKycFlow({ store, presentation, screenNavigator, sessionLifecycle, paymentFlow, poller, quoteWatcher, getApi, getOptions, emit, seams, }: {
32
+ export declare function createKycFlow({ store, presentation, screenNavigator, sessionLifecycle, paymentFlow, poller, quoteWatcher, getApi, getOptions, getWalletAccount, emit, seams, }: {
33
33
  store: CheckoutStore;
34
34
  presentation: CheckoutPresentation;
35
35
  screenNavigator: ScreenNavigator;
@@ -39,6 +39,7 @@ export declare function createKycFlow({ store, presentation, screenNavigator, se
39
39
  quoteWatcher: SessionQuoteWatcher;
40
40
  getApi: () => API | null;
41
41
  getOptions: () => CheckoutInitOptions | null;
42
+ getWalletAccount: () => string | null;
42
43
  emit: (name: CheckoutEventName, data?: Record<string, unknown>) => void;
43
44
  seams: KycFlowSeams;
44
45
  }): KycFlow;
@@ -1,6 +1,6 @@
1
1
  import type { KycFieldValues } from './kycValidation';
2
2
  import type { KYCVerificationRequest } from '../types';
3
- export declare function kycVerificationRequest({ values, asset, network, storeKyc, documentFront, documentBack, supportsDocuments, restoring, }: {
3
+ export declare function kycVerificationRequest({ values, asset, network, storeKyc, documentFront, documentBack, supportsDocuments, restoring, walletAddress, }: {
4
4
  values: KycFieldValues;
5
5
  asset: string;
6
6
  network: string;
@@ -14,4 +14,5 @@ export declare function kycVerificationRequest({ values, asset, network, storeKy
14
14
  customerUUID: string;
15
15
  country: string;
16
16
  } | null;
17
+ walletAddress?: string | null;
17
18
  }): KYCVerificationRequest;
@@ -12,6 +12,7 @@ export interface WalletConnection {
12
12
  choose(wallet: CheckoutWallet): void;
13
13
  /** Whether the picked wallet is one checkout can actually connect to. */
14
14
  hasConnectable(): boolean;
15
+ connectedAccount(): string | null;
15
16
  /** Establishes the wallet session used to filter supported networks. */
16
17
  discoverSupportedNetworks(): Promise<void>;
17
18
  /** Pins the wallet connection to the selected payment network. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lydianpay/sdk-web",
3
- "version": "3.6.0",
3
+ "version": "3.7.0",
4
4
  "description": "Drop-in crypto payment checkout for the web — a <lydian-checkout> web component and window.Lydian API across 20+ chains and major stablecoins.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -82,7 +82,7 @@
82
82
  "vitest": "^3.0.0"
83
83
  },
84
84
  "dependencies": {
85
- "@lydianpay/frontend-shared-helpers": "1.1.0",
85
+ "@lydianpay/frontend-shared-helpers": "1.2.0",
86
86
  "@lydianpay/lydianconnect": "^1.5.0",
87
87
  "@lydianpay/lydianconnect-catalog": "^1.3.1",
88
88
  "@solana/qr-code-styling": "^1.6.0",