@fractalpay/fractalpay-next-dev 0.0.214 → 0.0.216

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.214",
42
+ version: "0.0.216",
43
43
  private: false,
44
44
  type: "module",
45
45
  scripts: {
@@ -3360,13 +3360,33 @@ var customCSS = `
3360
3360
  var DataCapFields = ({
3361
3361
  isOpen,
3362
3362
  tokenKey,
3363
- setLoader
3363
+ setLoader,
3364
+ isAddCard
3364
3365
  }) => {
3365
3366
  const iframeId = "datacap-iframe";
3366
3367
  const resolverRef = useRef2(null);
3367
3368
  const [iframeReady, setIframeReady] = useState3(false);
3368
3369
  useEffect7(() => {
3369
3370
  if (!isOpen || !tokenKey) return;
3371
+ if (isAddCard) {
3372
+ customCSS += `
3373
+ label {
3374
+ display: block !important;
3375
+ text-align: left !important;
3376
+ font-weight: 400 !important;
3377
+ text-transform: uppercase;
3378
+ color: #35254D !important;
3379
+ margin-bottom: 6px;
3380
+ }
3381
+ input::placeholder {
3382
+ font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
3383
+ color: #9ca3af !important;
3384
+ font-weight: 400 !important;
3385
+ font-size: 14px !important;
3386
+ }
3387
+ `;
3388
+ }
3389
+ console.log(customCSS, "customcss");
3370
3390
  const initialize = async () => {
3371
3391
  setLoader == null ? void 0 : setLoader(true);
3372
3392
  setIframeReady(false);
@@ -5201,7 +5221,7 @@ function PreAuthPayment(_a) {
5201
5221
  setErrorIframe("");
5202
5222
  } }) }),
5203
5223
  success && /* @__PURE__ */ jsx20(SuccessMsz, { onClose: handleClose, tranId }),
5204
- !error && !success && /* @__PURE__ */ jsxs12(Fragment12, { children: [
5224
+ !error && !success && !errorIframe && /* @__PURE__ */ jsxs12(Fragment12, { children: [
5205
5225
  (loading || loading2 || loadingIframe) && /* @__PURE__ */ jsx20(Loader_default, { loading: loading || loading2 || loadingIframe }),
5206
5226
  /* @__PURE__ */ jsx20("div", { children: /* @__PURE__ */ jsx20("div", { className: "frac-card-payment-page frac-form", children: /* @__PURE__ */ jsxs12("div", { className: "parent-pay-container", children: [
5207
5227
  /* @__PURE__ */ jsx20("span", { className: "request-payment-close-popup", onClick: handleClose, children: /* @__PURE__ */ jsxs12("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: [
@@ -5790,10 +5810,13 @@ div#card_number{
5790
5810
  border-radius: 0.375rem !important;
5791
5811
  padding: 0px 12px;
5792
5812
  }
5793
- input#cardholderName::placeholder {
5813
+ input#cardholderName::placeholder , input#zipcode::placeholder {
5794
5814
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
5795
- color: #35254D;
5796
- }
5815
+ color: #9ca3af !important;
5816
+ font-weight: 400 !important;
5817
+ font-size: 14px !important;
5818
+ }
5819
+
5797
5820
  ` });
5798
5821
  }
5799
5822
 
@@ -6203,7 +6226,7 @@ function AddCardEasyPay(props) {
6203
6226
  setErrorIframe("");
6204
6227
  } }) }),
6205
6228
  success && /* @__PURE__ */ jsx24(SuccessCardMsz_default, { onClose: handleCloseSeccess }),
