@everymatrix/cashier-page 1.41.0 → 1.43.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 +1 -0
- package/dist/cashier-page.js +490 -476
- package/dist/cashier-page.js.map +1 -1
- package/index.html +2 -3
- package/package.json +2 -2
- package/rollup.config.js +2 -0
- package/src/CashierPage.svelte +8 -1
- package/src/assets/session-expired-icon.png +0 -0
package/index.html
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
cashier-page
|
|
9
9
|
</title>
|
|
10
10
|
<link rel="stylesheet" href="public/reset.css">
|
|
11
|
-
|
|
11
|
+
<script src="dist/cashier-page.js" type="text/javascript"></script>
|
|
12
12
|
</head>
|
|
13
13
|
|
|
14
14
|
<body>
|
|
@@ -31,8 +31,7 @@
|
|
|
31
31
|
</header>
|
|
32
32
|
|
|
33
33
|
<div class="webcomponent">
|
|
34
|
-
|
|
34
|
+
<cashier-page type="Deposit" channel="Desktop" translationurl="https://static.everymatrix.com/mmstage/translations/6/mm-localization-en-8.json" endpoint="https://zirvebet-api.stage.norway.everymatrix.com" session="afdf7cf2-75ef-4375-8b0b-562e19ed75ed" lang="tr" customerid="6446553" currency="TRY" amount="0" clientstylingurl="https://zirvebet-stage.everymatrix.com/static/css/widgets/cashier-page/style-1.0.227.css" failurl="https://zirvebet-stage.everymatrix.com/tr/receipt" successurl="https://zirvebet-stage.everymatrix.com/tr/receipt" cancelurl="https://zirvebet-stage.everymatrix.com/tr/receipt"></cashier-page>
|
|
35
35
|
</div>
|
|
36
|
-
|
|
37
36
|
</body>
|
|
38
37
|
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/cashier-page",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.43.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": "2b46cd3311230285da87ca4b133f9dd5735a0db7"
|
|
39
39
|
}
|
package/rollup.config.js
CHANGED
|
@@ -6,6 +6,7 @@ import livereload from 'rollup-plugin-livereload';
|
|
|
6
6
|
import { terser } from 'rollup-plugin-terser';
|
|
7
7
|
import sveltePreprocess from 'svelte-preprocess';
|
|
8
8
|
import typescript from '@rollup/plugin-typescript';
|
|
9
|
+
import image from '@rollup/plugin-image';
|
|
9
10
|
import postcss from 'rollup-plugin-postcss';
|
|
10
11
|
const production = process.env.NODE_ENV === 'production';
|
|
11
12
|
const dev = process.env.NODE_ENV === 'development';
|
|
@@ -44,6 +45,7 @@ export default {
|
|
|
44
45
|
port: 5050,
|
|
45
46
|
}),
|
|
46
47
|
dev && livereload({ watch: ['', 'dist'] }),
|
|
48
|
+
image(),
|
|
47
49
|
typescript({
|
|
48
50
|
sourceMap: !production,
|
|
49
51
|
inlineSources: !production,
|
package/src/CashierPage.svelte
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import type {PaymentMethod} from "./CashierPage.types";
|
|
8
8
|
import {TxnChannel, TxnType, ResponseCode} from "./CashierPage.types";
|
|
9
|
+
import errorSessionImage from './assets/session-expired-icon.png';
|
|
9
10
|
|
|
10
11
|
import '@everymatrix/cashier-header';
|
|
11
12
|
import '@everymatrix/cashier-verifications';
|
|
@@ -406,7 +407,6 @@
|
|
|
406
407
|
{translationurl}
|
|
407
408
|
{clientstylingurl}
|
|
408
409
|
{clientstyling}
|
|
409
|
-
imgurl = {errorResponseCode === ResponseCode.JwtTokenError ? 'session-expired-icon.png' : ''}
|
|
410
410
|
hidebuttons= {errorResponseCode !== ResponseCode.JwtTokenError}
|
|
411
411
|
errorcode={errorResponseCode}
|
|
412
412
|
>
|
|
@@ -414,6 +414,13 @@
|
|
|
414
414
|
<span slot="text">{errorMessage}</span>
|
|
415
415
|
{/if}
|
|
416
416
|
{#if errorResponseCode === ResponseCode.JwtTokenError}
|
|
417
|
+
<div slot="icon">
|
|
418
|
+
{#if assetsurl}
|
|
419
|
+
<img src="{`${assetsurl}/session-expired-icon.png`}" width="300px" alt="error">
|
|
420
|
+
{:else}
|
|
421
|
+
<img src={errorSessionImage} width="300px" alt="error">
|
|
422
|
+
{/if}
|
|
423
|
+
</div>
|
|
417
424
|
<span slot="title">{$_('sessionExpiredTitle')}</span>
|
|
418
425
|
<span slot="text">{$_('sessionExpiredText')}</span>
|
|
419
426
|
<div slot="button" class="CashierErrorButton" on:click={renewSession}>{$_('continueSession')}</div>
|
|
Binary file
|