paymob-pixel-alpha 1.1.45 → 1.1.46
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/main.js +9 -9
- package/package.json +1 -1
package/main.js
CHANGED
|
@@ -81111,11 +81111,11 @@ function Knet(props) {
|
|
|
81111
81111
|
className: "text-[#101828] text-sm font-medium",
|
|
81112
81112
|
children: [displayCurrency, " ", displayAmount]
|
|
81113
81113
|
})]
|
|
81114
|
-
}), /*#__PURE__*/(0,jsx_runtime.
|
|
81114
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
81115
81115
|
className: "text-[#475467] font-inter text-sm leading-[18px] tracking-[0.16px] mb-2",
|
|
81116
|
-
children:
|
|
81116
|
+
children: (_customStyle$knetText5 = customStyle == null || (_customStyle$knetText6 = customStyle.knetText) == null ? void 0 : _customStyle$knetText6.TRANSACTION_PROCEED) != null ? _customStyle$knetText5 : t('TRANSACTION_PROCESS_CURRENCY', {
|
|
81117
81117
|
currency: displayCurrency
|
|
81118
|
-
})
|
|
81118
|
+
})
|
|
81119
81119
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Button_Button, {
|
|
81120
81120
|
id: "pay-button",
|
|
81121
81121
|
label: `${(_customStyle$knetText7 = customStyle == null || (_customStyle$knetText8 = customStyle.knetText) == null ? void 0 : _customStyle$knetText8.PAY_KNET_BUTTON) != null ? _customStyle$knetText7 : t('PAY')} ${displayCurrency} ${displayAmount}`,
|
|
@@ -81147,7 +81147,7 @@ const payWithKnet = (token, amount) => {
|
|
|
81147
81147
|
subtype: 'KNET'
|
|
81148
81148
|
},
|
|
81149
81149
|
payment_token: token,
|
|
81150
|
-
api_source: "
|
|
81150
|
+
api_source: " PIXEL"
|
|
81151
81151
|
}).then(res => res).catch(err => err == null ? void 0 : err.response);
|
|
81152
81152
|
};
|
|
81153
81153
|
;// ./src/components/Payments/Knet/index.tsx
|
|
@@ -81414,11 +81414,11 @@ function KnetApplePay(props) {
|
|
|
81414
81414
|
className: "text-[#101828] text-sm font-medium",
|
|
81415
81415
|
children: [displayCurrency, " ", displayAmount]
|
|
81416
81416
|
})]
|
|
81417
|
-
}), /*#__PURE__*/(0,jsx_runtime.
|
|
81417
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
81418
81418
|
className: "text-[#475467] font-inter text-sm leading-[18px] tracking-[0.16px] mb-6",
|
|
81419
|
-
children:
|
|
81419
|
+
children: (_customStyle$knetAppl5 = customStyle == null || (_customStyle$knetAppl6 = customStyle.knetApplePayText) == null ? void 0 : _customStyle$knetAppl6.TRANSACTION_PROCEED) != null ? _customStyle$knetAppl5 : t('TRANSACTION_PROCESS_CURRENCY', {
|
|
81420
81420
|
currency: displayCurrency
|
|
81421
|
-
})
|
|
81421
|
+
})
|
|
81422
81422
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Button_Button, {
|
|
81423
81423
|
id: "apple-pay-button",
|
|
81424
81424
|
icon: apple_pay_namespaceObject,
|
|
@@ -81445,11 +81445,11 @@ const validatemerchant = async (appleURL, integrationId) => {
|
|
|
81445
81445
|
integrationId
|
|
81446
81446
|
}).then(res => res.data.api_response).catch(err => err == null ? void 0 : err.response);
|
|
81447
81447
|
};
|
|
81448
|
-
const knetApplePayPayment = async (
|
|
81448
|
+
const knetApplePayPayment = async (applePaytoken, paymentToken, clientData) => {
|
|
81449
81449
|
var _clientData$name$trim, _clientData$name$trim2, _clientData$name$trim3, _clientData$name$trim4;
|
|
81450
81450
|
return lib_axios.post(`/api/acceptance/payments/pay`, Object.assign({
|
|
81451
81451
|
payment_token: paymentToken,
|
|
81452
|
-
api_source: "
|
|
81452
|
+
api_source: "PIXEL",
|
|
81453
81453
|
source: {
|
|
81454
81454
|
identifier: applePaytoken,
|
|
81455
81455
|
subtype: 'KNET_APPLE_PAY'
|