@fractalpay/fractalpay-next-dev 0.0.219 → 0.0.221

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.js CHANGED
@@ -39,7 +39,7 @@ var require_package = __commonJS({
39
39
  "package.json"(exports, module) {
40
40
  module.exports = {
41
41
  name: "@fractalpay/fractalpay-next-dev",
42
- version: "0.0.219",
42
+ version: "0.0.221",
43
43
  private: false,
44
44
  type: "module",
45
45
  scripts: {
@@ -3213,7 +3213,7 @@ var FractalFields = ({ fractalStyles, tokenizerRef, isAddCard = false, isSky = f
3213
3213
  }
3214
3214
  ),
3215
3215
  /* @__PURE__ */ jsx17("div", { className: "card-crdi card-expiry-new", children: /* @__PURE__ */ jsxs10("div", { className: "exp-date-year-container", children: [
3216
- /* @__PURE__ */ jsx17("div", { className: "exp-date form-group ", style: { marginTop: "0px", marginBottom: "0px", padding: "0px" }, children: /* @__PURE__ */ jsx17(
3216
+ /* @__PURE__ */ jsx17("div", { className: "exp-date form-group input-main-wrap-frac", children: /* @__PURE__ */ jsx17(
3217
3217
  "div",
3218
3218
  {
3219
3219
  id: "exp_month",
@@ -3221,7 +3221,7 @@ var FractalFields = ({ fractalStyles, tokenizerRef, isAddCard = false, isSky = f
3221
3221
  style: { height: "36px", display: "inline-block" }
3222
3222
  }
3223
3223
  ) }),
3224
- /* @__PURE__ */ jsx17("div", { className: "exp-year form-group ", style: { marginTop: "0px", marginBottom: "0px", padding: "0px" }, children: /* @__PURE__ */ jsx17(
3224
+ /* @__PURE__ */ jsx17("div", { className: "exp-year form-group input-main-wrap-frac", children: /* @__PURE__ */ jsx17(
3225
3225
  "div",
3226
3226
  {
3227
3227
  id: "exp_year",
@@ -3229,7 +3229,7 @@ var FractalFields = ({ fractalStyles, tokenizerRef, isAddCard = false, isSky = f
3229
3229
  style: { height: "36px", display: "inline-block" }
3230
3230
  }
3231
3231
  ) }),
3232
- /* @__PURE__ */ jsx17("div", { className: "security-digit form-group ", style: { marginTop: "0px", marginBottom: "0px", padding: "0px" }, children: /* @__PURE__ */ jsx17(
3232
+ /* @__PURE__ */ jsx17("div", { className: "security-digit form-group input-main-wrap-frac", children: /* @__PURE__ */ jsx17(
3233
3233
  "div",
3234
3234
  {
3235
3235
  id: "cvv",
@@ -9338,7 +9338,10 @@ position:relative;
9338
9338
  .exp-date-year-container .form-group {
9339
9339
  flex: 1;
9340
9340
  }
9341
-
9341
+ .input-main-wrap-frac{
9342
+ margin:0px !important;
9343
+ padding:0px !important;
9344
+ }
9342
9345
 
9343
9346
 
9344
9347
 
@@ -9764,11 +9767,13 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
9764
9767
  public_key_pem: ((_b2 = (_a2 = sesionResult == null ? void 0 : sesionResult.data) == null ? void 0 : _a2.data) == null ? void 0 : _b2.publicKeyPem) || ((_d2 = (_c2 = sesionResult == null ? void 0 : sesionResult.data) == null ? void 0 : _c2.data) == null ? void 0 : _d2.public_key_pem),
9765
9768
  session_key: (_f2 = (_e2 = sesionResult == null ? void 0 : sesionResult.data) == null ? void 0 : _e2.data) == null ? void 0 : _f2.session_key
9766
9769
  };
9770
+ debugger;
9771
+ let three_ds_data = null;
9767
9772
  if (require3ds) {
9768
9773
  if (typeof window !== "undefined" && typeof navigator !== "undefined") {
9769
9774
  const languages = (_g2 = navigator.languages) != null ? _g2 : [navigator.language];
9770
9775
  const language = Array.isArray(languages) ? languages[0] : languages;
9771
- objtokenize.three_ds_data = {
9776
+ three_ds_data = {
9772
9777
  amount: partialAmount ? Math.round(parseFloat(partialAmount) * 100) : Math.round(parseFloat(amount) * 100),
9773
9778
  // convert dollars → cents
9774
9779
  currency: "usd",
@@ -9788,7 +9793,10 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
9788
9793
  }
9789
9794
  let tokenizeData;
9790
9795
  try {
9791
- tokenizeData = await tokenizerRef.current.createToken(objtokenize);
9796
+ tokenizeData = await tokenizerRef.current.createToken(
9797
+ objtokenize,
9798
+ three_ds_data
9799
+ );
9792
9800
  } catch (error2) {
9793
9801
  setErrorIframe(error2);
9794
9802
  hideLoader();
@@ -9881,6 +9889,7 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
9881
9889
  pass_fee
9882
9890
  }
9883
9891
  });
9892
+ debugger;
9884
9893
  if ((result == null ? void 0 : result.status) == 200) {
9885
9894
  let gatewayToken = (_b2 = (_a2 = result == null ? void 0 : result.data) == null ? void 0 : _a2.data) == null ? void 0 : _b2.gateway_token;
9886
9895
  let paymentGateway2 = (_d2 = (_c2 = result == null ? void 0 : result.data) == null ? void 0 : _c2.data) == null ? void 0 : _d2.paymentGateway;
@@ -10316,7 +10325,12 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
10316
10325
  var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m2, _n2, _o2;
10317
10326
  try {
10318
10327
  showLoader();
10319
- const res = await axios9.get(`${masterBaseUrl}api/v1/gateway/get-payment-details/${session_token}`);
10328
+ const res = await axios9.get(`${masterBaseUrl}api/v1/gateway/get-payment-details/${session_token}`, {
10329
+ params: {
10330
+ require3ds,
10331
+ pass_fee
10332
+ }
10333
+ });
10320
10334
  if ((res == null ? void 0 : res.status) == 200) {
10321
10335
  setIsBankActive((_b2 = (_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.data) == null ? void 0 : _b2.isBankActive);
10322
10336
  setProcessingFee(Number((_d2 = (_c2 = res == null ? void 0 : res.data) == null ? void 0 : _c2.data) == null ? void 0 : _d2.fee) || 0);