Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@lydianpay/sdk-web

Latest version: v3.20.0

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
npm package Publisher: amishadahal, atetheredmitch, izzylydian, kcar, sulavlydian, tpg-derek
49 Versions
5.3K Downloads

Scan summary

@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.

  • Releases: 49 versions; the latest 5 were published within 6 days (19–24 Nov 2026).
  • Findings: No rules fired in version 3.20.0.
  • Downloads: 5,309 downloads.

Versions

49 versions published
Versions and the rules that fired in each
VersionPublishedStatus
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

No rules fired in 3.20.0

Findings

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.

README

The publisher’s own README, as collected from the registry.

Installation

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".

Quick start

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>

Configuration

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.

Updating the transaction

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',
});

Environments

Environment Flags
Production dev: false, sandbox: false
Sandbox sandbox: true
Development dev: true

Supported assets & networks

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.

Development

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.

Links

License

MIT

OX Radar and Response Center

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.

Where it’s listed

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).

  • npm @lydianpay/sdk-web

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Frame 2085668439 (1)
Group 1261154229