paymob-pixel-alpha 1.1.55 → 1.1.56
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 +21 -12
- package/package.json +2 -2
package/main.js
CHANGED
|
@@ -32164,7 +32164,7 @@ const src_constants_SAVED_CARD_TYPES = {
|
|
|
32164
32164
|
MAESTRO: 'MAESTRO',
|
|
32165
32165
|
MEEZA: 'MEEZA',
|
|
32166
32166
|
MADA: 'MADA',
|
|
32167
|
-
OMAN_NET: '
|
|
32167
|
+
OMAN_NET: 'MAAL',
|
|
32168
32168
|
JCB: 'JCB'
|
|
32169
32169
|
};
|
|
32170
32170
|
;// ../../libs/design-system/src/assets/Icons/index.tsx
|
|
@@ -71781,7 +71781,7 @@ function src_IframeCard(props) {
|
|
|
71781
71781
|
data,
|
|
71782
71782
|
cardHolderName,
|
|
71783
71783
|
paymentToken: hasOmanNetIntegration && isOmanNetCard ? subType.paymentToken : paymentToken,
|
|
71784
|
-
subType: hasOmanNetIntegration && isOmanNetCard ? subType.type : 'CARD',
|
|
71784
|
+
subType: hasOmanNetIntegration && isOmanNetCard ? subType.type === 'OMANNET' ? 'MAAL' : subType.type : 'CARD',
|
|
71785
71785
|
saveCard,
|
|
71786
71786
|
tenure
|
|
71787
71787
|
});
|
|
@@ -81399,6 +81399,7 @@ function src_apple_pay_ApplePay(props) {
|
|
|
81399
81399
|
currency,
|
|
81400
81400
|
amount,
|
|
81401
81401
|
merchantName,
|
|
81402
|
+
displayName,
|
|
81402
81403
|
paymentToken,
|
|
81403
81404
|
integrationId,
|
|
81404
81405
|
validatemerchant,
|
|
@@ -81451,7 +81452,7 @@ function src_apple_pay_ApplePay(props) {
|
|
|
81451
81452
|
requiredShippingContactFields: [],
|
|
81452
81453
|
merchantCapabilities: ['supports3DS'],
|
|
81453
81454
|
total: {
|
|
81454
|
-
label: merchantName,
|
|
81455
|
+
label: displayName || merchantName,
|
|
81455
81456
|
amount: discount.hasDiscount ? discount.discountAmount : amount
|
|
81456
81457
|
}
|
|
81457
81458
|
};
|
|
@@ -81473,7 +81474,7 @@ function src_apple_pay_ApplePay(props) {
|
|
|
81473
81474
|
console.log("start validation request");
|
|
81474
81475
|
console.log(`validationURL: ${event.validationURL}`);
|
|
81475
81476
|
console.log(`integrationId: ${integrationId}`);
|
|
81476
|
-
const merchantSession = await validatemerchant(event.validationURL, integrationId);
|
|
81477
|
+
const merchantSession = await validatemerchant(event.validationURL, integrationId, displayName);
|
|
81477
81478
|
console.log("validation request completed");
|
|
81478
81479
|
console.log(`merchantSession: ${merchantSession}`);
|
|
81479
81480
|
console.log("start completeMerchantValidation");
|
|
@@ -81883,10 +81884,11 @@ function src_GooglePayElement({
|
|
|
81883
81884
|
}
|
|
81884
81885
|
;// ./src/services/applePayService.ts
|
|
81885
81886
|
|
|
81886
|
-
const src_applePayService_validatemerchant = async (appleURL, integrationId) => {
|
|
81887
|
+
const src_applePayService_validatemerchant = async (appleURL, integrationId, displayName) => {
|
|
81887
81888
|
return src_lib_axios.post(`/api/auth/merchant/validate`, {
|
|
81888
81889
|
appleURL,
|
|
81889
|
-
integrationId
|
|
81890
|
+
integrationId,
|
|
81891
|
+
displayName
|
|
81890
81892
|
}).then(res => res.data.api_response).catch(err => err == null ? void 0 : err.response);
|
|
81891
81893
|
};
|
|
81892
81894
|
const src_paymentauthorized = async (applePaytoken, paymentToken) => {
|
|
@@ -81917,7 +81919,8 @@ function src_ApplePayElements({
|
|
|
81917
81919
|
onAfterPaymentComplete,
|
|
81918
81920
|
onPaymentCancel,
|
|
81919
81921
|
isLoading,
|
|
81920
|
-
country
|
|
81922
|
+
country,
|
|
81923
|
+
displayName
|
|
81921
81924
|
}) {
|
|
81922
81925
|
var _amount$toString;
|
|
81923
81926
|
const {
|
|
@@ -81935,6 +81938,7 @@ function src_ApplePayElements({
|
|
|
81935
81938
|
currency: currency,
|
|
81936
81939
|
amount: (_amount$toString = amount.toString()) == null ? void 0 : _amount$toString.replace(/,/g, ''),
|
|
81937
81940
|
merchantName: merchantName,
|
|
81941
|
+
displayName: displayName,
|
|
81938
81942
|
paymentToken: (applePay == null ? void 0 : applePay.token) || '',
|
|
81939
81943
|
integrationId: (applePay == null ? void 0 : applePay.id) || '',
|
|
81940
81944
|
validatemerchant: src_applePayService_validatemerchant,
|
|
@@ -82319,7 +82323,8 @@ const src_PaymentsList = /*#__PURE__*/(0,src_react.forwardRef)((props, ref) => {
|
|
|
82319
82323
|
selectedPaymentMethods,
|
|
82320
82324
|
integrationType,
|
|
82321
82325
|
discounts,
|
|
82322
|
-
viewMode
|
|
82326
|
+
viewMode,
|
|
82327
|
+
displayName
|
|
82323
82328
|
} = props;
|
|
82324
82329
|
const {
|
|
82325
82330
|
t
|
|
@@ -82430,7 +82435,8 @@ const src_PaymentsList = /*#__PURE__*/(0,src_react.forwardRef)((props, ref) => {
|
|
|
82430
82435
|
onPaymentCancel: onPaymentCancel,
|
|
82431
82436
|
customStyle: customStyle == null ? void 0 : customStyle.button,
|
|
82432
82437
|
isLoading: isLoading,
|
|
82433
|
-
country: country
|
|
82438
|
+
country: country,
|
|
82439
|
+
displayName: displayName
|
|
82434
82440
|
}), isGooglePay() && /*#__PURE__*/(0,src_jsx_runtime.jsx)(src_GooglePayElement, {
|
|
82435
82441
|
payment: googlePaymentMethod,
|
|
82436
82442
|
customStyle: customStyle == null ? void 0 : customStyle.button,
|
|
@@ -82742,7 +82748,8 @@ const src_Payments_Payments = /*#__PURE__*/(0,src_react.forwardRef)((props, ref)
|
|
|
82742
82748
|
selectedPaymentMethods,
|
|
82743
82749
|
integrationType,
|
|
82744
82750
|
discounts,
|
|
82745
|
-
viewMode = 'tab'
|
|
82751
|
+
viewMode = 'tab',
|
|
82752
|
+
displayName
|
|
82746
82753
|
} = props;
|
|
82747
82754
|
const [paymentMethod, setPaymentMethod] = (0,src_react.useState)(payment);
|
|
82748
82755
|
const styles = src_getStyles_getStyles(customStyle);
|
|
@@ -82876,7 +82883,8 @@ const src_Payments_Payments = /*#__PURE__*/(0,src_react.forwardRef)((props, ref)
|
|
|
82876
82883
|
ref: ref,
|
|
82877
82884
|
integrationType: integrationType,
|
|
82878
82885
|
discounts: discounts,
|
|
82879
|
-
viewMode: viewMode
|
|
82886
|
+
viewMode: viewMode,
|
|
82887
|
+
displayName: displayName
|
|
82880
82888
|
});
|
|
82881
82889
|
};
|
|
82882
82890
|
return /*#__PURE__*/(0,src_jsx_runtime.jsx)(src_jsx_runtime.Fragment, {
|
|
@@ -86814,7 +86822,8 @@ class src_Pixel_0 {
|
|
|
86814
86822
|
}, {
|
|
86815
86823
|
integrationType: this._integrationType,
|
|
86816
86824
|
discounts: this._discounts,
|
|
86817
|
-
viewMode: this._options.viewMode
|
|
86825
|
+
viewMode: this._options.viewMode,
|
|
86826
|
+
displayName: this._options.displayName
|
|
86818
86827
|
}), Date.now())
|
|
86819
86828
|
})
|
|
86820
86829
|
}));
|
package/package.json
CHANGED