6206
- !error && !success && /* @__PURE__ */ jsx24(Fragment14, { children: /* @__PURE__ */ jsx24(
6229
+ !error && !success && !errorIframe && /* @__PURE__ */ jsx24(Fragment14, { children: /* @__PURE__ */ jsx24(
6207
6230
  "div",
6208
6231
  {
6209
6232
  className: "container-creditcard add-card modal-content",
@@ -6290,13 +6313,14 @@ function AddCardEasyPay(props) {
6290
6313
  e.stopPropagation();
6291
6314
  }
6292
6315
  }, children: [
6293
- /* @__PURE__ */ jsxs14("div", { style: { maxHeight: "350px", minHeight: "0" }, className: "card-scrl", children: [
6316
+ /* @__PURE__ */ jsxs14("div", { style: { maxHeight: "410px", minHeight: "0" }, className: "card-scrl", children: [
6294
6317
  /* @__PURE__ */ jsx24("div", { className: "form-group", style: { marginTop: "0", marginBottom: "10px" }, children: /* @__PURE__ */ jsx24(
6295
6318
  DataCapFields,
6296
6319
  {
6297
6320
  isOpen: true,
6298
6321
  tokenKey: paymentData == null ? void 0 : paymentData.dctoken,
6299
- setLoader: setLoadingIframe
6322
+ setLoader: setLoadingIframe,
6323
+ isAddCard: true
6300
6324
  }
6301
6325
  ) }),
6302
6326
  /* @__PURE__ */ jsxs14("div", { className: "form-group", style: { marginTop: "0" }, children: [
@@ -6329,7 +6353,7 @@ function AddCardEasyPay(props) {
6329
6353
  "input",
6330
6354
  {
6331
6355
  type: "text",
6332
- id: "",
6356
+ id: "zipcode",
6333
6357
  name: "zipcode",
6334
6358
  placeholder: "Zip",
6335
6359
  value: (_b = cardData == null ? void 0 : cardData.zipCode) != null ? _b : "",
@@ -6944,7 +6968,7 @@ function CardOnFile({ session_token, callback, isloading, onCancel, showChecks,
6944
6968
  errorIframe && /* @__PURE__ */ jsx27("div", { style: { maxHeight: "606px", minHeight: "60vh", padding: "40px" }, children: /* @__PURE__ */ jsx27(ErrorCardMessage_default, { error: errorIframe, onClose: () => {
6945
6969
  setErrorIframe("");
6946
6970
  } }) }),
6947
- !error && /* @__PURE__ */ jsx27("div", { className: "creditformbox", children: paymentGateway == 32 ? /* @__PURE__ */ jsxs16("form", { id: "paymentForm", onSubmit: handleCardAdd, onKeyDown: (e) => {
6971
+ !error && !errorIframe && /* @__PURE__ */ jsx27("div", { className: "creditformbox", children: paymentGateway == 32 ? /* @__PURE__ */ jsxs16("form", { id: "paymentForm", onSubmit: handleCardAdd, onKeyDown: (e) => {
6948
6972
  if (e.key === "Enter" && loading) {
6949
6973
  e.preventDefault();
6950
6974
  e.stopPropagation();
@@ -8049,9 +8073,12 @@ function PartialPayment(props) {
8049
8073
  onClose: handleClose,
8050
8074
  children: [
8051
8075
  error && /* @__PURE__ */ jsx28("div", { style: { maxHeight: "606px", minHeight: "60vh", padding: "40px" }, children: /* @__PURE__ */ jsx28(ErrorCardMessage_default, { error, onClose: handleClose }) }),
8076
+ errorIframe && /* @__PURE__ */ jsx28("div", { style: { maxHeight: "606px", minHeight: "60vh", padding: "40px" }, children: /* @__PURE__ */ jsx28(ErrorCardMessage_default, { error: errorIframe, onClose: () => {
8077
+ setErrorIframe("");
8078
+ } }) }),
8052
8079
  success && /* @__PURE__ */ jsx28(SuccessMsz, { onClose: handleClose, tranId }),
8053
- !error && !success && /* @__PURE__ */ jsxs17(Fragment17, { children: [
8054
- (loading || loading2) && /* @__PURE__ */ jsx28(Loader_default, { loading: loading || loading2 }),
8080
+ !error && !success && !errorIframe && /* @__PURE__ */ jsxs17(Fragment17, { children: [
8081
+ (loading || loading2 || loadingIframe) && /* @__PURE__ */ jsx28(Loader_default, { loading: loading || loading2 || loadingIframe }),
8055
8082
  /* @__PURE__ */ jsx28("div", { className: "frac-card-payment-page frac-form", children: /* @__PURE__ */ jsxs17("div", { className: "parent-pay-container", children: [
8056
8083
  /* @__PURE__ */ jsx28("span", { className: "request-payment-close-popup", onClick: handleClose, children: /* @__PURE__ */ jsxs17("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: [
8057
8084
  /* @__PURE__ */ jsx28("g", { clipPath: "url(#clip0_12425_52336)", children: /* @__PURE__ */ jsx28("path", { d: "M9.46585 8.01168L15.6959 1.7814C16.1014 1.37615 16.1014 0.720912 15.6959 0.315659C15.2907 -0.0895946 14.6354 -0.0895946 14.2302 0.315659L7.99991 6.54593L1.76983 0.315659C1.36438 -0.0895946 0.709336 -0.0895946 0.304082 0.315659C-0.101361 0.720912 -0.101361 1.37615 0.304082 1.7814L6.53416 8.01168L0.304082 14.2419C-0.101361 14.6472 -0.101361 15.3024 0.304082 15.7077C0.506045 15.9098 0.771595 16.0114 1.03695 16.0114C1.30232 16.0114 1.56768 15.9098 1.76983 15.7077L7.99991 9.47742L14.2302 15.7077C14.4323 15.9098 14.6977 16.0114 14.9631 16.0114C15.2284 16.0114 15.4938 15.9098 15.6959 15.7077C16.1014 15.3024 16.1014 14.6472 15.6959 14.2419L9.46585 8.01168Z", fill: "#727272" }) }),
@@ -10486,7 +10513,10 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
10486
10513
  return /* @__PURE__ */ jsxs19(Fragment18, { children: [
10487
10514
  initialLoader && /* @__PURE__ */ jsx32(Loader_default, { loading: initialLoader }),
10488
10515
  error && /* @__PURE__ */ jsx32("div", { style: { maxHeight: "606px", minHeight: "60vh", padding: "40px" }, children: /* @__PURE__ */ jsx32(ErrorCardMessage_default, { error, onClose: handleClose }) }),
10489
- !error && /* @__PURE__ */ jsxs19(Fragment18, { children: [
10516
+ errorIframe && /* @__PURE__ */ jsx32("div", { style: { maxHeight: "606px", minHeight: "60vh", padding: "40px" }, children: /* @__PURE__ */ jsx32(ErrorCardMessage_default, { error: errorIframe, onClose: () => {
10517
+ setErrorIframe("");
10518
+ } }) }),
10519
+ !error && !errorIframe && /* @__PURE__ */ jsxs19(Fragment18, { children: [
10490
10520
  (loading || loading2 || loadingIframe) && /* @__PURE__ */ jsx32(Loader_default, { loading: loading || loading2 || loadingPrev || orderLoader || loadingIframe }),
10491
10521
  /* @__PURE__ */ jsxs19("div", { className: "frac-card-payment-page frac-form frac-new-form", children: [
10492
10522
  /* @__PURE__ */ jsx32("div", { ref: threeDSContainerRef, style: { width: "100%", height: "100%" } }),