Scan your whole stack
Are you using @lydianpay/sdk-web?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v3.20.0
@lydianpay/sdk-web was last scanned on 24 Nov 2026 at version 3.20.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 3.20.0 LATEST | 24 Nov 2026 | No rules fired |
| 3.19.5 | 24 Nov 2026 | No rules fired |
| 3.19.4 | 22 Nov 2026 | No rules fired |
| 3.19.3 | 20 Nov 2026 | Not shown |
| 3.19.2 | 19 Nov 2026 | Not shown |
Findings for v3.20.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 3.20.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
npm
npm install @lydianpay/sdk-web
import '@lydianpay/sdk-web';
Script tag (CDN)
<script
type="module"
src="https://cdn.jsdelivr.net/npm/@lydianpay/sdk-web@2.0.0/dist/lydian.js"
></script>
Pin a version (e.g. @2.0.0) in production so an upstream release can't change
your checkout unexpectedly.
Since v2 the SDK ships as ES modules only: the entry registers
window.Lydian and <lydian-checkout> exactly as before, and the heavy
wallet SDKs load as separate chunks only when a customer picks that wallet
(the CDN serves the chunks alongside the entry). The v1 single-file bundle
(dist/lydian.iife.js) no longer exists — if you are upgrading a script tag
from v1, change the file name to lydian.js and keep type="module".
Place the checkout element where you want the UI, then initialize the SDK:
<lydian-checkout></lydian-checkout>
<script type="module">
window.Lydian.init({
dev: false,
sandbox: false, // both false → production
publishableKey: 'pk_live_...',
walletConnectProjectId: 'your-walletconnect-project-id',
transaction: {
amount: 2.45,
currency: 'USD', // 'USD', 'TRY' or 'PHP'
descriptor: 'Order #1234',
referenceNumber: 'your-unique-ref',
},
paymentSuccessListener: () => {
window.location.href = '/thank-you';
},
paymentFailedListener: (message) => {
console.error('Payment failed:', message);
},
paymentCanceledListener: () => {
console.log('Payment canceled');
},
});
</script>
window.Lydian.init(options)
| Option | Type | Required | Description |
|---|---|---|---|
publishableKey |
string |
yes | Your Lydian publishable key (pk_...). |
walletConnectProjectId |
string |
yes | Your WalletConnect/Reown project ID, used to power wallet connections. |
transaction |
Transaction |
yes | The payment to collect (see below). |
dev |
boolean |
yes | Target the dev environment. |
sandbox |
boolean |
yes | Target sandbox. With both dev and sandbox false, the SDK uses production. |
gatewayUrl |
string |
no | A gateway at this origin instead of the above, e.g. one running on your machine. Local development only. |
paymentSuccessListener |
() => void |
yes | Called when the payment completes. |
paymentFailedListener |
(message: string) => void |
yes | Called on failure, with a message. |
paymentCanceledListener |
() => void |
yes | Called when the customer cancels. |
isEmbedded |
boolean |
no | Render the checkout inline (embedded) instead of as a modal. |
flow |
InitFlowOptions |
no | Per-embed flow overrides (see below). |
flow
Optional per-embed settings. Only settings your Lydian account cannot express live here — everything else is configured once on the merchant portal and applies to every checkout automatically.
| Field | Type | Default | Description |
|---|---|---|---|
walletConnect |
boolean |
false |
Offer wallet connection alongside the QR code. Not available from account config. |
assetFirst |
boolean |
false |
Ask the customer to pick the coin before the network, instead of the default network-first order. |
Configured on your Lydian account, not here. They apply to every checkout and there is no per-embed override:
| Setting | Description |
|---|---|
showApprovalPage |
Show the scan-to-pay screen as a confirmation step before asking a connected wallet to sign. Off by default — the wallet opens straight away. |
hideNoWalletOption |
Legacy field name retained for compatibility. When true, hides the "Other wallets" option on the wallet selection screen. |
hideChangePaymentMethod |
When true, the "Change payment method" button is not shown on the wallet selection screen even when the session has a cancelURL. |
window.Lydian.init({
// ...
flow: { walletConnect: true, assetFirst: true },
});
Transaction
| Field | Type | Required | Description |
|---|---|---|---|
amount |
number |
yes | Amount to charge. |
currency |
'USD' \| 'TRY' \| 'PHP' |
yes | Fiat currency the amount is denominated in. |
referenceNumber |
string |
yes | Your unique reference for this payment. |
descriptor |
string |
no | Human-readable description shown to the customer. |
Before the customer pays, you can update the amount or currency. This also resets the checkout UI to its initial state:
window.Lydian.updateTransaction({
amount: 1.45,
currency: 'USD',
descriptor: 'Order #1234',
referenceNumber: 'your-unique-ref',
});
| Environment | Flags |
|---|---|
| Production | dev: false, sandbox: false |
| Sandbox | sandbox: true |
| Development | dev: true |
USDT, USDC, ETH, PYUSD, RLUSD, USDe, USDS, USDP, DAI across Ethereum, Polygon, Arbitrum, Base, Optimism, Solana, Bitcoin, Celo, Linea, Sonic, Unichain, ZKsync, and more. Which assets appear at checkout is controlled by your Lydian account configuration.
The dev harness is index.html: npm run dev serves the SDK source with hot
reload at http://localhost:5173 and renders a checkout from the values in
.env.local (copy .env.example; it explains each one). A publishable key is
the only value that needs filling in, unless a gateway on your machine is in
play, in which case VITE_GATEWAY_URL points the harness at it.
On a phone. Wallet deep links only happen in a phone browser, so:
brew install cloudflared # once per machine; no account needed
npm run dev:phone
That runs the harness behind a Cloudflare quick tunnel and prints an https URL
and a QR code to scan with the phone camera. If .env.local points at a
gateway on your machine, the gateway gets a tunnel of its own and the page is
told to use it (on the phone, localhost is the phone); the script prints that
address too. Both addresses are random per run and stop working at Ctrl-C.
Nothing is installed on the phone. While it runs, the harness and that gateway
are reachable from the internet under those hostnames, so keep .env.local to
development credentials.
With an unpublished wallet layer. The wallet connection code lives in
@lydianpay/lydianconnect and @lydianpay/lydianconnect-catalog. To try a
change to either here before it is published, with their checkouts next to this
one:
npm run use:local # build, pack and install both siblings, like npm publish would
npm run use:published # back to the registry versions
Then npm run dev or npm run dev:phone as above.
MIT
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.