@getopenpay/openpay-js 0.5.25 → 0.5.26-alpha.b87651e

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.
@@ -1,5 +1,5 @@
1
- import { c as M, t as p, i as P, T as o, b as D, d as b } from "./index-BmfwKlzi.js";
2
- import { i as A } from "./suppress-tracing-QycbVyJL.js";
1
+ import { c as M, t as p, i as P, T as o, b as D, d as b } from "./index-CIL8e1Fq.js";
2
+ import { i as A } from "./suppress-tracing-BdVrGcq9.js";
3
3
  var l = M("OpenTelemetry Context Key B3 Debug Flag"), f = "b3", v = "x-b3-traceid", g = "x-b3-spanid", c = "x-b3-sampled", B = "x-b3-parentspanid", S = "x-b3-flags", F = /* @__PURE__ */ new Set([!0, "true", "True", "1", 1]), N = /* @__PURE__ */ new Set([!1, "false", "False", "0", 0]);
4
4
  function V(r) {
5
5
  return r === o.SAMPLED || r === o.NONE;
@@ -1,7 +1,7 @@
1
- import { m as v } from "./metrics-api-Cmje9Aat.js";
2
- import { t as d } from "./index-BmfwKlzi.js";
3
- import { l as f } from "./utils-5D-ArVRe.js";
4
- import { I, i as p, s as h } from "./utils-5D-ArVRe.js";
1
+ import { m as v } from "./metrics-api-Chiu9AL5.js";
2
+ import { t as d } from "./index-CIL8e1Fq.js";
3
+ import { l as f } from "./utils-BcwMyp_5.js";
4
+ import { I, i as p, s as h } from "./utils-BcwMyp_5.js";
5
5
  function n(r, o, a, i) {
6
6
  for (var t = 0, s = r.length; t < s; t++) {
7
7
  var e = r[t];
@@ -1,4 +1,4 @@
1
- import { R as r, d as o } from "./Resource-zujlVo-F.js";
1
+ import { R as r, d as o } from "./Resource-D1KX66fN.js";
2
2
  export {
3
3
  r as Resource,
4
4
  o as defaultServiceName
@@ -1,4 +1,4 @@
1
- import { A as r, b as e, B as o, a as p, C as S, F as n, N as c, P as l, R as m, d as t, S as d, e as i, c as P, T as B } from "./SimpleSpanProcessor-a50wJDqC.js";
1
+ import { A as r, b as e, B as o, a as p, C as S, F as n, N as c, P as l, R as m, d as t, S as d, e as i, c as P, T as B } from "./SimpleSpanProcessor-CC9KuRD0.js";
2
2
  export {
3
3
  r as AlwaysOffSampler,
4
4
  e as AlwaysOnSampler,
package/dist/index.d.ts CHANGED
@@ -8,11 +8,21 @@ import { z } from 'zod';
8
8
 
9
9
  declare type AffirmFlowCustomParams = {
10
10
  processor?: PaymentProcessor;
11
+ /**
12
+ * Open the BNPL authorization page in a new tab instead of an iframe.
13
+ * The merchant page stays open, so `onCheckoutSuccess` / `onCheckoutError` still fire.
14
+ * Defaults to false to preserve the existing iframe flow.
15
+ */
11
16
  useRedirectFlow?: boolean;
12
17
  };
13
18
 
14
19
  declare type AfterpayFlowCustomParams = {
15
20
  processor?: PaymentProcessor;
21
+ /**
22
+ * Open the BNPL authorization page in a new tab instead of an iframe.
23
+ * The merchant page stays open, so `onCheckoutSuccess` / `onCheckoutError` still fire.
24
+ * Defaults to false to preserve the existing iframe flow.
25
+ */
16
26
  useRedirectFlow?: boolean;
17
27
  };
18
28
 
@@ -609,6 +619,11 @@ declare type KlarnaFlowCustomParams = {
609
619
  */
610
620
  processor?: PaymentProcessor;
611
621
  isAnonymous?: boolean;
622
+ /**
623
+ * Open the BNPL authorization page in a new tab instead of an iframe.
624
+ * The merchant page stays open, so `onCheckoutSuccess` / `onCheckoutError` still fire.
625
+ * Defaults to false to preserve the existing iframe flow.
626
+ */
612
627
  useRedirectFlow?: boolean;
613
628
  };
614
629
 
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { E as p, F as r, O as i, l as s } from "./index-BmfwKlzi.js";
1
+ import { E as p, F as r, O as i, l as s } from "./index-CIL8e1Fq.js";
2
2
  import "penpal";
3
3
  import "uuid";
4
4
  import "zod";