@fractalpay/fractalpay-next-dev 0.0.286 → 0.0.287

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.286",
42
+ version: "0.0.287",
43
43
  private: false,
44
44
  type: "module",
45
45
  scripts: {
@@ -3992,7 +3992,7 @@ function GetPaymentPage(props) {
3992
3992
  setLoading2(false);
3993
3993
  }
3994
3994
  const card_issue_type = ((_i2 = tokenizeData == null ? void 0 : tokenizeData.bin_lookup_result) == null ? void 0 : _i2.card_issue_type) || null;
3995
- if (card_issue_type === "Debit" && (props == null ? void 0 : props.pass_fee)) {
3995
+ if (card_issue_type === "Debit" && (props == null ? void 0 : props.pass_fee) && (paymentData == null ? void 0 : paymentData.surchargeProgram) == 1) {
3996
3996
  setLoderText("Processing Debit card without fee");
3997
3997
  }
3998
3998
  console.log(tokenizeData, "tokenizeData");
@@ -4171,7 +4171,7 @@ function GetPaymentPage(props) {
4171
4171
  if (customer_id) {
4172
4172
  if (card_id) {
4173
4173
  setLoading2(true);
4174
- if (card_issue_type == "Debit" && (props == null ? void 0 : props.pass_fee)) {
4174
+ if (card_issue_type == "Debit" && (props == null ? void 0 : props.pass_fee) && (paymentData == null ? void 0 : paymentData.surchargeProgram) == 1) {
4175
4175
  setLoderText("Processing Debit card without fee");
4176
4176
  }
4177
4177
  let resultofOrderCreate;
@@ -7982,7 +7982,7 @@ function PartialPayment(props) {
7982
7982
  session_key: (_f2 = (_e2 = sesionResult == null ? void 0 : sesionResult.data) == null ? void 0 : _e2.data) == null ? void 0 : _f2.session_key
7983
7983
  });
7984
7984
  const card_issue_type = ((_g2 = tokenizeData == null ? void 0 : tokenizeData.bin_lookup_result) == null ? void 0 : _g2.card_issue_type) || null;
7985
- if (card_issue_type === "Debit" && (props == null ? void 0 : props.pass_fee)) {
7985
+ if (card_issue_type === "Debit" && (props == null ? void 0 : props.pass_fee) && (paymentData == null ? void 0 : paymentData.surchargeProgram) == 1) {
7986
7986
  setLoderText("Processing Debit card without fee");
7987
7987
  }
7988
7988
  const reqData = JSON.stringify(__spreadProps(__spreadValues({}, tokenizeData), {
@@ -8192,7 +8192,7 @@ function PartialPayment(props) {
8192
8192
  "Content-Type": "application/json"
8193
8193
  };
8194
8194
  setLoading2(true);
8195
- if (card_issue_type == "Debit" && (props == null ? void 0 : props.pass_fee)) {
8195
+ if (card_issue_type == "Debit" && (props == null ? void 0 : props.pass_fee) && (paymentData == null ? void 0 : paymentData.surchargeProgram) == 1) {
8196
8196
  setLoderText("Processing Debit card without fee");
8197
8197
  }
8198
8198
  socketClient_default.emit("sendMessage", { url: chargeurl, body: card_type == "Bank" ? rest : chargeobj, isChargebycard: true });