@fractalpay/fractalpay-next-dev 0.0.298 → 0.0.300
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 +14 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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.
|
|
42
|
+
version: "0.0.300",
|
|
43
43
|
private: false,
|
|
44
44
|
type: "module",
|
|
45
45
|
scripts: {
|
|
@@ -3414,13 +3414,15 @@ var customCSS = `
|
|
|
3414
3414
|
outline: none !important;
|
|
3415
3415
|
}
|
|
3416
3416
|
label {
|
|
3417
|
-
font-family: 'IBM Plex Mono', monospace
|
|
3418
|
-
color: #727272 !important;
|
|
3419
|
-
margin-bottom: 2px !important;
|
|
3420
|
-
font-weight: 600 !important;
|
|
3417
|
+
font-family: 'IBM Plex Mono', monospace;
|
|
3421
3418
|
font-size: 12px !important;
|
|
3419
|
+
letter-spacing: 1.1px !important;
|
|
3420
|
+
color: #867c94 !important;
|
|
3421
|
+
font-weight: 500 !important;
|
|
3422
|
+
line-height: normal;
|
|
3423
|
+
margin: 0 0 2px 0 !important;
|
|
3424
|
+
text-align: start !important;
|
|
3422
3425
|
display: block !important;
|
|
3423
|
-
text-align: left !important;
|
|
3424
3426
|
text-transform: uppercase !important;
|
|
3425
3427
|
}
|
|
3426
3428
|
input.card-data.card-data-cvv{
|
|
@@ -3594,7 +3596,7 @@ function FractalWidgetStyles() {
|
|
|
3594
3596
|
.fps-logo { height: 43px; display: flex; align-items: center; }
|
|
3595
3597
|
.fps-logo img { max-height: 43px; max-width: 160px; object-fit: contain; }
|
|
3596
3598
|
.fps-divider { width: 100%; height: 1px; background: var(--fps-border); flex-shrink: 0; }
|
|
3597
|
-
.fps-invoice { font-size: 14px; font-weight: 500; color: var(--fps-text-tertiary); }
|
|
3599
|
+
.fps-invoice { font-size: 14px; font-weight: 500; color: var(--fps-text-tertiary); text-align: start !important; }
|
|
3598
3600
|
.fps-lines { display: flex; flex-direction: column; gap: 8px; width: 100%; font-size: 14px; font-weight: 500; text-align: start !important; }
|
|
3599
3601
|
.fps-line { display: flex; align-items: center; justify-content: space-between; }
|
|
3600
3602
|
.fps-line .fps-lbl { color: var(--fps-text-tertiary); }
|
|
@@ -4625,7 +4627,8 @@ function GetPaymentPage(props) {
|
|
|
4625
4627
|
setLoading2(true);
|
|
4626
4628
|
try {
|
|
4627
4629
|
const formData = {
|
|
4628
|
-
amount: `${props.amount || 0}`,
|
|
4630
|
+
// amount: `${props.amount || 0}`,
|
|
4631
|
+
amount: `${leftTotal}`,
|
|
4629
4632
|
fractalpayPublicKey: fractalpayClientKey,
|
|
4630
4633
|
orderId: props == null ? void 0 : props.orderID,
|
|
4631
4634
|
customer_id: props == null ? void 0 : props.customerId,
|
|
@@ -4885,7 +4888,8 @@ function GetPaymentPage(props) {
|
|
|
4885
4888
|
let resultofOrderCreate;
|
|
4886
4889
|
if (!(card_type === "Bank")) {
|
|
4887
4890
|
const formData = {
|
|
4888
|
-
amount: `${props.amount || 0}`,
|
|
4891
|
+
// amount: `${props.amount || 0}`,
|
|
4892
|
+
amount: `${leftTotal}`,
|
|
4889
4893
|
fractalpayPublicKey: fractalpayClientKey,
|
|
4890
4894
|
orderId: props == null ? void 0 : props.orderID,
|
|
4891
4895
|
customer_id: props == null ? void 0 : props.customerId,
|
|
@@ -5089,7 +5093,7 @@ function GetPaymentPage(props) {
|
|
|
5089
5093
|
const invoiceLabel = invoiceNo ? `Invoice #${invoiceNo}` : "Invoice";
|
|
5090
5094
|
const baseAmount = Number((_a = cashDiscount != null ? cashDiscount : props == null ? void 0 : props.amount) != null ? _a : 0);
|
|
5091
5095
|
const fundingType = (_b = surchargeResult == null ? void 0 : surchargeResult.card_issue_type) == null ? void 0 : _b.toLowerCase();
|
|
5092
|
-
const surchargeBlocked = !!surchargeResult && (surchargeResult.surcharge_allowed === false || !(Number(surchargeResult.max_surcharge_percent) > 0)
|
|
5096
|
+
const surchargeBlocked = !!surchargeResult && (fundingType === "debit" || fundingType === "prepaid" || fundingType !== "unknown" && (surchargeResult.surcharge_allowed === false || !(Number(surchargeResult.max_surcharge_percent) > 0)));
|
|
5093
5097
|
const cardTotal = surchargeBlocked ? baseAmount : Number((props == null ? void 0 : props.amount) || 0);
|
|
5094
5098
|
const surchargeFee = Math.max(cardTotal - baseAmount, 0);
|
|
5095
5099
|
const isBankView = activetab === "ach";
|