@paynext/sdk 0.0.10 → 0.0.12

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/dist/index.es.js CHANGED
@@ -313,9 +313,10 @@ const So = async (e) => {
313
313
  body: JSON.stringify(e)
314
314
  })).json();
315
315
  }, Eo = async (e) => {
316
- const t = `${Zn.apiBase}/payments/create/billing/agreement`;
317
- return await (await fetch(t, {
316
+ const t = `${Zn.apiBase}/payments/create/billing/agreement`, n = new Headers();
317
+ return n.append("Content-Type", "application/json"), await (await fetch(t, {
318
318
  method: "POST",
319
+ headers: n,
319
320
  body: JSON.stringify({ clientSession: e })
320
321
  })).json();
321
322
  }, jo = async (e) => {
@@ -2427,8 +2428,8 @@ const Br = "ab-ev-google-pay-container", Ml = ({ onSubmit: e, onCancel: t, onErr
2427
2428
  });
2428
2429
  }
2429
2430
  }
2430
- });
2431
- if (await f.availability() !== "available") {
2431
+ }), m = await f.availability();
2432
+ if (console.log("ApplePay availability:", m), m !== "available") {
2432
2433
  u(!1), i?.();
2433
2434
  return;
2434
2435
  }