@everymatrix/cashier-page 1.36.0 → 1.37.0
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/CHANGELOG.md +2 -0
- package/dist/cashier-page.js +49 -49
- package/dist/cashier-page.js.map +1 -1
- package/package.json +2 -2
- package/src/CashierPage.svelte +12 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/cashier-page",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.37.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": "23b14632ab842e43bf71843de47000e6dd141751"
|
|
39
39
|
}
|
package/src/CashierPage.svelte
CHANGED
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
const setTitle = () => {
|
|
152
|
-
if (showMethodDetailsPage && isMobileWidth()) {
|
|
152
|
+
if (showMethodDetailsPage && isMobileWidth() && !errorResponseCode) {
|
|
153
153
|
title = selectedPaymentMethod.Label || selectedPaymentMethod.Name;
|
|
154
154
|
showHeaderBack = 'true'
|
|
155
155
|
} else {
|
|
@@ -229,13 +229,14 @@
|
|
|
229
229
|
|
|
230
230
|
const messageHandler = (e:any) => {
|
|
231
231
|
if (e.data.type === 'ShowSessionError') {
|
|
232
|
-
errorMessage = e.data.error
|
|
232
|
+
errorMessage = e.data.error;
|
|
233
233
|
}
|
|
234
234
|
if (e.data.type === 'ToggleDisableActionOnPage') {
|
|
235
|
-
isProcessingTxn = e.data.disable
|
|
235
|
+
isProcessingTxn = e.data.disable;
|
|
236
236
|
}
|
|
237
237
|
if (e.data.type === 'ErrorResponseCode') {
|
|
238
238
|
errorResponseCode = e.data.errorResponseCode;
|
|
239
|
+
setTitle();
|
|
239
240
|
}
|
|
240
241
|
if (e.data.type === 'ShowConfirmModal') {
|
|
241
242
|
showConfirmModal = e.data.showConfirmModal;
|
|
@@ -245,7 +246,7 @@
|
|
|
245
246
|
if (e.data.type === 'RedirectInfo') {
|
|
246
247
|
redirectUrl = e.data.redirectUrl;
|
|
247
248
|
redirectMode = e.data.redirectMode;
|
|
248
|
-
setTitle()
|
|
249
|
+
setTitle();
|
|
249
250
|
}
|
|
250
251
|
if (e.data.type === 'ShowCashierModal') {
|
|
251
252
|
modalErrorMessage = e.data.modalErrorMessage;
|
|
@@ -304,7 +305,10 @@
|
|
|
304
305
|
</cashier-error>
|
|
305
306
|
</cashier-modal>
|
|
306
307
|
{#if showConfirmModal}
|
|
307
|
-
<cashier-confirm-modal
|
|
308
|
+
<cashier-confirm-modal
|
|
309
|
+
{clientstylingurl}
|
|
310
|
+
{clientstyling}
|
|
311
|
+
>
|
|
308
312
|
<span slot="text">{ confirmAmount && !hideAmountField ? $_(`${type.toLowerCase()}.confirmTextWithAmount`,
|
|
309
313
|
{ values:{ amount: formatter.format(confirmAmount), currency }}): $_(`${type.toLowerCase()}.confirmText`)}</span>
|
|
310
314
|
<div slot="confirm">{$_(`${type.toLowerCase()}.confirmButton`)}</div>
|
|
@@ -403,11 +407,9 @@
|
|
|
403
407
|
display: none;
|
|
404
408
|
}
|
|
405
409
|
&:has(.Header) {
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
box-sizing: border-box;
|
|
410
|
-
}
|
|
410
|
+
border-radius: 6px;
|
|
411
|
+
border: 1px solid var(--mmw--color-grey-105, #E8E9EB);
|
|
412
|
+
box-sizing: border-box;
|
|
411
413
|
.Content, .CashierPage, .DisablePage {
|
|
412
414
|
height: calc(100% - var(--mmw--header-height, 32px));
|
|
413
415
|
}
|