@pisell/private-materials 3.0.136 → 3.0.138

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.
Files changed (219) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +12 -12
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +11 -11
  11. package/es/components/booking/forms/single/index.js +3 -0
  12. package/es/components/eftpos/const.d.ts +26 -0
  13. package/es/components/eftpos/const.js +40 -8
  14. package/es/components/eftpos/device.d.ts +3 -2
  15. package/es/components/eftpos/device.js +6 -5
  16. package/es/components/eftpos/form/index.d.ts +5 -0
  17. package/es/components/eftpos/form/index.js +8 -0
  18. package/es/components/eftpos/hooks.d.ts +34 -0
  19. package/es/components/{eftposPay/windcave/hook.js → eftpos/hooks.js} +96 -122
  20. package/es/components/eftpos/icon/apiKey.d.ts +5 -0
  21. package/es/components/eftpos/icon/apiKey.js +17 -0
  22. package/es/components/eftpos/icon/device.d.ts +5 -0
  23. package/es/components/eftpos/icon/device.js +19 -0
  24. package/es/components/eftpos/index.d.ts +10 -0
  25. package/es/components/eftpos/index.js +329 -46
  26. package/es/components/eftpos/index.less +38 -1
  27. package/es/components/eftpos/locales.d.ts +12 -0
  28. package/es/components/eftpos/locales.js +15 -3
  29. package/es/components/eftpos/log.d.ts +8 -0
  30. package/es/components/eftpos/log.js +85 -0
  31. package/es/components/eftpos/pos.d.ts +1 -1
  32. package/es/components/eftpos/pos.js +8 -5
  33. package/es/components/eftpos/surcharge/index.d.ts +25 -2
  34. package/es/components/eftpos/surcharge/index.js +100 -16
  35. package/es/components/eftpos/table.d.ts +4 -0
  36. package/es/components/eftpos/table.js +102 -10
  37. package/es/components/eftposPay/amount.d.ts +7 -1
  38. package/es/components/eftposPay/amount.js +65 -38
  39. package/es/components/eftposPay/component/fail/failCustom.js +65 -20
  40. package/es/components/eftposPay/component/fail/index.js +60 -30
  41. package/es/components/eftposPay/component/fail/network.d.ts +5 -0
  42. package/es/components/eftposPay/component/fail/network.js +13 -0
  43. package/es/components/eftposPay/component/fail/unknow.d.ts +6 -0
  44. package/es/components/eftposPay/component/fail/unknow.js +18 -3
  45. package/es/components/eftposPay/component/header/index.d.ts +2 -1
  46. package/es/components/eftposPay/component/header/index.js +4 -1
  47. package/es/components/eftposPay/component/header/index.less +1 -10
  48. package/es/components/eftposPay/component/manual/index.d.ts +6 -1
  49. package/es/components/eftposPay/component/manual/index.js +174 -23
  50. package/es/components/eftposPay/component/manual/index.less +42 -14
  51. package/es/components/eftposPay/component/signature/index.d.ts +5 -0
  52. package/es/components/eftposPay/component/signature/index.js +20 -2
  53. package/es/components/eftposPay/component/step/index.d.ts +7 -7
  54. package/es/components/eftposPay/component/step/step.d.ts +4 -4
  55. package/es/components/eftposPay/const.d.ts +19 -4
  56. package/es/components/eftposPay/const.js +4 -2
  57. package/es/components/eftposPay/device.d.ts +7 -0
  58. package/es/components/eftposPay/device.js +22 -0
  59. package/es/components/eftposPay/helper.d.ts +54 -0
  60. package/es/components/eftposPay/helper.js +93 -1
  61. package/es/components/eftposPay/hooks.d.ts +30 -1
  62. package/es/components/eftposPay/hooks.js +181 -26
  63. package/es/components/eftposPay/index.d.ts +2 -4
  64. package/es/components/eftposPay/index.js +119 -31
  65. package/es/components/eftposPay/index.less +27 -19
  66. package/es/components/eftposPay/locales.d.ts +45 -0
  67. package/es/components/eftposPay/locales.js +348 -3
  68. package/es/components/eftposPay/manufacturer.d.ts +2 -2
  69. package/es/components/eftposPay/manufacturer.js +9 -10
  70. package/es/components/eftposPay/pay.d.ts +10 -1
  71. package/es/components/eftposPay/pay.js +112 -34
  72. package/es/components/eftposPay/payo/config.js +137 -270
  73. package/es/components/eftposPay/payo/const.d.ts +22 -2
  74. package/es/components/eftposPay/payo/const.js +83 -33
  75. package/es/components/eftposPay/payo/hooks.d.ts +5 -0
  76. package/es/components/eftposPay/payo/hooks.js +19 -2
  77. package/es/components/eftposPay/store/index.d.ts +154 -53
  78. package/es/components/eftposPay/store/index.js +112 -60
  79. package/es/components/eftposPay/tyro/const.d.ts +17 -0
  80. package/es/components/eftposPay/{eftpos → tyro}/const.js +71 -90
  81. package/es/components/eftposPay/tyro/hooks.d.ts +14 -0
  82. package/es/components/eftposPay/tyro/hooks.js +40 -0
  83. package/es/components/eftposPay/tyro/index.d.ts +9 -0
  84. package/es/components/eftposPay/tyro/index.js +575 -0
  85. package/es/components/eftposPay/windcave/const.d.ts +24 -9
  86. package/es/components/eftposPay/windcave/const.js +90 -81
  87. package/es/components/eftposPay/windcave/helper.d.ts +16 -2
  88. package/es/components/eftposPay/windcave/helper.js +175 -42
  89. package/es/components/eftposPay/windcave/receiptAction.d.ts +12 -0
  90. package/es/components/eftposPay/windcave/receiptAction.js +91 -43
  91. package/es/components/eftposPay/windcave/timer.d.ts +13 -1
  92. package/es/components/eftposPay/windcave/timer.js +18 -1
  93. package/es/components/eftposPay/windcave/windcave.d.ts +2 -1
  94. package/es/components/eftposPay/windcave/windcave.js +155 -139
  95. package/es/utils/load.d.ts +11 -0
  96. package/es/utils/load.js +85 -0
  97. package/lib/components/booking/forms/single/index.js +1 -0
  98. package/lib/components/eftpos/const.d.ts +26 -0
  99. package/lib/components/eftpos/const.js +13 -1
  100. package/lib/components/eftpos/device.d.ts +3 -2
  101. package/lib/components/eftpos/device.js +2 -2
  102. package/lib/components/eftpos/form/index.d.ts +5 -0
  103. package/lib/components/eftpos/hooks.d.ts +34 -0
  104. package/lib/components/eftpos/hooks.js +106 -0
  105. package/lib/components/eftpos/icon/apiKey.d.ts +5 -0
  106. package/lib/components/eftpos/icon/apiKey.js +57 -0
  107. package/lib/components/eftpos/icon/device.d.ts +5 -0
  108. package/lib/components/eftpos/icon/device.js +57 -0
  109. package/lib/components/eftpos/index.d.ts +10 -0
  110. package/lib/components/eftpos/index.js +262 -97
  111. package/lib/components/eftpos/index.less +38 -1
  112. package/lib/components/eftpos/locales.d.ts +12 -0
  113. package/lib/components/eftpos/locales.js +15 -3
  114. package/lib/components/eftpos/log.d.ts +8 -0
  115. package/lib/components/eftpos/log.js +87 -0
  116. package/lib/components/eftpos/pos.d.ts +1 -1
  117. package/lib/components/eftpos/pos.js +5 -4
  118. package/lib/components/eftpos/surcharge/index.d.ts +25 -2
  119. package/lib/components/eftpos/surcharge/index.js +36 -6
  120. package/lib/components/eftpos/table.d.ts +4 -0
  121. package/lib/components/eftpos/table.js +40 -8
  122. package/lib/components/eftposPay/amount.d.ts +7 -1
  123. package/lib/components/eftposPay/amount.js +10 -33
  124. package/lib/components/eftposPay/component/fail/failCustom.js +27 -6
  125. package/lib/components/eftposPay/component/fail/index.js +39 -18
  126. package/lib/components/eftposPay/component/fail/network.d.ts +5 -0
  127. package/lib/components/eftposPay/component/fail/unknow.d.ts +6 -0
  128. package/lib/components/eftposPay/component/fail/unknow.js +3 -3
  129. package/lib/components/eftposPay/component/header/index.d.ts +2 -1
  130. package/lib/components/eftposPay/component/header/index.js +2 -1
  131. package/lib/components/eftposPay/component/header/index.less +1 -10
  132. package/lib/components/eftposPay/component/manual/index.d.ts +6 -1
  133. package/lib/components/eftposPay/component/manual/index.js +122 -31
  134. package/lib/components/eftposPay/component/manual/index.less +42 -14
  135. package/lib/components/eftposPay/component/signature/index.d.ts +5 -0
  136. package/lib/components/eftposPay/component/signature/index.js +2 -2
  137. package/lib/components/eftposPay/component/step/index.d.ts +7 -7
  138. package/lib/components/eftposPay/component/step/step.d.ts +4 -4
  139. package/lib/components/eftposPay/const.d.ts +19 -4
  140. package/lib/components/eftposPay/const.js +3 -1
  141. package/lib/components/eftposPay/device.d.ts +7 -0
  142. package/lib/components/eftposPay/helper.d.ts +54 -0
  143. package/lib/components/eftposPay/helper.js +64 -0
  144. package/lib/components/eftposPay/hooks.d.ts +30 -1
  145. package/lib/components/eftposPay/hooks.js +182 -44
  146. package/lib/components/eftposPay/index.d.ts +2 -4
  147. package/lib/components/eftposPay/index.js +74 -27
  148. package/lib/components/eftposPay/index.less +27 -19
  149. package/lib/components/eftposPay/locales.d.ts +45 -0
  150. package/lib/components/eftposPay/locales.js +352 -3
  151. package/lib/components/eftposPay/manufacturer.d.ts +2 -2
  152. package/lib/components/eftposPay/manufacturer.js +13 -13
  153. package/lib/components/eftposPay/pay.d.ts +10 -1
  154. package/lib/components/eftposPay/pay.js +86 -25
  155. package/lib/components/eftposPay/payo/config.js +121 -268
  156. package/lib/components/eftposPay/payo/const.d.ts +22 -2
  157. package/lib/components/eftposPay/payo/const.js +55 -36
  158. package/lib/components/eftposPay/payo/hooks.d.ts +5 -0
  159. package/lib/components/eftposPay/payo/hooks.js +1 -1
  160. package/lib/components/eftposPay/store/index.d.ts +154 -53
  161. package/lib/components/eftposPay/store/index.js +7 -66
  162. package/lib/components/eftposPay/tyro/const.d.ts +17 -0
  163. package/lib/components/eftposPay/tyro/const.js +114 -0
  164. package/lib/components/eftposPay/tyro/hooks.d.ts +14 -0
  165. package/lib/components/eftposPay/{eftpos/index.js → tyro/hooks.js} +31 -36
  166. package/lib/components/eftposPay/tyro/index.d.ts +9 -0
  167. package/lib/components/eftposPay/tyro/index.js +558 -0
  168. package/lib/components/eftposPay/windcave/const.d.ts +24 -9
  169. package/lib/components/eftposPay/windcave/const.js +53 -104
  170. package/lib/components/eftposPay/windcave/helper.d.ts +16 -2
  171. package/lib/components/eftposPay/windcave/helper.js +163 -48
  172. package/lib/components/eftposPay/windcave/receiptAction.d.ts +12 -0
  173. package/lib/components/eftposPay/windcave/receiptAction.js +15 -47
  174. package/lib/components/eftposPay/windcave/timer.d.ts +13 -1
  175. package/lib/components/eftposPay/windcave/timer.js +5 -0
  176. package/lib/components/eftposPay/windcave/windcave.d.ts +2 -1
  177. package/lib/components/eftposPay/windcave/windcave.js +130 -130
  178. package/lib/utils/load.d.ts +11 -0
  179. package/lib/utils/load.js +100 -0
  180. package/lowcode/eftpos/meta.ts +202 -160
  181. package/lowcode/eftpos-pay/meta.ts +45 -12
  182. package/package.json +4 -4
  183. package/es/components/eftposPay/eftpos/config.d.ts +0 -11
  184. package/es/components/eftposPay/eftpos/config.js +0 -178
  185. package/es/components/eftposPay/eftpos/const.d.ts +0 -10
  186. package/es/components/eftposPay/eftpos/index.d.ts +0 -7
  187. package/es/components/eftposPay/eftpos/index.js +0 -35
  188. package/es/components/eftposPay/windcave/action.d.ts +0 -8
  189. package/es/components/eftposPay/windcave/action.js +0 -104
  190. package/es/components/eftposPay/windcave/hook.d.ts +0 -14
  191. package/es/components/eftposPay/windcave/index.d.ts +0 -8
  192. package/es/components/eftposPay/windcave/index.js +0 -49
  193. package/es/components/eftposPay/windcave/pos.d.ts +0 -8
  194. package/es/components/eftposPay/windcave/pos.js +0 -180
  195. package/es/components/eftposPay/windcave/pwd.d.ts +0 -8
  196. package/es/components/eftposPay/windcave/pwd.js +0 -124
  197. package/es/components/eftposPay/windcave/receipet.d.ts +0 -6
  198. package/es/components/eftposPay/windcave/receipet.js +0 -67
  199. package/es/components/eftposPay/windcave/wait.d.ts +0 -12
  200. package/es/components/eftposPay/windcave/wait.js +0 -139
  201. package/lib/components/eftposPay/eftpos/config.d.ts +0 -11
  202. package/lib/components/eftposPay/eftpos/config.js +0 -199
  203. package/lib/components/eftposPay/eftpos/const.d.ts +0 -10
  204. package/lib/components/eftposPay/eftpos/const.js +0 -165
  205. package/lib/components/eftposPay/eftpos/index.d.ts +0 -7
  206. package/lib/components/eftposPay/windcave/action.d.ts +0 -8
  207. package/lib/components/eftposPay/windcave/action.js +0 -143
  208. package/lib/components/eftposPay/windcave/hook.d.ts +0 -14
  209. package/lib/components/eftposPay/windcave/hook.js +0 -139
  210. package/lib/components/eftposPay/windcave/index.d.ts +0 -8
  211. package/lib/components/eftposPay/windcave/index.js +0 -78
  212. package/lib/components/eftposPay/windcave/pos.d.ts +0 -8
  213. package/lib/components/eftposPay/windcave/pos.js +0 -197
  214. package/lib/components/eftposPay/windcave/pwd.d.ts +0 -8
  215. package/lib/components/eftposPay/windcave/pwd.js +0 -143
  216. package/lib/components/eftposPay/windcave/receipet.d.ts +0 -6
  217. package/lib/components/eftposPay/windcave/receipet.js +0 -93
  218. package/lib/components/eftposPay/windcave/wait.d.ts +0 -12
  219. package/lib/components/eftposPay/windcave/wait.js +0 -163
