@lydianpay/sdk-web 3.0.0 → 3.0.1

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
@@ -62,7 +62,7 @@ Place the checkout element where you want the UI, then initialize the SDK:
62
62
  walletConnectProjectId: 'your-walletconnect-project-id',
63
63
  transaction: {
64
64
  amount: 2.45,
65
- currency: 'USD', // 'USD' or 'TRY'
65
+ currency: 'USD', // 'USD', 'TRY' or 'PHP'
66
66
  descriptor: 'Order #1234',
67
67
  referenceNumber: 'your-unique-ref',
68
68
  },
@@ -123,12 +123,12 @@ window.Lydian.init({
123
123
 
124
124
  **`Transaction`**
125
125
 
126
- | Field | Type | Required | Description |
127
- | ----------------- | ---------------- | -------- | ------------------------------------------------- |
128
- | `amount` | `number` | yes | Amount to charge. |
129
- | `currency` | `'USD' \| 'TRY'` | yes | Fiat currency the amount is denominated in. |
130
- | `referenceNumber` | `string` | yes | Your unique reference for this payment. |
131
- | `descriptor` | `string` | no | Human-readable description shown to the customer. |
126
+ | Field | Type | Required | Description |
127
+ | ----------------- | ------------------------- | -------- | ------------------------------------------------- |
128
+ | `amount` | `number` | yes | Amount to charge. |
129
+ | `currency` | `'USD' \| 'TRY' \| 'PHP'` | yes | Fiat currency the amount is denominated in. |
130
+ | `referenceNumber` | `string` | yes | Your unique reference for this payment. |
131
+ | `descriptor` | `string` | no | Human-readable description shown to the customer. |
132
132
 
133
133
  ## Updating the transaction
134
134
 
@@ -65,7 +65,7 @@ const wb = '*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--t
65
65
  >
66
66
  <div class="modal-body w-full"></div>
67
67
  </dialog>
68
- </div>`, il = ["USD", "TRY"];
68
+ </div>`, il = ["USD", "TRY", "PHP"];
69
69
  function pc(t) {
70
70
  return typeof t == "string" && il.includes(t);
71
71
  }
@@ -17235,7 +17235,7 @@ var Un = "metamask", SS = class extends nr {
17235
17235
  }
17236
17236
  async getProvider() {
17237
17237
  if (this.provider) return this.provider;
17238
- const { MetaMaskSDK: t } = await import("./metamask-sdk-DpI24rgz.js"), e = {
17238
+ const { MetaMaskSDK: t } = await import("./metamask-sdk-CFm2IK48.js"), e = {
17239
17239
  name: this.app.appName,
17240
17240
  url: Dg(),
17241
17241
  ...this.app.icon ? { iconUrl: this.app.icon } : {}
@@ -17332,7 +17332,7 @@ var CS = class extends nr {
17332
17332
  }
17333
17333
  async getProvider(t) {
17334
17334
  if (this.provider) return this.provider;
17335
- const { CoinbaseWalletSDK: e } = await import("./index-B-nXrLNN.js"), n = new e({
17335
+ const { CoinbaseWalletSDK: e } = await import("./index-YAGlsS0s.js"), n = new e({
17336
17336
  appName: this.app.appName,
17337
17337
  appLogoUrl: this.app.icon,
17338
17338
  appChainIds: t
@@ -21608,7 +21608,7 @@ class DC extends HTMLElement {
21608
21608
  clock: null
21609
21609
  }), (m = this.checkoutApp) == null || m.unmount(), this.checkoutApp = null, this.clearErrorBanner();
21610
21610
  const o = this.resolveAppTargets(), a = (o == null ? void 0 : o.closeDialogBody) ?? null;
21611
- this.reactChunkReady = import("./mount-mNbGvMK_.js").then(({ mountCheckoutApp: M }) => {
21611
+ this.reactChunkReady = import("./mount-bhuHFGLm.js").then(({ mountCheckoutApp: M }) => {
21612
21612
  o && o.errorBannerSlot.isConnected && (this.checkoutApp = M({
21613
21613
  targets: o,
21614
21614
  store: this.checkoutStore,
@@ -1,4 +1,4 @@
1
- import { E as Qt, F as Fe, I as ft, G as pt, H as jn, J as Bn } from "./index-CoARqfML.js";
1
+ import { E as Qt, F as Fe, I as ft, G as pt, H as jn, J as Bn } from "./index-NI3RoQG3.js";
2
2
  var Oe = { exports: {} }, gt;
3
3
  function Wn() {
4
4
  return gt || (gt = 1, (function(t) {
@@ -1,7 +1,7 @@
1
1
  var Gf = Object.defineProperty;
2
2
  var Yf = (t, e, n) => e in t ? Gf(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var Ht = (t, e, n) => Yf(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { B as ei, E as ga } from "./index-CoARqfML.js";
4
+ import { B as ei, E as ga } from "./index-NI3RoQG3.js";
5
5
  var ti = { exports: {} }, cc;
6
6
  function Zf() {
7
7
  return cc || (cc = 1, (function(t, e) {
@@ -1,4 +1,4 @@
1
- import { t as p, g as Cy, r as Zm, h as My, c as zy, a as Af, b as Wu, d as Dy, e as Nf, f as _y, C as Oy, i as wy, j as Da, D as Ry, k as Uy, l as Ku, m as Hy, n as By, o as Ly, M as qy, p as Yy, P as Km, q as Gy, s as jy, u as Qy, v as km, w as Vy, x as Xy, y as Zy, z as Ky, A as ky, S as _t } from "./index-CoARqfML.js";
1
+ import { t as p, g as Cy, r as Zm, h as My, c as zy, a as Af, b as Wu, d as Dy, e as Nf, f as _y, C as Oy, i as wy, j as Da, D as Ry, k as Uy, l as Ku, m as Hy, n as By, o as Ly, M as qy, p as Yy, P as Km, q as Gy, s as jy, u as Qy, v as km, w as Vy, x as Xy, y as Zy, z as Ky, A as ky, S as _t } from "./index-NI3RoQG3.js";
2
2
  var vf = { exports: {} }, Z = {};
3
3
  /**
4
4
  * @license React
package/dist/lydian.js CHANGED
@@ -1 +1 @@
1
- import "./chunks/index-CoARqfML.js";
1
+ import "./chunks/index-NI3RoQG3.js";