node-paytmpg 5.3.2 → 6.4.2
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/app/controllers/adapters/payu.js +251 -0
- package/app/controllers/np_user.controller.js +88 -79
- package/app/controllers/payment_controller.js +213 -84
- package/app/models/np_multidbplugin.js +111 -101
- package/app/views/init.hbs +85 -80
- package/app/views/layouts/index.hbs +46 -51
- package/app/views/result.hbs +43 -47
- package/example.js +33 -50
- package/index.js +75 -15
- package/lib/config/buildConfig.js +113 -0
- package/lib/config/defaults.js +37 -0
- package/lib/config/validator.js +103 -0
- package/lib/services/database.service.js +153 -0
- package/lib/utils/id-generator.js +30 -0
- package/lib/utils/sanitizer.js +25 -0
- package/package.json +44 -42
- package/public/css/style.css +373 -203
package/public/css/style.css
CHANGED
|
@@ -1,269 +1,439 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
clip: rect(0 0 0 0);
|
|
4
|
-
height: 1px;
|
|
5
|
-
margin: -1px;
|
|
6
|
-
overflow: hidden;
|
|
7
|
-
padding: 0;
|
|
8
|
-
position: absolute;
|
|
9
|
-
width: 1px;
|
|
1
|
+
* {
|
|
2
|
+
box-sizing: border-box;
|
|
10
3
|
}
|
|
11
4
|
|
|
12
5
|
body {
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
min-height: 100vh;
|
|
7
|
+
margin: 0;
|
|
8
|
+
font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
|
|
9
|
+
color: var(--color-text);
|
|
10
|
+
background: var(--bg-color);
|
|
15
11
|
}
|
|
16
12
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
body.theme-dark {
|
|
14
|
+
--color-primary: #2f8bff;
|
|
15
|
+
--color-accent: #5ce1e6;
|
|
16
|
+
--color-surface: #0f1021;
|
|
17
|
+
--color-text: #e9ecf2;
|
|
18
|
+
--color-success: #24cf5f;
|
|
19
|
+
--color-danger: #ff6b6b;
|
|
20
|
+
--color-outline: rgba(255,255,255,0.08);
|
|
21
|
+
--bg-color: #0c0c12;
|
|
20
22
|
}
|
|
21
23
|
|
|
22
|
-
.
|
|
23
|
-
|
|
24
|
-
color: #
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
font-size: 12px;
|
|
32
|
-
letter-spacing: 1px;
|
|
33
|
-
text-transform: uppercase;
|
|
34
|
-
border: 0;
|
|
35
|
-
border-radius: 7px;
|
|
36
|
-
outline: 0;
|
|
37
|
-
box-shadow: 3px 3px 20px rgba(0, 0, 0, 0.2);
|
|
38
|
-
-webkit-transition: all .2s;
|
|
39
|
-
transition: all .2s;
|
|
24
|
+
body.theme-light {
|
|
25
|
+
--color-primary: #2467ff;
|
|
26
|
+
--color-accent: #16c1ff;
|
|
27
|
+
--color-surface: #ffffff;
|
|
28
|
+
--color-text: #1f2430;
|
|
29
|
+
--color-success: #1dbf73;
|
|
30
|
+
--color-danger: #e85050;
|
|
31
|
+
--color-outline: rgba(0,0,0,0.08);
|
|
32
|
+
--bg-color: #f7f9fc;
|
|
40
33
|
}
|
|
41
34
|
|
|
42
|
-
.
|
|
43
|
-
-
|
|
44
|
-
|
|
35
|
+
.shell {
|
|
36
|
+
max-width: 780px;
|
|
37
|
+
margin: 32px auto;
|
|
38
|
+
padding: 32px;
|
|
39
|
+
background: var(--color-surface);
|
|
40
|
+
border: 1px solid var(--color-outline);
|
|
41
|
+
border-radius: 18px;
|
|
42
|
+
box-shadow: 0 24px 60px rgba(0,0,0,0.12);
|
|
45
43
|
}
|
|
46
44
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
45
|
+
/* Two-column checkout layout */
|
|
46
|
+
.checkout-grid {
|
|
47
|
+
display: grid;
|
|
48
|
+
grid-template-columns: 320px 1fr;
|
|
49
|
+
gap: 20px;
|
|
50
|
+
align-items: start;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.product-panel {
|
|
54
|
+
padding: 22px;
|
|
55
|
+
border-radius: 16px;
|
|
56
|
+
background: var(--color-surface);
|
|
57
|
+
color: var(--color-text);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.product-panel .product-title {
|
|
61
|
+
font-weight: 700;
|
|
62
|
+
font-size: 16px;
|
|
63
|
+
margin-bottom: 8px;
|
|
51
64
|
}
|
|
52
65
|
|
|
53
|
-
.
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
66
|
+
.product-panel .product-sub {
|
|
67
|
+
font-size: 13px;
|
|
68
|
+
opacity: 0.8;
|
|
69
|
+
margin-bottom: 18px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.product-preview {
|
|
73
|
+
border-radius: 12px;
|
|
74
|
+
overflow: hidden;
|
|
75
|
+
height: 140px;
|
|
76
|
+
background: var(--color-surface);
|
|
77
|
+
border: 1px solid var(--color-outline);
|
|
78
|
+
margin-bottom: 14px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.product-price {
|
|
59
82
|
display: flex;
|
|
60
|
-
-ms-flex-align: center;
|
|
61
|
-
-webkit-box-align: center;
|
|
62
83
|
align-items: center;
|
|
63
|
-
-
|
|
64
|
-
|
|
84
|
+
justify-content: space-between;
|
|
85
|
+
gap: 10px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.product-price .price {
|
|
89
|
+
font-weight: 800;
|
|
90
|
+
font-size: 20px;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.form-panel {
|
|
94
|
+
padding: 24px;
|
|
95
|
+
border-radius: 16px;
|
|
96
|
+
background: var(--color-surface);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.shell__header,
|
|
100
|
+
.shell__footer {
|
|
101
|
+
display: flex;
|
|
102
|
+
align-items: center;
|
|
103
|
+
gap: 12px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.shell__header {
|
|
107
|
+
justify-content: space-between;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.shell__footer {
|
|
65
111
|
justify-content: center;
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
color:
|
|
69
|
-
border-radius: 50%;
|
|
70
|
-
-webkit-transition: all .25s;
|
|
71
|
-
transition: all .25s;
|
|
72
|
-
z-index: 10;
|
|
112
|
+
margin-top: 20px;
|
|
113
|
+
font-size: 13px;
|
|
114
|
+
color: rgba(0,0,0,0.55);
|
|
73
115
|
}
|
|
74
116
|
|
|
75
|
-
.
|
|
76
|
-
|
|
77
|
-
height: 20px;
|
|
117
|
+
body.theme-dark .shell__footer {
|
|
118
|
+
color: rgba(255,255,255,0.7);
|
|
78
119
|
}
|
|
79
120
|
|
|
80
|
-
.
|
|
81
|
-
|
|
121
|
+
.shell__content {
|
|
122
|
+
margin-top: 20px;
|
|
82
123
|
}
|
|
83
124
|
|
|
84
|
-
.
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
125
|
+
.brand {
|
|
126
|
+
display: flex;
|
|
127
|
+
align-items: center;
|
|
128
|
+
gap: 12px;
|
|
88
129
|
}
|
|
89
130
|
|
|
90
|
-
.
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
131
|
+
.brand__mark {
|
|
132
|
+
display: inline-flex;
|
|
133
|
+
align-items: center;
|
|
134
|
+
justify-content: center;
|
|
135
|
+
width: 42px;
|
|
136
|
+
height: 42px;
|
|
137
|
+
border-radius: 12px;
|
|
138
|
+
background: var(--color-primary);
|
|
139
|
+
color: #fff;
|
|
140
|
+
font-weight: 700;
|
|
141
|
+
letter-spacing: 0.3px;
|
|
94
142
|
}
|
|
95
143
|
|
|
96
|
-
|
|
97
|
-
width:
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
padding-left: 5px;
|
|
101
|
-
padding-right: 5px;
|
|
102
|
-
letter-spacing: .5px;
|
|
103
|
-
border: 0;
|
|
104
|
-
border-bottom: 2px solid #f0f0f0;
|
|
144
|
+
.brand__mark--img img {
|
|
145
|
+
width: 100%;
|
|
146
|
+
height: 100%;
|
|
147
|
+
object-fit: contain;
|
|
105
148
|
}
|
|
106
149
|
|
|
107
|
-
|
|
108
|
-
|
|
150
|
+
.brand__title {
|
|
151
|
+
font-weight: 700;
|
|
152
|
+
font-size: 16px;
|
|
109
153
|
}
|
|
110
154
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
155
|
+
.brand__meta {
|
|
156
|
+
font-size: 12px;
|
|
157
|
+
color: rgba(255,255,255,0.7);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.pill {
|
|
161
|
+
padding: 6px 12px;
|
|
162
|
+
border-radius: 999px;
|
|
163
|
+
border: 1px solid var(--color-outline);
|
|
164
|
+
color: rgba(255,255,255,0.8);
|
|
165
|
+
font-size: 12px;
|
|
166
|
+
letter-spacing: 0.2px;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
body.theme-light .pill {
|
|
170
|
+
color: rgba(0,0,0,0.7);
|
|
114
171
|
}
|
|
115
172
|
|
|
116
|
-
.
|
|
117
|
-
|
|
118
|
-
|
|
173
|
+
.card {
|
|
174
|
+
background: rgba(255,255,255,0.03);
|
|
175
|
+
border: 1px solid var(--color-outline);
|
|
176
|
+
border-radius: 16px;
|
|
177
|
+
padding: 20px;
|
|
178
|
+
backdrop-filter: blur(6px);
|
|
179
|
+
box-shadow: 0 24px 40px rgba(0,0,0,0.1);
|
|
119
180
|
}
|
|
120
181
|
|
|
121
|
-
.
|
|
122
|
-
|
|
182
|
+
body.theme-light .card {
|
|
183
|
+
background: #ffffff;
|
|
184
|
+
box-shadow: 0 10px 30px rgba(23, 38, 61, 0.08);
|
|
123
185
|
}
|
|
124
186
|
|
|
125
|
-
.
|
|
126
|
-
|
|
127
|
-
|
|
187
|
+
.card__header {
|
|
188
|
+
display: flex;
|
|
189
|
+
align-items: center;
|
|
190
|
+
justify-content: space-between;
|
|
191
|
+
gap: 16px;
|
|
192
|
+
margin-bottom: 10px;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.eyebrow {
|
|
196
|
+
margin: 0 0 4px;
|
|
197
|
+
font-size: 12px;
|
|
198
|
+
letter-spacing: 0.6px;
|
|
128
199
|
text-transform: uppercase;
|
|
200
|
+
color: rgba(255,255,255,0.65);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
h2 {
|
|
204
|
+
margin: 0;
|
|
205
|
+
font-size: 24px;
|
|
206
|
+
letter-spacing: -0.2px;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.helper {
|
|
210
|
+
margin: 4px 0 16px;
|
|
211
|
+
color: rgba(0,0,0,0.65);
|
|
212
|
+
font-size: 14px;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
body.theme-dark .helper {
|
|
216
|
+
color: rgba(255,255,255,0.7);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.amount-chip {
|
|
220
|
+
padding: 10px 14px;
|
|
221
|
+
border-radius: 12px;
|
|
222
|
+
background: var(--color-primary);
|
|
223
|
+
color: #ffffff;
|
|
224
|
+
font-weight: 700;
|
|
225
|
+
min-width: 120px;
|
|
226
|
+
text-align: right;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
body.theme-light .amount-chip {
|
|
230
|
+
color: #0f172a;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.amount-chip span {
|
|
234
|
+
opacity: 0.8;
|
|
129
235
|
font-weight: 600;
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
236
|
+
margin-left: 6px;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.form-grid {
|
|
240
|
+
display: grid;
|
|
241
|
+
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
|
|
242
|
+
gap: 14px;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.form-grid--compact {
|
|
246
|
+
grid-template-columns: 1fr auto;
|
|
247
|
+
align-items: center;
|
|
133
248
|
}
|
|
134
249
|
|
|
135
|
-
.
|
|
136
|
-
display: -ms-flexbox;
|
|
137
|
-
display: -webkit-box;
|
|
250
|
+
.field {
|
|
138
251
|
display: flex;
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
justify-content: space-between;
|
|
252
|
+
flex-direction: column;
|
|
253
|
+
gap: 6px;
|
|
142
254
|
}
|
|
143
255
|
|
|
144
|
-
.
|
|
145
|
-
-
|
|
146
|
-
|
|
147
|
-
flex: 2;
|
|
148
|
-
padding-right: 20px;
|
|
256
|
+
.field__label {
|
|
257
|
+
font-size: 13px;
|
|
258
|
+
color: rgba(255,255,255,0.7);
|
|
149
259
|
}
|
|
150
260
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
261
|
+
input[type="text"],
|
|
262
|
+
input[type="email"],
|
|
263
|
+
input[type="number"],
|
|
264
|
+
input[type="tel"],
|
|
265
|
+
input[type="password"],
|
|
266
|
+
textarea {
|
|
267
|
+
width: 100%;
|
|
268
|
+
padding: 12px 14px;
|
|
269
|
+
border-radius: 12px;
|
|
270
|
+
border: 1px solid var(--color-outline);
|
|
271
|
+
background: rgba(255,255,255,0.05);
|
|
272
|
+
color: #fff;
|
|
273
|
+
font-size: 15px;
|
|
274
|
+
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
body.theme-light input[type="text"],
|
|
278
|
+
body.theme-light input[type="email"],
|
|
279
|
+
body.theme-light input[type="number"],
|
|
280
|
+
body.theme-light input[type="tel"],
|
|
281
|
+
body.theme-light input[type="password"],
|
|
282
|
+
body.theme-light textarea {
|
|
283
|
+
background: #f8f9fb;
|
|
284
|
+
color: #1f2430;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
input:focus,
|
|
288
|
+
textarea:focus {
|
|
289
|
+
outline: none;
|
|
290
|
+
border-color: var(--color-primary);
|
|
291
|
+
box-shadow: 0 0 0 3px rgba(255,255,255,0.05);
|
|
155
292
|
}
|
|
156
293
|
|
|
157
|
-
.
|
|
158
|
-
display: -ms-flexbox;
|
|
159
|
-
display: -webkit-box;
|
|
294
|
+
.checkbox {
|
|
160
295
|
display: flex;
|
|
161
|
-
-
|
|
162
|
-
|
|
163
|
-
|
|
296
|
+
align-items: center;
|
|
297
|
+
gap: 10px;
|
|
298
|
+
font-size: 14px;
|
|
299
|
+
color: rgba(0,0,0,0.8);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
body.theme-dark .checkbox {
|
|
303
|
+
color: rgba(255,255,255,0.8);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.checkbox input {
|
|
307
|
+
width: auto;
|
|
308
|
+
height: 18px;
|
|
309
|
+
accent-color: var(--color-primary);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.button {
|
|
313
|
+
grid-column: 1 / -1;
|
|
314
|
+
padding: 14px;
|
|
315
|
+
border: 0;
|
|
316
|
+
border-radius: 12px;
|
|
317
|
+
background: var(--color-primary);
|
|
318
|
+
color: #ffffff;
|
|
319
|
+
font-weight: 700;
|
|
320
|
+
font-size: 15px;
|
|
321
|
+
cursor: pointer;
|
|
322
|
+
transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
|
|
323
|
+
box-shadow: 0 18px 28px rgba(0,0,0,0.12);
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.button:hover {
|
|
327
|
+
transform: translateY(-1px);
|
|
328
|
+
box-shadow: 0 20px 34px rgba(0,0,0,0.28);
|
|
164
329
|
}
|
|
165
330
|
|
|
166
|
-
.
|
|
167
|
-
|
|
331
|
+
.button:active {
|
|
332
|
+
transform: translateY(0);
|
|
333
|
+
box-shadow: 0 12px 20px rgba(0,0,0,0.2);
|
|
168
334
|
}
|
|
169
335
|
|
|
170
|
-
.
|
|
171
|
-
|
|
172
|
-
|
|
336
|
+
.button[disabled] {
|
|
337
|
+
opacity: 0.6;
|
|
338
|
+
cursor: not-allowed;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.result-grid {
|
|
342
|
+
display: grid;
|
|
343
|
+
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
|
344
|
+
gap: 12px;
|
|
345
|
+
margin: 14px 0 18px;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.result-item {
|
|
349
|
+
padding: 12px;
|
|
350
|
+
border: 1px solid var(--color-outline);
|
|
351
|
+
border-radius: 12px;
|
|
352
|
+
background: rgba(255,255,255,0.02);
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
body.theme-light .result-item {
|
|
356
|
+
background: #f8f9fb;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.result-item .label {
|
|
360
|
+
margin: 0;
|
|
173
361
|
font-size: 12px;
|
|
362
|
+
color: rgba(0,0,0,0.6);
|
|
363
|
+
text-transform: uppercase;
|
|
364
|
+
letter-spacing: 0.4px;
|
|
174
365
|
}
|
|
175
366
|
|
|
176
|
-
.
|
|
177
|
-
|
|
178
|
-
text-transform: none;
|
|
179
|
-
color: #676767;
|
|
367
|
+
body.theme-dark .result-item .label {
|
|
368
|
+
color: rgba(255,255,255,0.6);
|
|
180
369
|
}
|
|
181
370
|
|
|
182
|
-
.
|
|
183
|
-
|
|
184
|
-
|
|
371
|
+
.result-item .value {
|
|
372
|
+
margin: 6px 0 0;
|
|
373
|
+
font-weight: 600;
|
|
374
|
+
color: #0f172a;
|
|
375
|
+
word-break: break-all;
|
|
185
376
|
}
|
|
186
377
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
padding-top: 6px;
|
|
378
|
+
body.theme-dark .result-item .value {
|
|
379
|
+
color: #fff;
|
|
190
380
|
}
|
|
191
381
|
|
|
192
|
-
|
|
193
|
-
padding
|
|
194
|
-
|
|
382
|
+
.status-chip {
|
|
383
|
+
padding: 10px 12px;
|
|
384
|
+
border-radius: 12px;
|
|
385
|
+
font-weight: 700;
|
|
386
|
+
text-transform: uppercase;
|
|
387
|
+
letter-spacing: 0.4px;
|
|
195
388
|
}
|
|
196
389
|
|
|
197
|
-
.
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
-webkit-box-pack: center;
|
|
203
|
-
justify-content: center;
|
|
204
|
-
-ms-flex-align: center;
|
|
205
|
-
-webkit-box-align: center;
|
|
206
|
-
align-items: center;
|
|
207
|
-
height: 100vh;
|
|
208
|
-
width: 100vw;
|
|
209
|
-
z-index: 100;
|
|
210
|
-
overflow-y: auto;
|
|
211
|
-
background-color: #ffffff;
|
|
390
|
+
.status-chip.TXN_SUCCESS,
|
|
391
|
+
.status-chip.success {
|
|
392
|
+
background: rgba(36, 207, 95, 0.15);
|
|
393
|
+
color: #4cff9f;
|
|
394
|
+
border: 1px solid rgba(76, 255, 159, 0.4);
|
|
212
395
|
}
|
|
213
396
|
|
|
214
|
-
.
|
|
215
|
-
|
|
397
|
+
.status-chip.TXN_FAILURE,
|
|
398
|
+
.status-chip.failed,
|
|
399
|
+
.status-chip.FAILURE {
|
|
400
|
+
background: rgba(255, 107, 107, 0.14);
|
|
401
|
+
color: #ff9b9b;
|
|
402
|
+
border: 1px solid rgba(255, 155, 155, 0.35);
|
|
403
|
+
}
|
|
216
404
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
.
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
.
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
margin-top: 120px;
|
|
253
|
-
position: absolute;
|
|
254
|
-
top: 0;
|
|
255
|
-
left: 50%;
|
|
256
|
-
max-width: 85%;
|
|
257
|
-
-webkit-transform: translateX(calc(-50% - 10px));
|
|
258
|
-
transform: translateX(calc(-50% - 10px));
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
.modal__content {
|
|
262
|
-
align-content: center;
|
|
263
|
-
justify-content: center;
|
|
264
|
-
min-width: 80vw;
|
|
265
|
-
-ms-flex: 3;
|
|
266
|
-
-webkit-box-flex: 3;
|
|
267
|
-
flex: 3;
|
|
268
|
-
padding: 40px 40px;
|
|
269
|
-
}
|
|
405
|
+
.status-chip.TXN_PENDING,
|
|
406
|
+
.status-chip.pending {
|
|
407
|
+
background: rgba(255, 193, 79, 0.14);
|
|
408
|
+
color: #ffd77a;
|
|
409
|
+
border: 1px solid rgba(255, 215, 122, 0.35);
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
/* result icon toggles */
|
|
413
|
+
.status-TXN_SUCCESS .icon-success { display: block; }
|
|
414
|
+
.status-TXN_SUCCESS .icon-fail { display: none; }
|
|
415
|
+
.status-TXN_FAILURE .icon-success { display: none; }
|
|
416
|
+
.status-TXN_FAILURE .icon-fail { display: block; }
|
|
417
|
+
|
|
418
|
+
/* control which button group shows for success/failure */
|
|
419
|
+
.status-TXN_SUCCESS .fail-buttons { display: none !important; }
|
|
420
|
+
.status-TXN_FAILURE .success-buttons { display: none !important; }
|
|
421
|
+
|
|
422
|
+
.dot {
|
|
423
|
+
opacity: 0.6;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
@media (max-width: 768px) {
|
|
427
|
+
.shell {
|
|
428
|
+
margin: 16px;
|
|
429
|
+
padding: 20px;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.checkout-grid {
|
|
433
|
+
grid-template-columns: 1fr;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.form-grid {
|
|
437
|
+
grid-template-columns: 1fr;
|
|
438
|
+
}
|
|
439
|
+
}
|