@everymatrix/cashier-method-details 1.37.12 → 1.39.0
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@everymatrix/cashier-method-details",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.39.0",
|
4
4
|
"main": "index.js",
|
5
5
|
"svelte": "src/index.ts",
|
6
6
|
"scripts": {
|
@@ -35,5 +35,5 @@
|
|
35
35
|
"publishConfig": {
|
36
36
|
"access": "public"
|
37
37
|
},
|
38
|
-
"gitHead": "
|
38
|
+
"gitHead": "d3dbfca9fcdc2d9df9a01f60f283ed699ec828fb"
|
39
39
|
}
|
@@ -421,6 +421,7 @@
|
|
421
421
|
setConfirmModalInfo();
|
422
422
|
setErrorResponseCode();
|
423
423
|
hideMethodsList();
|
424
|
+
window.postMessage({ type: 'StartSessionCountdown', xPaymentSessionToken, selectedPaymentMethodName: selectedpaymentmethodname }, window.location.href);
|
424
425
|
}).finally(() => showSpinner = false)
|
425
426
|
}
|
426
427
|
|
@@ -457,6 +458,9 @@
|
|
457
458
|
if (e.data.type === 'BackCashier') {
|
458
459
|
backToMethodList()
|
459
460
|
}
|
461
|
+
if (e.data.type === 'CloseCashierReceiptPage') {
|
462
|
+
closeReceiptPage()
|
463
|
+
}
|
460
464
|
}
|
461
465
|
|
462
466
|
onMount(() => {
|
@@ -464,7 +468,6 @@
|
|
464
468
|
window.addEventListener('confirmModal', confirmTxn, false);
|
465
469
|
window.addEventListener('closeIframe', closeIframe, false);
|
466
470
|
window.addEventListener('notificationButtonClick', retryRedirect, false);
|
467
|
-
window.addEventListener('closeCashierReceiptPage', closeReceiptPage, false);
|
468
471
|
document.addEventListener('click',closeAllLookups);
|
469
472
|
window.addEventListener('message', messageHandler, false);
|
470
473
|
dayjs.extend(customParseFormat);
|
@@ -474,7 +477,6 @@
|
|
474
477
|
window.removeEventListener('confirmModal', confirmTxn);
|
475
478
|
window.removeEventListener('closeIframe', closeIframe);
|
476
479
|
window.removeEventListener('notificationButtonClick', retryRedirect);
|
477
|
-
window.removeEventListener('closeCashierReceiptPage', closeReceiptPage);
|
478
480
|
window.removeEventListener('message', messageHandler);
|
479
481
|
}
|
480
482
|
});
|
@@ -564,6 +566,7 @@
|
|
564
566
|
showConfirmModal = true;
|
565
567
|
setConfirmModalInfo();
|
566
568
|
toggleDisableActionOnPage();
|
569
|
+
window.postMessage({ type: 'StartSessionCountdown', xPaymentSessionToken, selectedPaymentMethodName: selectedPaymentMethod.Name }, window.location.href);
|
567
570
|
})
|
568
571
|
}
|
569
572
|
|
@@ -660,6 +663,7 @@
|
|
660
663
|
isProcessingTxn = false;
|
661
664
|
toggleDisableActionOnPage();
|
662
665
|
setRedirectInfo();
|
666
|
+
window.postMessage({ type: 'StartSessionCountdown', xPaymentSessionToken, selectedpaymentmethodname: selectedpaymentmethodname }, window.location.href);
|
663
667
|
if (!redirectUrl) {
|
664
668
|
showReceiptPage = true;
|
665
669
|
}
|
package/src/translations.js
CHANGED
@@ -20,18 +20,6 @@ export const TRANSLATIONS = {
|
|
20
20
|
"amountDecimalError": "Amount should have 2 or less digits after decimal point",
|
21
21
|
"invalidFieldError": "{field} is invalid",
|
22
22
|
"backToMethodList": "BACK TO PAYMENT METHODS",
|
23
|
-
"deposit": {
|
24
|
-
"makeTxnButton": "DEPOSIT",
|
25
|
-
"confirmText": "You're going to deposit to your account",
|
26
|
-
"confirmTextWithAmount": "You're going to deposit {amount} {currency} to your account",
|
27
|
-
"confirmButton": "Ok"
|
28
|
-
},
|
29
|
-
"withdraw": {
|
30
|
-
"makeTxnButton": "WITHDRAW",
|
31
|
-
"confirmText": "You're going to withdraw from your account",
|
32
|
-
"confirmTextWithAmount": "You're going to withdraw {amount} {currency} from your account",
|
33
|
-
"confirmButton": "Ok"
|
34
|
-
},
|
35
23
|
},
|
36
24
|
"tr": {
|
37
25
|
"loading": "Yükleniyor...",
|
@@ -53,18 +41,6 @@ export const TRANSLATIONS = {
|
|
53
41
|
"amountIntError": "Tutar tam sayı olmalıdır",
|
54
42
|
"amountDecimalError": "Tutarın ondalık noktadan sonra 2 veya daha az hanesi olmalıdır",
|
55
43
|
"invalidFieldError": "{field} geçersiz",
|
56
|
-
"backToMethodList": "ÖDEME YÖNTEMLERİNE GERİ DÖN"
|
57
|
-
"deposit": {
|
58
|
-
"makeTxnButton": "YATIR",
|
59
|
-
"confirmText": "Hesabınıza yatırıyorsunuz",
|
60
|
-
"confirmTextWithAmount": "Hesabınıza {amount} {currency} yatırıyorsunuz",
|
61
|
-
"confirmButton": "Tamam"
|
62
|
-
},
|
63
|
-
"withdraw": {
|
64
|
-
"makeTxnButton": "ÇEK",
|
65
|
-
"confirmText": "Hesabınızdan çekiyorsunuz",
|
66
|
-
"confirmTextWithAmount": "Hesabınıza {amount} {currency} yatırıyorsunuz",
|
67
|
-
"confirmButton": "Tamam"
|
68
|
-
}
|
44
|
+
"backToMethodList": "ÖDEME YÖNTEMLERİNE GERİ DÖN"
|
69
45
|
}
|
70
46
|
}
|