@lydianpay/sdk-web 1.1.3 → 1.1.5

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
@@ -87,6 +87,26 @@ Place the checkout element where you want the UI, then initialize the SDK:
87
87
  | `paymentFailedListener` | `(message: string) => void` | yes | Called on failure, with a message. |
88
88
  | `paymentCanceledListener` | `() => void` | yes | Called when the customer cancels. |
89
89
  | `isEmbedded` | `boolean` | no | Render the checkout inline (embedded) instead of as a modal. |
90
+ | `flow` | `InitFlowOptions` | no | Per-embed flow overrides (see below). |
91
+
92
+ **`flow`**
93
+
94
+ Optional per-embed overrides. Anything you leave out falls back to the flow
95
+ settings on your Lydian account, and then to the SDK default — so you only set
96
+ what you want to differ for this particular checkout.
97
+
98
+ | Field | Type | Default | Description |
99
+ | ---------------------- | --------- | ------- | --------------------------------------------------------------------------------- |
100
+ | `walletConnect` | `boolean` | `false` | Offer wallet connection alongside the QR code. Not available from account config. |
101
+ | `skipConfirmationPage` | `boolean` | account | Open the wallet straight away instead of showing a confirmation screen. |
102
+ | `hideNoWalletOption` | `boolean` | account | Hide the "I don't have a supported wallet" link. |
103
+
104
+ ```js
105
+ window.Lydian.init({
106
+ // ...
107
+ flow: { walletConnect: true },
108
+ });
109
+ ```
90
110
 
91
111
  **`Transaction`**
92
112