@fractalpay/fractalpay-next 0.1.1 → 0.1.3

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",
42
- version: "0.1.1",
42
+ version: "0.1.3",
43
43
  private: false,
44
44
  type: "module",
45
45
  scripts: {
@@ -5221,8 +5221,8 @@ function GetPaymentPage(props) {
5221
5221
  const invoiceLabel = invoiceNo ? `Invoice #${invoiceNo}` : "Invoice";
5222
5222
  const baseAmount = Number((_a = cashDiscount != null ? cashDiscount : props == null ? void 0 : props.amount) != null ? _a : 0);
5223
5223
  const fundingType = (_b = surchargeResult == null ? void 0 : surchargeResult.card_issue_type) == null ? void 0 : _b.toLowerCase();
5224
- const surchargeBlocked = !!surchargeResult && (fundingType === "debit" || fundingType === "prepaid" || fundingType !== "unknown" && (surchargeResult.surcharge_allowed === false || !(Number(surchargeResult.max_surcharge_percent) > 0)));
5225
- const cardTotal = surchargeBlocked ? baseAmount : Number((props == null ? void 0 : props.amount) || 0);
5224
+ const surchargeBlocked = surchargeResult && (fundingType !== "debit" && fundingType !== "prepaid");
5225
+ const cardTotal = !surchargeBlocked ? baseAmount : Number((props == null ? void 0 : props.amount) || 0);
5226
5226
  const surchargeFee = Math.max(cardTotal - baseAmount, 0);
5227
5227
  const isBankView = activetab === "ach";
5228
5228
  const discountNum = Number((props == null ? void 0 : props.discount) || 0);
@@ -10326,6 +10326,7 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
10326
10326
  };
10327
10327
  const completeFractalFlow = async (tokenizeData, intentid, typeoftoken) => {
10328
10328
  var _a2, _b2, _c2, _d2, _e2, _f2, _g2;
10329
+ showLoader();
10329
10330
  try {
10330
10331
  console.log({
10331
10332
  tokenizeData,