@@ -1,17 +1,17 @@
1
- @import './var.less';
1
+ @import './var.less';
2
2
 
3
3
  .pisell-lowcode__eft-pay-amount {
4
4
  display: flex;
5
5
  flex-direction: column;
6
6
  }
7
7
 
8
- //
9
8
  .pisell-lowcode__eft-pay-step-box {
10
9
  display: flex;
11
10
  flex-direction: column;
12
11
  gap: 4;
13
12
  margin: 4px 0;
14
13
  }
14
+ .pisell-lowcode__eft-pay-sub-title,
15
15
  .pisell-lowcode__eft-pay-step-item,
16
16
  .pisell-lowcode__eft-pay-step-item-success {
17
17
  color: var(--gray-true-900, #141414);
@@ -19,6 +19,8 @@
19
19
  font-style: normal;
20
20
  font-weight: 400;
21
21
  line-height: 20px; /* 142.857% */
22
+
23
+ white-space: pre-line;
22
24
  }
23
25
  .pisell-lowcode__eft-pay-step-item-icon {
24
26
  vertical-align: middle;
@@ -30,7 +32,7 @@
30
32
  }
31
33
  .pisell-lowcode__eft-pay-step-item-loading {
32
34
  color: var(--gray-500, #667085);
33
-
35
+
34
36
  font-size: 14px;
35
37
  font-style: normal;
36
38
  font-weight: 400;
@@ -39,7 +41,7 @@
39
41
  .pisell-lowcode__eft-pay-step-item-tip {
40
42
  color: var(--gray-500, #667085);
41
43
  /* Text sm/Regular */
42
-
44
+
43
45
  font-size: 14px;
44
46
  font-style: normal;
45
47
  font-weight: 400;
@@ -56,9 +58,6 @@
56
58
  height: 48px !important;
57
59
  }
58
60
 
59
-
60
-
61
-
62
61
  .pisell-lowcode__eft-pay-amount-body {
63
62
  gap: 20px;
64
63
  display: flex;
@@ -86,7 +85,7 @@
86
85
  .pisell-lowcode__eft-pay-money-title {
87
86
  color: var(--Gray-700, #344054);
88
87
  /* Text sm/Semibold */
89
-
88
+
90
89
  font-size: 14px;
91
90
  font-style: normal;
92
91
  font-weight: 600;
@@ -95,7 +94,7 @@
95
94
  .pisell-lowcode__eft-pay-money-tip {
96
95
  color: var(--Gray-600, #475467);
97
96
  /* Text sm/Regular */
98
-
97
+
99
98
  font-size: 14px;
100
99
  font-style: normal;
101
100
  font-weight: 400;
@@ -116,7 +115,7 @@
116
115
  .pisell-lowcode__eft-pay-total {
117
116
  color: var(--Gray-900, #101828);
118
117
  /* Text sm/Regular */
119
-
118
+
120
119
  font-size: 14px;
121
120
  font-style: normal;
122
121
  font-weight: 400;
@@ -125,7 +124,7 @@
125
124
  .pisell-lowcode__eft-pay-money {
126
125
  color: var(--Gray-900, #101828);
127
126
  /* Text sm/Regular */
128
-
127
+
129
128
  font-size: 14px;
130
129
  font-style: normal;
131
130
  font-weight: 400;
@@ -148,7 +147,7 @@
148
147
 
149
148
  color: var(--Warning-700, #b54708);
150
149
  /* Text sm/Semibold */
151
-
150
+
152
151
  font-size: 14px;
153
152
  font-style: normal;
154
153
  font-weight: 600;
@@ -183,7 +182,7 @@
183
182
  color: var(--Gray-700, #344054);
184
183
 
185
184
  /* Text sm/Semibold */
186
-
185
+
187
186
  font-size: 14px;
188
187
  font-style: normal;
189
188
  font-weight: 600;
@@ -207,7 +206,7 @@
207
206
  .pisell-lowcode__eft-pay-warn-title {
208
207
  color: var(--gray-900, #101828);
209
208
  /* Text lg/Semibold */
210
-
209
+
211
210
  font-size: 18px;
212
211
  font-style: normal;
213
212
  font-weight: 600;
@@ -218,28 +217,28 @@
218
217
  .pisell-lowcode__eft-pay-warn-text {
219
218
  color: var(--error-600, #d92d20);
220
219
  /* Text sm/Regular */
221
-
220
+
222
221
  font-size: 14px;
223
222
  font-style: normal;
224
223
  font-weight: 400;
225
224
  line-height: 20px; /* 142.857% */
226
- }
227
225
 
226
+ white-space: pre-line;
227
+ }
228
228
 
229
229
  .pisell-lowcode__eft-pay-step-item-resolve {
230
230
  color: var(--gray-true-900, #141414);
231
-
231
+
232
232
  font-size: 14px;
233
233
  font-style: normal;
234
234
  font-weight: 400;
235
235
  line-height: 20px; /* 142.857% */
236
236
  }
237
- .pisell-lowcode__eft-pay-manual-btn{
237
+ .pisell-lowcode__eft-pay-manual-btn {
238
238
  // height: ;
239
239
  height: 48px !important;
240
240
  }
241
241
 
242
-
243
242
  .pisell-lowcode__eft-pay-box {
244
243
  max-height: var(--pisel-lc-pos-pay-max-height, unset);
245
244
  width: var(--pisel-lc-pos-pay-width, 600px);
@@ -261,3 +260,12 @@
261
260
  flex-direction: column;
262
261
  }
263
262
 
263
+ .pisell-lowcode__eft-pay-tyro-text {
264
+ color: var(--Gray-900, #101828);
265
+ /* Text sm/Regular */
266
+ font-size: 14px;
267
+ font-style: normal;
268
+ font-weight: 400;
269
+ line-height: 20px; /* 142.857% */
270
+ padding: 0 0 12px 0;
271
+ }
@@ -30,6 +30,13 @@ declare const _default: {
30
30
  'page.eftpos-pay.text.accept': string;
31
31
  'page.eftpos-pay.text.decline': string;
32
32
  'page.eftpos-pay.text.manual.marking': string;
33
+ 'page.eftpos-pay.text.manual.title': string;
34
+ 'page.eftpos-pay.text.manual.subtitle': (money: string) => string;
35
+ 'page.eftpos-pay.text.manual.confirm': string;
36
+ 'page.eftpos-pay.text.manual.btn.confirm': (money: string) => string;
37
+ 'page.eftpos-pay.text.manual.diff': string;
38
+ 'page.eftpos-pay.text.manual.tip': string;
39
+ 'page.eftpos-pay.text.manual.cancel': string;
33
40
  'page.eftpos-pay.text.modify.payment.info': (mode: string) => "Modify payment info" | "Modify refund information";
34
41
  'page.eftpos-pay.text.successful': (mode: string) => string;
35
42
  'page.eftpos-pay.text.failed': (mode: string) => string;
@@ -58,6 +65,12 @@ declare const _default: {
58
65
  'page.eftpos-pay.text.surcharge.edit.rate': string;
59
66
  'page.eftpos-pay.text.surcharge.edit.surcharge': string;
60
67
  'page.eftpos-pay.text.transaction.end': string;
68
+ 'page.eftpos-pay.text.transaction.user.declined.title': string;
69
+ 'page.eftpos-pay.text.transaction.user.declined.text': string;
70
+ 'page.eftpos-pay.text.transaction.user.config.title': string;
71
+ 'page.eftpos-pay.text.transaction.user.config.text': string;
72
+ 'page.eftpos-pay.text.transaction.back.declined.title': string;
73
+ 'page.eftpos-pay.text.transaction.back.declined.text': string;
61
74
  'page.eftpos-pay.text.transaction.fail': string;
62
75
  'page.eftpos-pay.text.transaction.fail.timeout': string;
63
76
  'page.eftpos-pay.text.transaction.pay.fail.timeout': string;
@@ -85,6 +98,8 @@ declare const _default: {
85
98
  'page.eftpos-pay.text.reconnect.network': string;
86
99
  'page.eftpos-pay.text.network.disconnected': string;
87
100
  'page.eftpos-pay.text.not.connected': string;
101
+ 'page.eftpos-pay.text.tyro-btn': (key: string) => string;
102
+ 'page.eftpos-pay.text.tyro': (key: string) => string;
88
103
  };
89
104
  'zh-CN': {
90
105
  'page.eftpos-pay.text.loading': (mode: string) => string;
@@ -117,6 +132,13 @@ declare const _default: {
117
132
  'page.eftpos-pay.text.accept': string;
118
133
  'page.eftpos-pay.text.decline': string;
119
134
  'page.eftpos-pay.text.manual.marking': string;
135
+ 'page.eftpos-pay.text.manual.title': string;
136
+ 'page.eftpos-pay.text.manual.subtitle': (money: string) => string;
137
+ 'page.eftpos-pay.text.manual.confirm': string;
138
+ 'page.eftpos-pay.text.manual.btn.confirm': (money: string) => string;
139
+ 'page.eftpos-pay.text.manual.diff': string;
140
+ 'page.eftpos-pay.text.manual.tip': string;
141
+ 'page.eftpos-pay.text.manual.cancel': string;
120
142
  'page.eftpos-pay.text.modify.payment.info': (mode: string) => "修改支付信息" | "修改退款信息";
121
143
  'page.eftpos-pay.text.successful': (mode: string) => string;
122
144
  'page.eftpos-pay.text.failed': (mode: string) => string;
@@ -145,6 +167,12 @@ declare const _default: {
145
167
  'page.eftpos-pay.text.surcharge.edit.rate': string;
146
168
  'page.eftpos-pay.text.surcharge.edit.surcharge': string;
147
169
  'page.eftpos-pay.text.transaction.end': string;
170
+ 'page.eftpos-pay.text.transaction.user.declined.title': string;
171
+ 'page.eftpos-pay.text.transaction.user.declined.text': string;
172
+ 'page.eftpos-pay.text.transaction.user.config.title': string;
173
+ 'page.eftpos-pay.text.transaction.user.config.text': string;
174
+ 'page.eftpos-pay.text.transaction.back.declined.title': string;
175
+ 'page.eftpos-pay.text.transaction.back.declined.text': string;
148
176
  'page.eftpos-pay.text.transaction.fail': string;
149
177
  'page.eftpos-pay.text.transaction.fail.timeout': string;
150
178
  'page.eftpos-pay.text.transaction.pay.fail.timeout': string;
@@ -172,6 +200,8 @@ declare const _default: {
172
200
  'page.eftpos-pay.text.reconnect.network': string;
173
201
  'page.eftpos-pay.text.network.disconnected': string;
174
202
  'page.eftpos-pay.text.not.connected': string;
203
+ 'page.eftpos-pay.text.tyro-btn': (key: string) => string;
204
+ 'page.eftpos-pay.text.tyro': (key: string) => string | string[];
175
205
  };
176
206
  'zh-HK': {
177
207
  'page.eftpos-pay.text.loading': (mode: string) => string;
@@ -204,6 +234,13 @@ declare const _default: {
204
234
  'page.eftpos-pay.text.accept': string;
205
235
  'page.eftpos-pay.text.decline': string;
206
236
  'page.eftpos-pay.text.manual.marking': string;
237
+ 'page.eftpos-pay.text.manual.title': string;
238
+ 'page.eftpos-pay.text.manual.subtitle': (money: string) => string;
239
+ 'page.eftpos-pay.text.manual.confirm': string;
240
+ 'page.eftpos-pay.text.manual.btn.confirm': (money: string) => string;
241
+ 'page.eftpos-pay.text.manual.diff': string;
242
+ 'page.eftpos-pay.text.manual.tip': string;
243
+ 'page.eftpos-pay.text.manual.cancel': string;
207
244
  'page.eftpos-pay.text.modify.payment.info': (mode: string) => "修改支付信息" | "修改退款信息";
208
245
  'page.eftpos-pay.text.successful': (mode: string) => string;
209
246
  'page.eftpos-pay.text.failed': (mode: string) => string;
@@ -232,6 +269,12 @@ declare const _default: {
232
269
  'page.eftpos-pay.text.surcharge.edit.rate': string;
233
270
  'page.eftpos-pay.text.surcharge.edit.surcharge': string;
234
271
  'page.eftpos-pay.text.transaction.end': string;
272
+ 'page.eftpos-pay.text.transaction.user.declined.title': string;
273
+ 'page.eftpos-pay.text.transaction.user.declined.text': string;
274
+ 'page.eftpos-pay.text.transaction.user.config.title': string;
275
+ 'page.eftpos-pay.text.transaction.user.config.text': string;
276
+ 'page.eftpos-pay.text.transaction.back.declined.title': string;
277
+ 'page.eftpos-pay.text.transaction.back.declined.text': string;
235
278
  'page.eftpos-pay.text.transaction.fail': string;
236
279
  'page.eftpos-pay.text.transaction.fail.timeout': string;
237
280
  'page.eftpos-pay.text.transaction.pay.fail.timeout': string;
@@ -259,6 +302,8 @@ declare const _default: {
259
302
  'page.eftpos-pay.text.reconnect.network': string;
260
303
  'page.eftpos-pay.text.network.disconnected': string;
261
304
  'page.eftpos-pay.text.not.connected': string;
305
+ 'page.eftpos-pay.text.tyro-btn': (key: string) => string;
306
+ 'page.eftpos-pay.text.tyro': (key: string) => string | string[];
262
307
  };
263
308
  };
264
309
  export default _default;
@@ -54,6 +54,13 @@ var locales_default = {
54
54
  "page.eftpos-pay.text.accept": "Accept",
55
55
  "page.eftpos-pay.text.decline": "Decline",
56
56
  "page.eftpos-pay.text.manual.marking": "Manual marking",
57
+ "page.eftpos-pay.text.manual.title": "Confirm payment amount",
58
+ "page.eftpos-pay.text.manual.subtitle": (money) => `Amount paid for this transaction:${money}.`,
59
+ "page.eftpos-pay.text.manual.confirm": "Please verify if the payment amount matches the amount on the EFTPOS.",
60
+ "page.eftpos-pay.text.manual.btn.confirm": (money) => `Confirm(${money})`,
61
+ "page.eftpos-pay.text.manual.diff": "If it doesn't match, please enter the actual transaction amount in the input box below.",
62
+ "page.eftpos-pay.text.manual.tip": "Amount tendered (incl. surcharge)",
63
+ "page.eftpos-pay.text.manual.cancel": "Cancel current transaction",
57
64
  "page.eftpos-pay.text.modify.payment.info": (mode) => mode === "pay" ? "Modify payment info" : "Modify refund information",
58
65
  "page.eftpos-pay.text.successful": (mode) => `${mode === "pay" ? "Payment" : "Refund"} successful`,
59
66
  "page.eftpos-pay.text.failed": (mode) => `${mode === "pay" ? "Payment" : "Refund"} failed`,
@@ -83,6 +90,12 @@ var locales_default = {
83
90
  "page.eftpos-pay.text.surcharge.edit.rate": "Rate",
84
91
  "page.eftpos-pay.text.surcharge.edit.surcharge": "Edit Surcharge",
85
92
  "page.eftpos-pay.text.transaction.end": "Transaction end",
93
+ "page.eftpos-pay.text.transaction.user.declined.title": "Signature declined",
94
+ "page.eftpos-pay.text.transaction.user.declined.text": "The transaction failed due to signature decline.",
95
+ "page.eftpos-pay.text.transaction.user.config.title": "Configuration Parameter Error",
96
+ "page.eftpos-pay.text.transaction.user.config.text": "Sorry, please check if the configuration parameters in the device settings are filled in correctly.",
97
+ "page.eftpos-pay.text.transaction.back.declined.title": "Transaction Declined",
98
+ "page.eftpos-pay.text.transaction.back.declined.text": "We're sorry, the bank has declined this transaction. Please try another card.",
86
99
  "page.eftpos-pay.text.transaction.fail": "Transaction failed.",
87
100
  "page.eftpos-pay.text.transaction.fail.timeout": "Transaction timeout.",
88
101
  "page.eftpos-pay.text.transaction.pay.fail.timeout": "Transaction timeout.",
@@ -109,7 +122,13 @@ var locales_default = {
109
122
  "page.eftpos-pay.text.reconnecting": "Reconnecting",
110
123
  "page.eftpos-pay.text.reconnect.network": "Reconnect network",
111
124
  "page.eftpos-pay.text.network.disconnected": "Network disconnected",
112
- "page.eftpos-pay.text.not.connected": "The network is not connected"
125
+ "page.eftpos-pay.text.not.connected": "The network is not connected",
126
+ "page.eftpos-pay.text.tyro-btn": (key) => {
127
+ return key;
128
+ },
129
+ "page.eftpos-pay.text.tyro": (key) => {
130
+ return key;
131
+ }
113
132
  },
114
133
  "zh-CN": {
115
134
  "page.eftpos-pay.text.loading": (mode) => `${mode === "pay" ? "支付" : "退款"}进行中...`,
@@ -142,6 +161,13 @@ var locales_default = {
142
161
  "page.eftpos-pay.text.accept": "接受",
143
162
  "page.eftpos-pay.text.decline": "拒绝",
144
163
  "page.eftpos-pay.text.manual.marking": "手动标记",
164
+ "page.eftpos-pay.text.manual.title": "确认支付金额",
165
+ "page.eftpos-pay.text.manual.subtitle": (money) => `此次付款金额:${money}。`,
166
+ "page.eftpos-pay.text.manual.confirm": "请检查付款金额是否与刷卡机上的金额一致。",
167
+ "page.eftpos-pay.text.manual.btn.confirm": (money) => `确认(${money})`,
168
+ "page.eftpos-pay.text.manual.diff": "如不一致请在下方输入框内输入真实的交易金额。",
169
+ "page.eftpos-pay.text.manual.tip": "实付金额(含附加费)",
170
+ "page.eftpos-pay.text.manual.cancel": "取消当前交易",
145
171
  "page.eftpos-pay.text.modify.payment.info": (mode) => mode === "pay" ? "修改支付信息" : "修改退款信息",
146
172
  "page.eftpos-pay.text.successful": (mode) => `${mode === "pay" ? "支付" : "退款"}成功`,
147
173
  "page.eftpos-pay.text.failed": (mode) => `${mode === "pay" ? "支付" : "退款"}失败`,
@@ -178,6 +204,12 @@ var locales_default = {
178
204
  "page.eftpos-pay.text.surcharge.edit.surcharge": "编辑手续费",
179
205
  // Edit Surcharge
180
206
  "page.eftpos-pay.text.transaction.end": "交易结束",
207
+ "page.eftpos-pay.text.transaction.user.declined.title": "签名被拒绝",
208
+ "page.eftpos-pay.text.transaction.user.declined.text": "由于签名被拒绝,此交易失败。",
209
+ "page.eftpos-pay.text.transaction.user.config.title": "配置参数错误",
210
+ "page.eftpos-pay.text.transaction.user.config.text": "抱歉,请检查设备设置中的配置参数是否填写正确。",
211
+ "page.eftpos-pay.text.transaction.back.declined.title": "交易被拒绝",
212
+ "page.eftpos-pay.text.transaction.back.declined.text": "很抱歉,银行拒绝了此次交易。请更换其他卡片进行尝试。",
181
213
  "page.eftpos-pay.text.transaction.fail": "交易失败",
182
214
  "page.eftpos-pay.text.transaction.fail.timeout": "交易等待超时",
183
215
  "page.eftpos-pay.text.transaction.pay.fail.timeout": "交易请求超时",
@@ -204,7 +236,159 @@ var locales_default = {
204
236
  "page.eftpos-pay.text.reconnecting": "连接中",
205
237
  "page.eftpos-pay.text.reconnect.network": "重连网络",
206
238
  "page.eftpos-pay.text.network.disconnected": "网络断开连接",
207
- "page.eftpos-pay.text.not.connected": "当前网络未连接"
239
+ "page.eftpos-pay.text.not.connected": "当前网络未连接",
240
+ "page.eftpos-pay.text.tyro-btn": (key) => {
241
+ if (key === "YES") {
242
+ return "是";
243
+ }
244
+ if (key === "NO") {
245
+ return "否";
246
+ }
247
+ if (key === "OK") {
248
+ return "好的";
249
+ }
250
+ if (key === "RETRY") {
251
+ return "重试";
252
+ }
253
+ if (key === "Retrying...") {
254
+ return "重试";
255
+ }
256
+ if (key === "QUIT") {
257
+ return "退出";
258
+ }
259
+ return key;
260
+ },
261
+ "page.eftpos-pay.text.tyro": (key) => {
262
+ if (key === "Initiating...") {
263
+ return "初始化中...";
264
+ }
265
+ if (key === "Retrying...") {
266
+ return "重试";
267
+ }
268
+ if (key === "REVERSED") {
269
+ return "已撤销";
270
+ }
271
+ if (key === "APPROVED") {
272
+ return "已批准";
273
+ }
274
+ if (key === "DECLINED") {
275
+ return "已拒绝";
276
+ }
277
+ if (key === "Select account") {
278
+ return "请选择账户";
279
+ }
280
+ if (key === "Enter PIN") {
281
+ return "请输入密码";
282
+ }
283
+ if (key.includes("Swipe card. Purchase:")) {
284
+ return key.replace(/^(Swipe card. Purchase)/i, "请刷卡。购买金额");
285
+ }
286
+ if (key === "APPROVED W/ SIGNATURE. Signature OK?") {
287
+ return "请确认签名?";
288
+ }
289
+ if (key === "Sending answer 'NO'...") {
290
+ return "拒绝处理中,请等待...";
291
+ }
292
+ if (key === "Sending answer 'YES'...") {
293
+ return "处理中,请等待...";
294
+ }
295
+ if (key === "Cancel this transaction") {
296
+ return "取消此交易?";
297
+ }
298
+ if (key.includes("Connection lost. Attempting to recover")) {
299
+ return "连接丢失,正在尝试恢复";
300
+ }
301
+ if (key === 'Please perform the "Authorise POS" function on your terminal') {
302
+ return "请在您的EFTPOS上执行“授权POS”功能";
303
+ }
304
+ if (key.includes("Processing transaction - please wait")) {
305
+ return "交易处理中, 请等待...";
306
+ }
307
+ if (key.includes(
308
+ "Transaction could not be processed (410). Void transaction via terminal if necessary"
309
+ )) {
310
+ return "交易无法处理。必要时可以通过刷卡机作废交易。";
311
+ }
312
+ if (key.includes("Invalid transaction details")) {
313
+ return key.replace(/^(Invalid transaction details)/i, "交易详细信息无效");
314
+ }
315
+ if (key === "Tyro system not ready (202). Please try again.") {
316
+ return "Tyro系统未就绪(202)。请重试。";
317
+ }
318
+ if (key === "Querying terminal...") {
319
+ return "正在查询终端... ";
320
+ }
321
+ if (key === "Transaction could not be processed (202). Void transaction via terminal if necessary.") {
322
+ return "无法处理交易(202)。请通过终端撤销交易。";
323
+ }
324
+ if (key === "Transaction could not be processed (403). Void transaction via terminal if necessary.") {
325
+ return "无法处理交易(403)。请通过终端撤销交易。";
326
+ }
327
+ if (key === "Transaction could not be processed (400). Void transaction via terminal if necessary.") {
328
+ return "无法处理交易(400)。请通过终端撤销交易。";
329
+ }
330
+ if (key === "Transaction could not be processed (404). Void transaction via terminal if necessary.") {
331
+ return "无法处理交易(404)。请通过终端撤销交易。";
332
+ }
333
+ if (key === "Transaction could not be processed (502). Void transaction via terminal if necessary.") {
334
+ return "无法处理交易(502)。请通过终端撤销交易。";
335
+ }
336
+ if (key === "Transaction could not be processed (503). Void transaction via terminal if necessary.") {
337
+ return "无法处理交易(503)。请通过终端撤销交易。";
338
+ }
339
+ if (key === "Transaction could not be processed (504). Void transaction via terminal if necessary.") {
340
+ return "无法处理交易(504)。请通过终端撤销交易。";
341
+ }
342
+ if (key === "Connection to terminal lost (404). Check terminal connection.") {
343
+ return "终端设备连接丢失(404)。请检查设备连接";
344
+ }
345
+ if (key === "Connection to terminal lost (502). Check terminal connection.") {
346
+ return "终端设备连接丢失(502)。请检查设备连接";
347
+ }
348
+ if (key === "Connection to terminal lost (504). Check terminal connection.") {
349
+ return "终端设备连接丢失(504)。请检查设备连接";
350
+ }
351
+ if (key === "Connection to terminal lost (404). Check connection and try again(404).") {
352
+ return "终端设备连接丢失。请检查设备连接并重试(404)";
353
+ }
354
+ if (key === "Transaction could not be processed (410).") {
355
+ return "无法处理交易(410)。";
356
+ }
357
+ if (key === "Continuing last transaction...") {
358
+ return "继续进行上次交易";
359
+ }
360
+ if (key === "Enter PIN or press SIGN") {
361
+ return "请输入密码或签名";
362
+ }
363
+ if (key === "TRANSACTION CANCELLED") {
364
+ return "交易已取消";
365
+ }
366
+ if (key === "Reversing transaction") {
367
+ return "正在撤销交易...";
368
+ }
369
+ if (key === "POS is not paired with a terminal") {
370
+ return [
371
+ "POS未与EFTPOS配对。",
372
+ "请先配对后再发起支付。"
373
+ ];
374
+ }
375
+ if (key === "Terminal is busy processing another transaction (503)") {
376
+ return [
377
+ "交易繁忙,刷卡机正在处理另一笔交易。",
378
+ "请在刷卡机上处理完成上一笔交易后再次发起支付。"
379
+ ];
380
+ }
381
+ if (key === "DECLINED. Print customer copy?") {
382
+ return "已拒绝。是否打印客户副本?";
383
+ }
384
+ if (key === "APPROVED. Print customer copy?" || key === "Approved. Print customer copy?") {
385
+ return "已批准。是否打印客户副本?";
386
+ }
387
+ if (key === "Please answer this question with one of the following option/s") {
388
+ return "请使用以下选项之一回答此问题";
389
+ }
390
+ return key;
391
+ }
208
392
  },
209
393
  "zh-HK": {
210
394
  "page.eftpos-pay.text.loading": (mode) => `${mode === "pay" ? "支付" : "退款"}進行中...`,
@@ -237,6 +421,13 @@ var locales_default = {
237
421
  "page.eftpos-pay.text.accept": "接受",
238
422
  "page.eftpos-pay.text.decline": "拒絕",
239
423
  "page.eftpos-pay.text.manual.marking": "手動標記",
424
+ "page.eftpos-pay.text.manual.title": "確認支付金額",
425
+ "page.eftpos-pay.text.manual.subtitle": (money) => `此次付款金額:${money}。`,
426
+ "page.eftpos-pay.text.manual.confirm": "請檢查付款金額是否與刷卡機上的金額一致。",
427
+ "page.eftpos-pay.text.manual.btn.confirm": (money) => `確認(${money})`,
428
+ "page.eftpos-pay.text.manual.diff": "如不一致請在下方輸入框內輸入真實的交易金額。",
429
+ "page.eftpos-pay.text.manual.tip": "實付金額(含附加費)",
430
+ "page.eftpos-pay.text.manual.cancel": "取消當前交易",
240
431
  "page.eftpos-pay.text.modify.payment.info": (mode) => mode === "pay" ? "修改支付信息" : "修改退款信息",
241
432
  "page.eftpos-pay.text.successful": (mode) => `${mode === "pay" ? "支付" : "退款"}成功`,
242
433
  "page.eftpos-pay.text.failed": (mode) => `${mode === "pay" ? "支付" : "退款"}失敗`,
@@ -273,6 +464,12 @@ var locales_default = {
273
464
  "page.eftpos-pay.text.surcharge.edit.surcharge": "編輯手續費",
274
465
  // Edit Surcharge
275
466
  "page.eftpos-pay.text.transaction.end": "交易結束",
467
+ "page.eftpos-pay.text.transaction.user.declined.title": "簽名被拒絕",
468
+ "page.eftpos-pay.text.transaction.user.declined.text": "由於簽名被拒絕,此交易失敗。",
469
+ "page.eftpos-pay.text.transaction.user.config.title": "配置參數錯誤",
470
+ "page.eftpos-pay.text.transaction.user.config.text": "抱歉,請檢查設備設置中的配置參數是否填寫正確。",
471
+ "page.eftpos-pay.text.transaction.back.declined.title": "交易被拒絕",
472
+ "page.eftpos-pay.text.transaction.back.declined.text": "很抱歉,銀行拒絕了此次交易。請更換其他卡片進行嘗試。",
276
473
  "page.eftpos-pay.text.transaction.fail": "交易失敗",
277
474
  "page.eftpos-pay.text.transaction.fail.timeout": "交易等待超時",
278
475
  "page.eftpos-pay.text.transaction.pay.fail.timeout": "交易請求超時",
@@ -299,6 +496,158 @@ var locales_default = {
299
496
  "page.eftpos-pay.text.reconnecting": "連接中",
300
497
  "page.eftpos-pay.text.reconnect.network": "重連網絡",
301
498
  "page.eftpos-pay.text.network.disconnected": "網絡斷開連接",
302
- "page.eftpos-pay.text.not.connected": "當前網絡未連接"
499
+ "page.eftpos-pay.text.not.connected": "當前網絡未連接",
500
+ "page.eftpos-pay.text.tyro-btn": (key) => {
501
+ if (key === "YES") {
502
+ return "是";
503
+ }
504
+ if (key === "NO") {
505
+ return "否";
506
+ }
507
+ if (key === "OK") {
508
+ return "好的";
509
+ }
510
+ if (key === "RETRY") {
511
+ return "重試";
512
+ }
513
+ if (key === "Retrying...") {
514
+ return "重試";
515
+ }
516
+ if (key === "QUIT") {
517
+ return "退出";
518
+ }
519
+ return key;
520
+ },
521
+ "page.eftpos-pay.text.tyro": (key) => {
522
+ if (key === "Initiating...") {
523
+ return "初始化中...";
524
+ }
525
+ if (key === "Retrying...") {
526
+ return "重試";
527
+ }
528
+ if (key === "REVERSED") {
529
+ return "已撤銷";
530
+ }
531
+ if (key === "APPROVED") {
532
+ return "已批准";
533
+ }
534
+ if (key === "DECLINED") {
535
+ return "已拒絕";
536
+ }
537
+ if (key === "Select account") {
538
+ return "請選擇賬户";
539
+ }
540
+ if (key === "Enter PIN") {
541
+ return "請輸入密碼";
542
+ }
543
+ if (key.includes("Swipe card. Purchase:")) {
544
+ return key.replace(/^(Swipe card. Purchase)/i, "請刷卡。購買金額");
545
+ }
546
+ if (key === "APPROVED W/ SIGNATURE. Signature OK?") {
547
+ return "請確認簽名?";
548
+ }
549
+ if (key === "Sending answer 'NO'...") {
550
+ return "拒絕處理中,請等待...";
551
+ }
552
+ if (key === "Sending answer 'YES'...") {
553
+ return "處理中,請等待...";
554
+ }
555
+ if (key === "Cancel this transaction") {
556
+ return "取消此交易?";
557
+ }
558
+ if (key.includes("Connection lost. Attempting to recover")) {
559
+ return "連接丟失,正在嘗試恢復";
560
+ }
561
+ if (key === 'Please perform the "Authorise POS" function on your terminal') {
562
+ return "請在您的EFTPOS上執行“授權POS”功能";
563
+ }
564
+ if (key.includes("Processing transaction - please wait")) {
565
+ return "交易處理中, 請等待...";
566
+ }
567
+ if (key.includes(
568
+ "Transaction could not be processed (410). Void transaction via terminal if necessary"
569
+ )) {
570
+ return "交易無法處理。必要時可以通過刷卡機作廢交易。";
571
+ }
572
+ if (key.includes("Invalid transaction details")) {
573
+ return key.replace(/^(Invalid transaction details)/i, "交易詳細信息無效");
574
+ }
575
+ if (key === "Tyro system not ready (202). Please try again.") {
576
+ return "Tyro系統未就緒(202)。請重試。";
577
+ }
578
+ if (key === "Querying terminal...") {
579
+ return "正在查詢終端... ";
580
+ }
581
+ if (key === "Transaction could not be processed (202). Void transaction via terminal if necessary.") {
582
+ return "無法處理交易(202)。請通過終端撤銷交易。";
583
+ }
584
+ if (key === "Transaction could not be processed (403). Void transaction via terminal if necessary.") {
585
+ return "無法處理交易(403)。請通過終端撤銷交易。";
586
+ }
587
+ if (key === "Transaction could not be processed (400). Void transaction via terminal if necessary.") {
588
+ return "無法處理交易(400)。請通過終端撤銷交易。";
589
+ }
590
+ if (key === "Transaction could not be processed (404). Void transaction via terminal if necessary.") {
591
+ return "無法處理交易(404)。請通過終端撤銷交易。";
592
+ }
593
+ if (key === "Transaction could not be processed (502). Void transaction via terminal if necessary.") {
594
+ return "無法處理交易(502)。請通過終端撤銷交易。";
595
+ }
596
+ if (key === "Transaction could not be processed (503). Void transaction via terminal if necessary.") {
597
+ return "無法處理交易(503)。請通過終端撤銷交易。";
598
+ }
599
+ if (key === "Transaction could not be processed (504). Void transaction via terminal if necessary.") {
600
+ return "無法處理交易(504)。請通過終端撤銷交易。";
601
+ }
602
+ if (key === "Connection to terminal lost (404). Check terminal connection.") {
603
+ return "終端設備連接丟失(404)。請檢查設備連接";
604
+ }
605
+ if (key === "Connection to terminal lost (502). Check terminal connection.") {
606
+ return "終端設備連接丟失(502)。請檢查設備連接";
607
+ }
608
+ if (key === "Connection to terminal lost (504). Check terminal connection.") {
609
+ return "終端設備連接丟失(504)。請檢查設備連接";
610
+ }
611
+ if (key === "Connection to terminal lost (404). Check connection and try again(404).") {
612
+ return "終端設備連接丟失。請檢查設備連接並重試(404)";
613
+ }
614
+ if (key === "Transaction could not be processed (410).") {
615
+ return "無法處理交易(410)。";
616
+ }
617
+ if (key === "Continuing last transaction...") {
618
+ return "繼續進行上次交易";
619
+ }
620
+ if (key === "Enter PIN or press SIGN") {
621
+ return "請輸入密碼或簽名";
622
+ }
623
+ if (key === "TRANSACTION CANCELLED") {
624
+ return "交易已取消";
625
+ }
626
+ if (key === "Reversing transaction") {
627
+ return "正在撤銷交易...";
628
+ }
629
+ if (key === "POS is not paired with a terminal") {
630
+ return [
631
+ "POS未與EFTPOS配對。",
632
+ "請先配對後再發起支付。"
633
+ ];
634
+ }
635
+ if (key === "Terminal is busy processing another transaction (503)") {
636
+ return [
637
+ "交易繁忙,刷卡機正在處理另一筆交易。",
638
+ "請在刷卡機上處理完成上一筆交易後再次發起支付。"
639
+ ];
640
+ }
641
+ if (key === "DECLINED. Print customer copy?") {
642
+ return "已拒絕。是否打印客户副本?";
643
+ }
644
+ if (key === "APPROVED. Print customer copy?" || key === "Approved. Print customer copy?") {
645
+ return "已批准。是否打印客户副本?";
646
+ }
647
+ if (key === "Please answer this question with one of the following option/s") {
648
+ return "請使用以下選項之一回答此問題";
649
+ }
650
+ return key;
651
+ }
303
652
  }
304
653
  };