Payment Plugins for Stripe WooCommerce - Version 3.3.17

Version Description

  • Added - Stripe Customer ID field in the WooCommerce Subscription edit subscription page so it can be easily updated if necessary.
  • Added - Plugin main page that contains link to support and documentation
  • Added - WooFunnels AeroCheckout Express button compatibility.
  • Updated - WC Tested up to 5.6
  • Updated - Moved the Admin menu link for Stripe plugin to the WooCommerce menu section.
  • Updated - Clearpay transaction limit set to 1000 GBP
  • Updated - VISA and Maestro icons.
  • Updated - Express checkout on checkout page now includes "OR" text separator. HTML was updated and new css class names used.
Download this release

Release Info

Developer mr.clayton
Plugin Icon wp plugin Payment Plugins for Stripe WooCommerce
Version 3.3.17
Comparing to
See all releases

Code changes from version 3.3.16 to 3.3.17

Files changed (84) hide show
  1. assets/css/admin/admin-rtl.css +13 -3
  2. assets/css/admin/admin.css +13 -3
  3. assets/css/admin/main.css +415 -0
  4. assets/css/stripe-rtl.css +40 -18
  5. assets/css/stripe.css +40 -18
  6. assets/css/stripe.min-rtl.css +1 -1
  7. assets/css/stripe.min.css +1 -1
  8. assets/img/cards/maestro.svg +14 -13
  9. assets/img/cards/visa.svg +1 -1
  10. assets/img/documentation.svg +1 -0
  11. assets/img/paymentplugins.svg +122 -0
  12. assets/img/settings.svg +1 -0
  13. assets/img/support.svg +1 -0
  14. assets/js/admin/help-widget.js +65 -22
  15. assets/js/admin/main.js +67 -0
  16. assets/js/frontend/afterpay.js +19 -15
  17. assets/js/frontend/afterpay.min.js +1 -1
  18. assets/js/frontend/applepay-checkout.js +1 -1
  19. assets/js/frontend/applepay-checkout.min.js +1 -1
  20. assets/js/frontend/applepay-product.js +8 -1
  21. assets/js/frontend/applepay-product.min.js +1 -1
  22. assets/js/frontend/credit-card.js +10 -6
  23. assets/js/frontend/credit-card.min.js +1 -1
  24. assets/js/frontend/googlepay-checkout.js +1 -1
  25. assets/js/frontend/googlepay-checkout.min.js +1 -1
  26. assets/js/frontend/local-payment.js +8 -0
  27. assets/js/frontend/local-payment.min.js +1 -1
  28. assets/js/frontend/payment-request.js +6 -5
  29. assets/js/frontend/payment-request.min.js +1 -1
  30. assets/js/frontend/wc-stripe.js +18 -8
  31. assets/js/frontend/wc-stripe.min.js +1 -1
  32. i18n/languages/woo-stripe-payment.pot +135 -41
  33. includes/abstract/abstract-wc-payment-gateway-stripe.php +4 -0
  34. includes/admin/class-wc-stripe-admin-assets.php +12 -2
  35. includes/admin/class-wc-stripe-admin-menus.php +8 -9
  36. includes/admin/class-wc-stripe-admin-support.php +40 -0
  37. includes/admin/class-wc-stripe-admin-welcome.php +21 -0
  38. includes/admin/settings/class-wc-stripe-advanced-settings.php +1 -1
  39. includes/admin/views/html-main-navigation.php +29 -0
  40. includes/admin/views/html-settings-nav.php +7 -5
  41. includes/admin/views/html-support-page.php +44 -0
  42. includes/admin/views/html-welcome-page.php +94 -0
  43. includes/class-stripe.php +6 -2
  44. includes/class-wc-stripe-customer-manager.php +9 -7
  45. includes/class-wc-stripe-frontend-scripts.php +10 -7
  46. includes/class-wc-stripe-payment-charge.php +8 -6
  47. includes/class-wc-stripe-rest-api.php +15 -12
  48. includes/controllers/class-wc-stripe-controller-signup.php +70 -0
  49. includes/gateways/class-wc-payment-gateway-stripe-afterpay.php +1 -1
  50. includes/gateways/class-wc-payment-gateway-stripe-cc.php +1 -1
  51. includes/gateways/settings/cc-settings.php +1 -1
  52. packages/checkoutwc/assets/css/styles.scss +43 -0
  53. packages/checkoutwc/build/styles-rtl.css +1 -0
  54. packages/checkoutwc/build/styles.css +1 -0
  55. packages/checkoutwc/build/styles.js.map +1 -0
  56. packages/checkoutwc/src/AssetsController.php +34 -0
  57. packages/checkoutwc/src/Main.php +17 -0
  58. packages/woofunnels/assets/css/checkout/styles.scss +16 -0
  59. packages/woofunnels/assets/js/checkout/index.js +10 -0
  60. packages/woofunnels/assets/js/{index.js → upsell/index.js} +0 -0
  61. packages/woofunnels/build/wc-stripe-woofunnels-checkout-styles-rtl.css +1 -0
  62. packages/woofunnels/build/wc-stripe-woofunnels-checkout-styles.css +1 -0
  63. packages/woofunnels/build/wc-stripe-woofunnels-checkout-styles.js.map +1 -0
  64. packages/woofunnels/build/{wc-stripe-woofunnels.asset.php → wc-stripe-woofunnels-checkout.asset.php} +1 -1
  65. packages/woofunnels/build/wc-stripe-woofunnels-checkout.js +2 -0
  66. packages/woofunnels/build/wc-stripe-woofunnels-checkout.js.map +1 -0
  67. packages/woofunnels/build/wc-stripe-woofunnels-upsell.asset.php +1 -0
  68. packages/woofunnels/build/{wc-stripe-woofunnels.js → wc-stripe-woofunnels-upsell.js} +2 -2
  69. packages/woofunnels/build/wc-stripe-woofunnels-upsell.js.map +1 -0
  70. packages/woofunnels/build/wc-stripe-woofunnels.js.map +0 -1
  71. packages/woofunnels/src/AssetsApi.php +50 -0
  72. packages/woofunnels/src/Checkout/Compatibility/AbstractCompatibility.php +48 -0
  73. packages/woofunnels/src/Checkout/Compatibility/ApplePay.php +9 -0
  74. packages/woofunnels/src/Checkout/Compatibility/ExpressButtonController.php +89 -0
  75. packages/woofunnels/src/Checkout/Compatibility/GooglePay.php +9 -0
  76. packages/woofunnels/src/Checkout/Compatibility/PaymentRequest.php +9 -0
  77. packages/woofunnels/src/Main.php +13 -1
  78. packages/woofunnels/src/PaymentGateways.php +10 -9
  79. readme.txt +10 -1
  80. stripe-payments.php +2 -2
  81. templates/checkout/checkout-banner.php +11 -8
  82. vendor/composer/autoload_psr4.php +1 -0
  83. vendor/composer/autoload_static.php +5 -0
  84. vendor/composer/installed.php +2 -2
assets/css/admin/admin-rtl.css CHANGED
@@ -8,12 +8,22 @@
8
 
9
  .wc-stripe-settings-logo {
10
  margin: 1.5em 0 0.5em 1em;
 
 
11
  }
12
 
13
  .wc-stripe-settings-logo img {
14
- width: 150px;
15
- max-width: 150px;
16
  margin-right: 0.5em;
 
 
 
 
 
 
 
 
 
 
17
  }
18
 
19
  .wc-stripe-advanced-settings-nav {
@@ -304,7 +314,7 @@
304
  }
305
 
306
  .stipe-connect-active,
307
- .stripe-webhook-created{
308
  font-size: 30px;
309
  color: green;
310
  width: 25px;
8
 
9
  .wc-stripe-settings-logo {
10
  margin: 1.5em 0 0.5em 1em;
11
+ display: flex;
12
+ align-items: center;
13
  }
14
 
15
  .wc-stripe-settings-logo img {
 
 
16
  margin-right: 0.5em;
17
+ width: 80px;
18
+ }
19
+
20
+ .wc-stripe-settings-logo span {
21
+ margin: 0 5px;
22
+ }
23
+
24
+ .wc-stripe-settings-logo img.paymentplugins-logo {
25
+ width: 120px;
26
+ max-width: 120px;
27
  }
28
 
29
  .wc-stripe-advanced-settings-nav {
314
  }
315
 
316
  .stipe-connect-active,
317
+ .stripe-webhook-created {
318
  font-size: 30px;
319
  color: green;
320
  width: 25px;
assets/css/admin/admin.css CHANGED
@@ -8,12 +8,22 @@
8
 
9
  .wc-stripe-settings-logo {
10
  margin: 1.5em 1em 0.5em 0;
 
 
11
  }
12
 
13
  .wc-stripe-settings-logo img {
14
- width: 150px;
15
- max-width: 150px;
16
  margin-left: 0.5em;
 
 
 
 
 
 
 
 
 
 
17
  }
18
 
19
  .wc-stripe-advanced-settings-nav {
@@ -304,7 +314,7 @@
304
  }
305
 
306
  .stipe-connect-active,
307
- .stripe-webhook-created{
308
  font-size: 30px;
309
  color: green;
310
  width: 25px;
8
 
9
  .wc-stripe-settings-logo {
10
  margin: 1.5em 1em 0.5em 0;
11
+ display: flex;
12
+ align-items: center;
13
  }
14
 
15
  .wc-stripe-settings-logo img {
 
 
16
  margin-left: 0.5em;
17
+ width: 80px;
18
+ }
19
+
20
+ .wc-stripe-settings-logo span {
21
+ margin: 0 5px;
22
+ }
23
+
24
+ .wc-stripe-settings-logo img.paymentplugins-logo {
25
+ width: 120px;
26
+ max-width: 120px;
27
  }
28
 
29
  .wc-stripe-advanced-settings-nav {
314
  }
315
 
316
  .stipe-connect-active,
317
+ .stripe-webhook-created {
318
  font-size: 30px;
319
  color: green;
320
  width: 25px;
assets/css/admin/main.css ADDED
@@ -0,0 +1,415 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .woocommerce_page_wc-stripe-main {
2
+ background: #fff;
3
+ }
4
+
5
+ body.woocommerce_page_wc-stripe-main .notice.error {
6
+ display: none !important;
7
+ }
8
+
9
+ .wc-stripe-main__page,
10
+ .wc-stripe-support__page {
11
+ width: 100%;
12
+ padding: 10px;
13
+ background: #fff;
14
+ margin: auto;
15
+ box-sizing: border-box;
16
+ }
17
+
18
+ .wc-stripe-main__container {
19
+ max-width: 960px;
20
+ display: flex;
21
+ flex-direction: column;
22
+ }
23
+
24
+ .wc-stripe-main__container h1 {
25
+ font-size: 22px;
26
+ }
27
+
28
+ .wc-stripe-main__header {
29
+ width: 100%;
30
+ }
31
+
32
+ .wc-stripe-main__header h1 {
33
+ color: rgb(102, 102, 102);
34
+ }
35
+
36
+ .wc-stripe-main__header.welcome-header {
37
+
38
+ }
39
+
40
+ .wc-stripe-main__header .description {
41
+ flex: 1 1 auto;
42
+ text-align: center;
43
+ }
44
+
45
+ .wc-stripe-support__page .wc-stripe-main__header .description {
46
+ text-align: left;
47
+ margin-top: 20px;
48
+ }
49
+
50
+ .wc-stripe-main__logo {
51
+ display: flex;
52
+ align-items: center;
53
+ }
54
+
55
+ .wc-stripe-main__logo img {
56
+ width: 100px;
57
+ }
58
+
59
+ .wc-stripe-main__logo img.stripe {
60
+ width: 80px;
61
+ }
62
+
63
+ .wc-stripe-main__logo span {
64
+ margin: 0 8px;
65
+ color: rgb(102, 102, 102);
66
+ }
67
+
68
+ .wc-stripe-main__header p {
69
+ color: #919191;
70
+ }
71
+
72
+ .wc-stripe-main__row {
73
+ display: flex;
74
+ flex-wrap: wrap;
75
+ margin: 20px -10px 0 -10px;
76
+ }
77
+
78
+ .wc-stripe-support__content .wc-stripe-main__row {
79
+ justify-content: center;
80
+ }
81
+
82
+ .wc-stripe-main__card {
83
+ flex: 0 0 50%;
84
+ max-width: 300px;
85
+ padding: 10px;
86
+ }
87
+
88
+ .wc-stripe-main__card a,
89
+ .wc-stripe-main__card a:active,
90
+ .wc-stripe-main__card a:focus,
91
+ .wc-stripe-main__card a:hover {
92
+ text-decoration: none !important;
93
+ outline: none !important;
94
+ border: none;
95
+ box-shadow: none;
96
+ color: #fff;
97
+ }
98
+
99
+ .wc-stripe-main-card__content {
100
+ width: 100%;
101
+ display: flex;
102
+ box-shadow: rgb(0 0 0 / 20%) 0px 2px 1px -1px, rgb(0 0 0 / 14%) 0px 1px 1px 0px, rgb(0 0 0 / 12%) 0px 1px 3px 0px;
103
+ height: 100%;
104
+ align-items: center;
105
+ justify-content: center;
106
+ flex-wrap: wrap;
107
+ align-content: center;
108
+ flex-direction: column;
109
+ transition: box-shadow 400ms;
110
+ }
111
+
112
+ .wc-stripe-main-card__content:not(.register, .support) {
113
+
114
+ }
115
+
116
+ .wc-stripe-main-card__content:hover {
117
+ box-shadow: rgb(0 0 0 / 20%) 0px 2px 10px -1px, rgb(0 0 0 / 14%) 0px 1px 1px 0px, rgb(0 0 0 / 12%) 0px 1px 3px 0px;
118
+ }
119
+
120
+ .wc-stripe-main-card__content p {
121
+ color: #919191;
122
+ }
123
+
124
+ .wc-stripe-main-card__content h3 {
125
+ font-size: 1.5em;
126
+ }
127
+
128
+ .icon-container {
129
+ content: ' ';
130
+ min-width: 90px;
131
+ height: 90px;
132
+ border-radius: 50%;
133
+ background: #ccd1ff;
134
+ margin: 10px;
135
+ display: flex;
136
+ justify-content: center;
137
+ align-items: center;
138
+ }
139
+
140
+ .icon-container img.icon {
141
+ width: 60px;
142
+ height: 60px;
143
+ }
144
+
145
+ .card-header {
146
+ padding: 20px;
147
+ text-align: center;
148
+ }
149
+
150
+ .icon-container.support {
151
+ background-color: #ffcbee;
152
+ }
153
+
154
+ .icon-container.documentation {
155
+ background-color: rgb(100 212 219 / 60%);
156
+ }
157
+
158
+ .icon-container span {
159
+ color: #fff;
160
+ font-size: 40px;
161
+ width: 40px;
162
+ height: 40px;
163
+ }
164
+
165
+ @media (max-width: 670px) {
166
+ .wc-stripe-main__card {
167
+ flex: 0 0 100%;
168
+ max-width: 300px;
169
+ /* padding: 10px; */
170
+ }
171
+
172
+ .wc-stripe-main__logo {
173
+ width: 100px;
174
+ margin: 0;
175
+ }
176
+
177
+ .wc-stripe-main__header.welcome-header {
178
+ align-items: start;
179
+ }
180
+
181
+ .wc-stripe-main__header .description {
182
+ text-align: left;
183
+ }
184
+ }
185
+
186
+ .sign-up-container .sib-form-block {
187
+ padding: 0;
188
+ }
189
+
190
+ .sib-form-block p {
191
+ font-size: 20px;
192
+ text-align: left;
193
+ font-weight: 700;
194
+ font-family: "Helvetica", sans-serif;
195
+ color: #3C4858;
196
+ background-color: transparent;
197
+ }
198
+
199
+ .sib-text-form-block p {
200
+ font-size: 16px;
201
+ color: #919191;
202
+ }
203
+
204
+ .sib-form .entry_errored .entry__error {
205
+ padding: 4px 8px;
206
+ font-size: 14px;
207
+ }
208
+
209
+ .wc-stripe-card-button,
210
+ .primary-button {
211
+ font-size: 16px;
212
+ text-align: left;
213
+ font-weight: 700;
214
+ font-family: "Helvetica", sans-serif;
215
+ color: #FFFFFF;
216
+ background-color: #3E4857;
217
+ border-radius: 3px;
218
+ border-width: 0px;
219
+ line-height: 23px;
220
+ padding: 8px 18px;
221
+ display: inline-block;
222
+ cursor: pointer;
223
+ }
224
+
225
+ .sib-form-button {
226
+ margin-left: 5px;
227
+ background-color: rgb(102, 102, 102);
228
+ }
229
+
230
+ .wc-stripe-card-button:hover,
231
+ .wc-stripe-card-button:active {
232
+ text-decoration: none;
233
+ border: none;
234
+ }
235
+
236
+ .wc-stripe-main__row.justify-content-start {
237
+ justify-content: start;
238
+ }
239
+
240
+ .cards-container {
241
+ margin-top: 20px;
242
+ }
243
+
244
+ .navigation {
245
+ display: flex;
246
+ align-items: center;
247
+ padding: 10px;
248
+ box-shadow: rgb(0 0 0 / 20%) 0px 2px 1px -1px, rgb(0 0 0 / 14%) 0px 1px 1px 0px, rgb(0 0 0 / 12%) 0px 1px 3px 0px;
249
+ }
250
+
251
+ .navigation .navigation-tabs {
252
+ margin-left: 15px;
253
+ text-decoration: none;
254
+ }
255
+
256
+ .navigation .navigation-tabs a {
257
+ padding: 10px 15px;
258
+ color: rgb(102, 102, 102);
259
+ text-decoration: none;
260
+ font-size: 16px;
261
+ }
262
+
263
+ .navigation .navigation-tabs a.active {
264
+ font-weight: 500;
265
+ }
266
+
267
+ .navigation .stripe-logo {
268
+ flex: 1;
269
+ display: flex;
270
+ justify-content: flex-end;
271
+ }
272
+
273
+ .navigation .stripe-logo img {
274
+ max-width: 60px;
275
+ }
276
+
277
+ .wc-stripe-signup-container {
278
+ margin: 20px 0;
279
+ display: flex;
280
+ flex-wrap: wrap;
281
+ }
282
+
283
+ .wc-stripe-signup-container h3 {
284
+ width: 100%;
285
+ }
286
+
287
+ .wc-stripe-signup-container .wc-stripe-signup__section {
288
+ width: 60%;
289
+ }
290
+
291
+ .wc-stripe-signup-container .wc-stripe-signup__section p {
292
+ /* margin: 0; */
293
+ }
294
+
295
+ .wc-stripe-signup__section.signup-form {
296
+ display: flex;
297
+ align-items: flex-end;
298
+ justify-content: flex-end;
299
+ width: 40%;
300
+ margin-top: 20px;
301
+ }
302
+
303
+ .wc-stripe-signup__section.signup-form input {
304
+ width: 100%;
305
+ min-height: 32px;
306
+ }
307
+
308
+ .wc-stripe-signup__section.signup-form .entry-row:not(:last-child) {
309
+ margin-bottom: 10px;
310
+ }
311
+
312
+ #wc-stripe-signup {
313
+ position: relative;
314
+ }
315
+
316
+ #wc-stripe-signup:disabled{
317
+ opacity: 0.6;
318
+ }
319
+
320
+ .wc-stripe-loader {
321
+ display: flex;
322
+ justify-content: center;
323
+ position: relative;
324
+ width: 30px;
325
+ height: 30px;
326
+ top: 0;
327
+ left: -30px;
328
+ box-sizing: border-box;
329
+ transform: scale(.65);
330
+ position: absolute;
331
+ }
332
+
333
+ .wc-stripe-loader div {
334
+ box-sizing: border-box;
335
+ display: block;
336
+ position: absolute;
337
+ box-sizing: border-box;
338
+ width: 30px;
339
+ height: 30px;
340
+ border: 3px solid #000;
341
+ border-radius: 50%;
342
+ animation: wc-stripe-loader 1.3s cubic-bezier(0.5, 0, 0.5, 1) infinite;
343
+ border-color: #000 transparent transparent transparent;
344
+ }
345
+
346
+ .wc-stripe-loader div:nth-child(1) {
347
+ animation-delay: -0.45s;
348
+ }
349
+
350
+ .wc-stripe-loader div:nth-child(2) {
351
+ animation-delay: -0.3s;
352
+ }
353
+
354
+ .wc-stripe-loader div:nth-child(3) {
355
+ animation-delay: -0.15s;
356
+ }
357
+
358
+ @keyframes wc-stripe-loader {
359
+ 0% {
360
+ transform: rotate(0deg);
361
+ }
362
+ 100% {
363
+ transform: rotate(360deg);
364
+ }
365
+ }
366
+
367
+ div.wc-stripe-notice {
368
+ display: flex;
369
+ align-items: center;
370
+ position: fixed;
371
+ font-size: 14px;
372
+ width: 300px;
373
+ padding: 10px 20px;
374
+ color: #fff;
375
+ right: 10px;
376
+ bottom: 20px;
377
+ border-radius: 3px;
378
+ border: none;
379
+ box-shadow: 0px 3px 5px -1px rgb(0 0 0 / 20%), 0px 6px 10px 0px rgb(0 0 0 / 14%), 0px 1px 18px 0px rgb(0 0 0 / 12%);
380
+ }
381
+
382
+ .wc-stripe-notice.success {
383
+ background: #43a047;
384
+ }
385
+
386
+ .wc-stripe-notice.success span.dashicons {
387
+ color: #43a047;
388
+ }
389
+
390
+ .wc-stripe-notice.error {
391
+ background: #e22525;
392
+ }
393
+
394
+ .wc-stripe-notice.error span.dashicons {
395
+ color: #e22525;
396
+ }
397
+
398
+ .wc-stripe-notice span.dashicons {
399
+ width: 20px;
400
+ height: 20px;
401
+ background: #fff;
402
+ border-radius: 10px;
403
+ margin-right: 10px;
404
+ }
405
+
406
+ .wc-stripe-notice div.dismiss {
407
+ flex: 1;
408
+ text-align: right;
409
+ cursor: pointer;
410
+ margin-left: 5px;
411
+ }
412
+
413
+ .wc-stripe-notice span.dashicons-dismiss {
414
+ margin: 0;
415
+ }
assets/css/stripe-rtl.css CHANGED
@@ -223,7 +223,7 @@ label.wc-stripe-label-payment-type:after {
223
  margin: 0 5px 0px 0;
224
  }
225
 
226
- .wc-stripe_cc-container .wc-stripe-save-source input[type="checkbox"] {
227
  opacity: 0;
228
  position: absolute;
229
  width: 20px;
@@ -332,6 +332,7 @@ li.payment_method_stripe_payment_request {
332
  .wc_stripe_product_payment_methods .gpay-card-info-container,
333
  .wc_stripe_cart_payment_methods .gpay-card-info-container {
334
  width: 100% !important;
 
335
  margin: 0;
336
  }
337
 
@@ -404,7 +405,7 @@ li.payment_method_stripe_ach label:first-of-type img {
404
  background-size: contain;
405
  }
406
 
407
- .gpay-button:active{
408
  background-origin: content-box;
409
  background-position: center center;
410
  background-repeat: no-repeat;
@@ -441,10 +442,6 @@ li.payment_method_stripe_ach label:first-of-type img {
441
  -apple-pay-button-style: white-outline;
442
  }
443
 
444
- .applepay-top-container .apple-pay-button {
445
- max-width: 240px;
446
- }
447
-
448
  .woocommerce-checkout-payment .apple-pay-button {
449
  max-width: 240px;
450
  }
@@ -456,20 +453,29 @@ li.payment_method_stripe_ach label:first-of-type img {
456
 
457
  .wc-stripe-banner-checkout {
458
  display: none;
459
- padding: 20px 15px 0 15px;
460
- border: 1px solid #d1d1d1;
461
- border-width: 0 0 1px;
462
  position: relative;
463
  margin: 1em 0;
 
 
 
 
 
 
 
 
464
 
 
 
 
 
465
  }
466
 
467
  .wc-stripe-banner-checkout.active {
468
  display: block;
469
  }
470
 
471
- .wc-stripe-banner-checkout span.banner-title {
472
- position: absolute;
473
  display: flex;
474
  align-items: center;
475
  top: -13px;
@@ -480,8 +486,8 @@ li.payment_method_stripe_ach label:first-of-type img {
480
  font-size: 16px;
481
  }
482
 
483
- .wc-stripe-banner-checkout span.banner-title:before,
484
- .wc-stripe-banner-checkout span.banner-title:after {
485
  content: ' ';
486
  height: 1px;
487
  background: #d1d1d1;
@@ -489,12 +495,12 @@ li.payment_method_stripe_ach label:first-of-type img {
489
  width: 50%;
490
  }
491
 
492
- .wc-stripe-banner-checkout span.banner-title:before {
493
- margin-left: 8px;
494
  }
495
 
496
- .wc-stripe-banner-checkout span.banner-title:after {
497
- margin-right: 8px;
498
  }
499
 
500
  .wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways {
@@ -504,8 +510,17 @@ li.payment_method_stripe_ach label:first-of-type img {
504
  }
505
 
506
  .wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways li.wc-stripe-checkout-banner-gateway {
507
- margin: 0 0 20px 0;
508
  display: none;
 
 
 
 
 
 
 
 
 
509
  }
510
 
511
  .wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways li.wc-stripe-checkout-banner-gateway .gpay-button,
@@ -620,6 +635,12 @@ ul.payment_methods li.payment_method_stripe_grabpay img {
620
  max-height: 28px;
621
  }
622
 
 
 
 
 
 
 
623
  #wc-stripe-card-element {
624
  width: 100%;
625
  }
@@ -1018,6 +1039,7 @@ label[for=payment_method_stripe_afterpay] > #wc-stripe-afterpay-msg {
1018
  div.payment_method_stripe_cc > .woocommerce-NoticeGroup {
1019
  margin-bottom: 10px;
1020
  }
 
1021
  div.payment_method_stripe_cc.custom-form__bootstrap > .woocommerce-NoticeGroup {
1022
  margin-bottom: 20px;
1023
  }
223
  margin: 0 5px 0px 0;
224
  }
225
 
226
+ .wc-stripe_cc-container .wc-stripe-save-source input[type="checkbox"][name="stripe_cc_save_source_key"] {
227
  opacity: 0;
228
  position: absolute;
229
  width: 20px;
332
  .wc_stripe_product_payment_methods .gpay-card-info-container,
333
  .wc_stripe_cart_payment_methods .gpay-card-info-container {
334
  width: 100% !important;
335
+ min-width: 100%;
336
  margin: 0;
337
  }
338
 
405
  background-size: contain;
406
  }
407
 
408
+ .gpay-button:active {
409
  background-origin: content-box;
410
  background-position: center center;
411
  background-repeat: no-repeat;
442
  -apple-pay-button-style: white-outline;
443
  }
444
 
 
 
 
 
445
  .woocommerce-checkout-payment .apple-pay-button {
446
  max-width: 240px;
447
  }
453
 
454
  .wc-stripe-banner-checkout {
455
  display: none;
456
+ padding: 0;
 
 
457
  position: relative;
458
  margin: 1em 0;
459
+ }
460
+
461
+ .wc-stripe-banner-checkout fieldset {
462
+ padding: 15px 25px 15px;
463
+ border: 1px solid #d1d1d1;
464
+ margin-bottom: 20px;
465
+ border-radius: 3px;
466
+ }
467
 
468
+ .wc-stripe-banner-checkout fieldset legend {
469
+ margin: 0 auto;
470
+ font-weight: 500;
471
+ padding: 0 1rem;
472
  }
473
 
474
  .wc-stripe-banner-checkout.active {
475
  display: block;
476
  }
477
 
478
+ .wc-stripe-banner-checkout span.banner-divider {
 
479
  display: flex;
480
  align-items: center;
481
  top: -13px;
486
  font-size: 16px;
487
  }
488
 
489
+ .wc-stripe-banner-checkout span.banner-divider:before,
490
+ .wc-stripe-banner-checkout span.banner-divider:after {
491
  content: ' ';
492
  height: 1px;
493
  background: #d1d1d1;
495
  width: 50%;
496
  }
497
 
498
+ .wc-stripe-banner-checkout span.banner-divider:before {
499
+ margin-left: 1rem;
500
  }
501
 
502
+ .wc-stripe-banner-checkout span.banner-divider:after {
503
+ margin-right: 1rem;
504
  }
505
 
506
  .wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways {
510
  }
511
 
512
  .wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways li.wc-stripe-checkout-banner-gateway {
513
+ margin: 0 auto;
514
  display: none;
515
+ max-width: 240px;
516
+ }
517
+
518
+ .wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways li.wc-stripe-checkout-banner-gateway.active:nth-child(n+2) {
519
+ margin: 10px auto 0 auto;
520
+ }
521
+
522
+ .wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways li.wc-stripe-checkout-banner-gateway:first-child:not(.active) + li.wc-stripe-checkout-banner-gateway.active {
523
+ margin: 0 auto;
524
  }
525
 
526
  .wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways li.wc-stripe-checkout-banner-gateway .gpay-button,
635
  max-height: 28px;
636
  }
637
 
638
+ ul.payment_methods li.payment_method_stripe_oxxo img {
639
+ max-width: 52px;
640
+ width: 52px;
641
+ max-height: 24px;
642
+ }
643
+
644
  #wc-stripe-card-element {
645
  width: 100%;
646
  }
1039
  div.payment_method_stripe_cc > .woocommerce-NoticeGroup {
1040
  margin-bottom: 10px;
1041
  }
1042
+
1043
  div.payment_method_stripe_cc.custom-form__bootstrap > .woocommerce-NoticeGroup {
1044
  margin-bottom: 20px;
1045
  }
assets/css/stripe.css CHANGED
@@ -223,7 +223,7 @@ label.wc-stripe-label-payment-type:after {
223
  margin: 0 0 0px 5px;
224
  }
225
 
226
- .wc-stripe_cc-container .wc-stripe-save-source input[type="checkbox"] {
227
  opacity: 0;
228
  position: absolute;
229
  width: 20px;
@@ -332,6 +332,7 @@ li.payment_method_stripe_payment_request {
332
  .wc_stripe_product_payment_methods .gpay-card-info-container,
333
  .wc_stripe_cart_payment_methods .gpay-card-info-container {
334
  width: 100% !important;
 
335
  margin: 0;
336
  }
337
 
@@ -404,7 +405,7 @@ li.payment_method_stripe_ach label:first-of-type img {
404
  background-size: contain;
405
  }
406
 
407
- .gpay-button:active{
408
  background-origin: content-box;
409
  background-position: center center;
410
  background-repeat: no-repeat;
@@ -441,10 +442,6 @@ li.payment_method_stripe_ach label:first-of-type img {
441
  -apple-pay-button-style: white-outline;
442
  }
443
 
444
- .applepay-top-container .apple-pay-button {
445
- max-width: 240px;
446
- }
447
-
448
  .woocommerce-checkout-payment .apple-pay-button {
449
  max-width: 240px;
450
  }
@@ -456,20 +453,29 @@ li.payment_method_stripe_ach label:first-of-type img {
456
 
457
  .wc-stripe-banner-checkout {
458
  display: none;
459
- padding: 20px 15px 0 15px;
460
- border: 1px solid #d1d1d1;
461
- border-width: 0 0 1px;
462
  position: relative;
463
  margin: 1em 0;
 
 
 
 
 
 
 
 
464
 
 
 
 
 
465
  }
466
 
467
  .wc-stripe-banner-checkout.active {
468
  display: block;
469
  }
470
 
471
- .wc-stripe-banner-checkout span.banner-title {
472
- position: absolute;
473
  display: flex;
474
  align-items: center;
475
  top: -13px;
@@ -480,8 +486,8 @@ li.payment_method_stripe_ach label:first-of-type img {
480
  font-size: 16px;
481
  }
482
 
483
- .wc-stripe-banner-checkout span.banner-title:before,
484
- .wc-stripe-banner-checkout span.banner-title:after {
485
  content: ' ';
486
  height: 1px;
487
  background: #d1d1d1;
@@ -489,12 +495,12 @@ li.payment_method_stripe_ach label:first-of-type img {
489
  width: 50%;
490
  }
491
 
492
- .wc-stripe-banner-checkout span.banner-title:before {
493
- margin-right: 8px;
494
  }
495
 
496
- .wc-stripe-banner-checkout span.banner-title:after {
497
- margin-left: 8px;
498
  }
499
 
500
  .wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways {
@@ -504,8 +510,17 @@ li.payment_method_stripe_ach label:first-of-type img {
504
  }
505
 
506
  .wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways li.wc-stripe-checkout-banner-gateway {
507
- margin: 0 0 20px 0;
508
  display: none;
 
 
 
 
 
 
 
 
 
509
  }
510
 
511
  .wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways li.wc-stripe-checkout-banner-gateway .gpay-button,
@@ -620,6 +635,12 @@ ul.payment_methods li.payment_method_stripe_grabpay img {
620
  max-height: 28px;
621
  }
622
 
 
 
 
 
 
 
623
  #wc-stripe-card-element {
624
  width: 100%;
625
  }
@@ -1018,6 +1039,7 @@ label[for=payment_method_stripe_afterpay] > #wc-stripe-afterpay-msg {
1018
  div.payment_method_stripe_cc > .woocommerce-NoticeGroup {
1019
  margin-bottom: 10px;
1020
  }
 
1021
  div.payment_method_stripe_cc.custom-form__bootstrap > .woocommerce-NoticeGroup {
1022
  margin-bottom: 20px;
1023
  }
223
  margin: 0 0 0px 5px;
224
  }
225
 
226
+ .wc-stripe_cc-container .wc-stripe-save-source input[type="checkbox"][name="stripe_cc_save_source_key"] {
227
  opacity: 0;
228
  position: absolute;
229
  width: 20px;
332
  .wc_stripe_product_payment_methods .gpay-card-info-container,
333
  .wc_stripe_cart_payment_methods .gpay-card-info-container {
334
  width: 100% !important;
335
+ min-width: 100%;
336
  margin: 0;
337
  }
338
 
405
  background-size: contain;
406
  }
407
 
408
+ .gpay-button:active {
409
  background-origin: content-box;
410
  background-position: center center;
411
  background-repeat: no-repeat;
442
  -apple-pay-button-style: white-outline;
443
  }
444
 
 
 
 
 
445
  .woocommerce-checkout-payment .apple-pay-button {
446
  max-width: 240px;
447
  }
453
 
454
  .wc-stripe-banner-checkout {
455
  display: none;
456
+ padding: 0;
 
 
457
  position: relative;
458
  margin: 1em 0;
459
+ }
460
+
461
+ .wc-stripe-banner-checkout fieldset {
462
+ padding: 15px 25px 15px;
463
+ border: 1px solid #d1d1d1;
464
+ margin-bottom: 20px;
465
+ border-radius: 3px;
466
+ }
467
 
468
+ .wc-stripe-banner-checkout fieldset legend {
469
+ margin: 0 auto;
470
+ font-weight: 500;
471
+ padding: 0 1rem;
472
  }
473
 
474
  .wc-stripe-banner-checkout.active {
475
  display: block;
476
  }
477
 
478
+ .wc-stripe-banner-checkout span.banner-divider {
 
479
  display: flex;
480
  align-items: center;
481
  top: -13px;
486
  font-size: 16px;
487
  }
488
 
489
+ .wc-stripe-banner-checkout span.banner-divider:before,
490
+ .wc-stripe-banner-checkout span.banner-divider:after {
491
  content: ' ';
492
  height: 1px;
493
  background: #d1d1d1;
495
  width: 50%;
496
  }
497
 
498
+ .wc-stripe-banner-checkout span.banner-divider:before {
499
+ margin-right: 1rem;
500
  }
501
 
502
+ .wc-stripe-banner-checkout span.banner-divider:after {
503
+ margin-left: 1rem;
504
  }
505
 
506
  .wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways {
510
  }
511
 
512
  .wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways li.wc-stripe-checkout-banner-gateway {
513
+ margin: 0 auto;
514
  display: none;
515
+ max-width: 240px;
516
+ }
517
+
518
+ .wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways li.wc-stripe-checkout-banner-gateway.active:nth-child(n+2) {
519
+ margin: 10px auto 0 auto;
520
+ }
521
+
522
+ .wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways li.wc-stripe-checkout-banner-gateway:first-child:not(.active) + li.wc-stripe-checkout-banner-gateway.active {
523
+ margin: 0 auto;
524
  }
525
 
526
  .wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways li.wc-stripe-checkout-banner-gateway .gpay-button,
635
  max-height: 28px;
636
  }
637
 
638
+ ul.payment_methods li.payment_method_stripe_oxxo img {
639
+ max-width: 52px;
640
+ width: 52px;
641
+ max-height: 24px;
642
+ }
643
+
644
  #wc-stripe-card-element {
645
  width: 100%;
646
  }
1039
  div.payment_method_stripe_cc > .woocommerce-NoticeGroup {
1040
  margin-bottom: 10px;
1041
  }
1042
+
1043
  div.payment_method_stripe_cc.custom-form__bootstrap > .woocommerce-NoticeGroup {
1044
  margin-bottom: 20px;
1045
  }
assets/css/stripe.min-rtl.css CHANGED
@@ -1 +1 @@
1
- .wc-stripe-card-icons-container,.wc-stripe-paymentRequest-icons-container{float:left;display:inline-block}ul.payment_methods li[class*=payment_method]{margin:0;padding:0}li[class*=payment_method] input[type=radio]{margin:0 5px 0 10px}li[class*=payment_method] input[type=radio]+label:not(.wc-stripe-label-payment-type){margin:0}.woocommerce-checkout #payment ul.payment_methods li[class*=payment_method_stripe_]:nth-child(n+2),ul.payment_methods li[class*=payment_method_stripe_]:nth-child(n+2){margin:0}li.payment_method_stripe_cc .wc-stripe-card-icons-container img.wc-stripe-card-icon{max-width:43px;max-height:26px;width:43px;height:26px;float:none;display:inline}li.payment_method_stripe_payment_request .wc-stripe-paymentRequest-icons-container img:not(.gpay){width:25px;height:25px;max-width:25px;max-height:25px}ul.payment_methods label[for*=payment_method_stripe]:after{clear:left;content:"";display:block}li.payment_method_stripe_cc .wc-stripe-card-icons-container img.wc-stripe-card-icon:nth-child(2n+2){margin:0 2px}li.payment_method_stripe_cc .wc-stripe-card-icons-container img.wc-stripe-card-icon.open.visa{padding-top:2px}ul.payment_methods li[class*=payment_method_stripe_] label>img:first-of-type{float:left!important}.wc-stripe_cc-new-method-container{margin-bottom:1em}.wc-stripe_cc-container .StripeElement{box-sizing:border-box;height:40px;padding:10px 12px;border-radius:4px;background-color:#fff;-webkit-transition:box-shadow 150ms ease;transition:box-shadow 150ms ease}input.wc-stripe-klarna-category,input.wc-stripe-payment-type{display:none!important}body .wfacp_main_form.woocommerce .wc-stripe-save-source label.checkbox{padding:0!important}input[type=radio]+label.wc-stripe-label-payment-type,label.wc-stripe-label-klarna-category,label.wc-stripe-label-payment-type{margin-bottom:1em;display:block;padding:0!important;color:#000}.theme-flatsome div.wc-stripe-saved-methods-container{margin:0 0 1em 0}label.wc-stripe-label-klarna-category:before,label.wc-stripe-label-payment-type:before{content:"";display:inline-block;width:11px;height:11px;border:2px solid #fff;box-shadow:0 0 0 2px #000;background:#fff;margin-right:4px;margin-left:.5em;border-radius:100%;-webkit-transform:translateY(2px);-ms-transform:translateY(2px);transform:translateY(2px)}input.wc-stripe-klarna-category:checked+label.wc-stripe-label-klarna-category:before,input.wc-stripe-payment-type:checked+label.wc-stripe-label-payment-type:before{background:#000}label.wc-stripe-label-payment-type:after{content:none!important;display:none!important}.wc-stripe-saved-methods-container .select2-container .select2-selection--single .select2-selection__rendered{padding-right:8px}.select2-results__options li.wc-stripe-select2-container,.wc-stripe-saved-methods-container .select2-container .select2-selection--single .wc-stripe-select2-container{display:flex;align-items:center;height:42px;line-height:42px!important}.select2-container .select2-selection--single .wc-stripe-select2-container:before,.select2-results__options li.wc-stripe-select2-container:before{content:'';background-repeat:no-repeat;background-size:40px 24px;width:40px;height:42px;display:inline-block;margin-left:8px;background-position:center}.select2-container .select2-selection--single .wc-stripe-select2-container.visa:before,.select2-results__options li.wc-stripe-select2-container.visa:before{background-image:url(../img/cards/visa.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.mastercard:before,.select2-results__options li.wc-stripe-select2-container.mastercard:before{background-image:url(../img/cards/mastercard.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.americanexpress:before,.select2-results__options li.wc-stripe-select2-container.americanexpress:before{background-image:url(../img/cards/amex.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.amex:before,.select2-results__options li.wc-stripe-select2-container.amex:before{background-image:url(../img/cards/amex.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.discover:before,.select2-results__options li.wc-stripe-select2-container.discover:before{background-image:url(../img/cards/discover.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.mastercard:before,.select2-results__options li.wc-stripe-select2-container.mastercard:before{background-image:url(../img/cards/mastercard.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.dinersclub:before,.select2-results__options li.wc-stripe-select2-container.dinersclub:before{background-image:url(../img/cards/diners.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.diners:before,.select2-results__options li.wc-stripe-select2-container.diners:before{background-image:url(../img/cards/diners.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.jcb:before,.select2-results__options li.wc-stripe-select2-container.jcb:before{background-image:url(../img/cards/jcb.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.stripe_sepa:before,.select2-results__options li.wc-stripe-select2-container.stripe_sepa:before{background-image:url(../img/sepa.svg)}.select2-results__options li.wc-stripe-select2-container.wc-stripe-ach:before{display:none}#wc-stripe-card-element{margin-bottom:1em}.wc-stripe_cc-new-method-container .wc-stripe-save-source{display:flex;align-items:center;justify-content:flex-start}.wc-stripe_cc-container .wc-stripe-save-source .save-source-label{display:block;padding:0;margin:0 5px 0 0}.wc-stripe_cc-container .wc-stripe-save-source input[type=checkbox]{opacity:0;position:absolute;width:20px;height:20px}.wc-stripe_cc-container .wc-stripe-save-source label.checkbox{position:relative}.wc-stripe_cc-container .save-source-checkbox{height:20px;width:20px;position:relative;background-color:#fff;display:block;border-radius:3px;border:1px solid #bababa}.wc-stripe_cc-container .save-source-checkbox:after{content:"";position:absolute;top:0;right:0}.wc-stripe_cc-container .wc-stripe-save-source input[type=checkbox]:checked+.save-source-checkbox:after{right:6px;top:2px;width:7px;height:12px;border:solid #2196f3;border-width:0 0 3px 3px;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}li.payment_method_stripe_applepay,li.payment_method_stripe_googlepay,li.payment_method_stripe_payment_request{display:none}#payment #place_order.wc-stripe-hide,#place_order.wc-stripe-hide,.woocommerce-checkout-review-order #payment #place_order.wc-stripe-hide{position:absolute!important;z-index:-1000!important;height:0!important;padding:0!important;opacity:0!important}.wc-stripe-product-checkout-container{display:none;width:100%}.wc-stripe-product-checkout-container.bottom{margin-top:1em}.wc-stripe-product-checkout-container.top{margin-bottom:1em}.wc-stripe-product-checkout-container.active{display:block}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods,.wc-stripe-product-checkout-container ul.wc_stripe_product_payment_methods{list-style:none;margin:0;padding:0}.wc-stripe-cart-checkout-container{margin:0;padding:0;clear:both}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods{margin-bottom:1.5em}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods li[class*=payment_method_stripe_],.wc-stripe-product-checkout-container ul.wc_stripe_product_payment_methods li[class*=payment_method_stripe_]{margin:0 0 1em 0;list-style:none}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods li[class*=payment_method_stripe_]:last-child,.wc-stripe-product-checkout-container ul.wc_stripe_product_payment_methods li[class*=payment_method_stripe_]:last-child{margin:0}.wc_stripe_cart_payment_methods .gpay-button,.wc_stripe_cart_payment_methods .gpay-card-info-container,.wc_stripe_product_payment_methods .gpay-button,.wc_stripe_product_payment_methods .gpay-card-info-container{width:100%!important;margin:0}.wc_stripe_product_payment_methods .disabled{opacity:.45}.stripe_cart_gateway_active .checkout-button,.woocommerce-cart .stripe_cart_gateway_active .wc-proceed-to-checkout .checkout-button{margin-bottom:0}.wc-stripe-cart-or{margin:1em 0;text-align:center}li.wc-stripe-payment-method.or{display:none}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods.active li.wc-stripe-payment-method.or{display:block;margin:15px 0}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods.active li.wc-stripe-payment-method.or p{margin:0}li[class*=payment_method_stripe_].active~li.wc-stripe-payment-method.or{display:block;margin:0}li.payment_method_stripe_applepay label:first-of-type img{width:49px;max-height:32px}li.payment_method_stripe_googlepay label:first-of-type img{width:48px;max-height:35px}li.payment_method_stripe_googlepay label:first-of-type img[src*=googlepay_standard],li.payment_method_stripe_payment_request label:first-of-type img[src*=googlepay_standard]{width:60px;max-height:35px}li.payment_method_stripe_googlepay label:first-of-type img[src*=googlepay_round_outline],li.payment_method_stripe_payment_request label:first-of-type img[src*=googlepay_round_outline]{width:56px;max-height:30px}li.payment_method_stripe_ach label:first-of-type img{width:32px;height:32px;min-width:32px;min-height:32px}.gpay-button-container .gpay-button:hover,.wc-stripe-checkout-banner-gateway .gpay-button:hover{background-origin:content-box;background-position:center center;background-repeat:no-repeat;background-size:contain}.gpay-button:active{background-origin:content-box;background-position:center center;background-repeat:no-repeat;background-size:contain}.gpay-button:focus{background-origin:content-box;background-position:center center;background-repeat:no-repeat;background-size:contain}@supports (-webkit-appearance:-apple-pay-button){.apple-pay-button{display:block;-webkit-appearance:-apple-pay-button!important;width:100%;max-width:100%;min-width:200px;height:40px;max-height:40px}.apple-pay-button-black{-apple-pay-button-style:#000}.apple-pay-button-white{-apple-pay-button-style:#fff}.apple-pay-button-white-with-line{-apple-pay-button-style:white-outline}.applepay-top-container .apple-pay-button{max-width:240px}.woocommerce-checkout-payment .apple-pay-button{max-width:240px}body.single-product div.product form.cart .wc_stripe_product_payment_methods .apple-pay-button{max-width:100%}}.wc-stripe-banner-checkout{display:none;padding:20px 15px 0 15px;border:1px solid #d1d1d1;border-width:0 0 1px;position:relative;margin:1em 0}.wc-stripe-banner-checkout.active{display:block}.wc-stripe-banner-checkout span.banner-title{position:absolute;display:flex;align-items:center;top:-13px;left:0;right:0;background:0 0;white-space:nowrap;font-size:16px}.wc-stripe-banner-checkout span.banner-title:after,.wc-stripe-banner-checkout span.banner-title:before{content:' ';height:1px;background:#d1d1d1;display:block;width:50%}.wc-stripe-banner-checkout span.banner-title:before{margin-left:8px}.wc-stripe-banner-checkout span.banner-title:after{margin-right:8px}.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways{list-style:none;margin:0;padding:0}.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways li.wc-stripe-checkout-banner-gateway{margin:0 0 20px 0;display:none}.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways li.wc-stripe-checkout-banner-gateway .gpay-button,.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways li.wc-stripe-checkout-banner-gateway .gpay-card-info-container{margin:0}.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways .gpay-button,.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways .gpay-card-info-container{width:100%}.wc_stripe_cart_payment_methods .payment_method_stripe_payment_request .StripeElement,.wc_stripe_product_payment_methods .payment_method_stripe_payment_request .StripeElement{padding:0;width:100%}.woocommerce-checkout #wc-stripe-payment-request-container.StripeElement{width:240px;padding:0}.wc-stripe-checkout-banner-gateway #wc-stripe-payment-request-banner.StripeElement{width:100%}ul.payment_methods li.payment_method_stripe_p24 img{max-width:90px;width:90px;max-height:45px}ul.payment_methods li.payment_method_stripe_ideal img{max-width:38px;width:38px;max-height:35px}ul.payment_methods li.payment_method_stripe_fpx img{max-width:75px;width:75px;max-height:25px}ul.payment_methods li.payment_method_stripe_klarna img{max-width:72px;width:72px;max-height:20px}ul.payment_methods li.payment_method_stripe_klarna img[src*=klarna_pink]{width:56px;height:32px;max-height:32px}ul.payment_methods li.payment_method_stripe_giropay img{max-width:65px;width:65px;max-height:28px}ul.payment_methods li.payment_method_stripe_eps img{max-width:70px;width:70px;max-height:46px}ul.payment_methods li.payment_method_stripe_multibanco img{max-width:48px;width:48px;max-height:48px}ul.payment_methods li.payment_method_stripe_sepa img{max-width:67px;width:67px;max-height:18px}ul.payment_methods li.payment_method_stripe_sofort img{max-width:70px;width:70px;max-height:21px}label[for=payment_method_stripe_bancontact] img,ul.payment_methods li.payment_method_stripe_bancontact img{width:60px;height:42px;max-width:60px;max-height:42px}ul.payment_methods li.payment_method_stripe_wechat label img{max-width:82px;width:82px;max-height:23px}ul.payment_methods li.payment_method_stripe_alipay img{max-width:72px;width:72px;height:36px;max-height:36px}ul.payment_methods li.payment_method_stripe_grabpay img{max-width:95px;width:95px;max-height:28px}#wc-stripe-card-element{width:100%}li.banner_payment_method_stripe_payment_request .StripeElement{padding:0}.single-product .blockMsg{border:none!important;background-color:transparent!important}#wc-stripe-card{position:absolute!important;top:50%;left:8px;transform:translatey(-50%);width:23px;height:15px;padding:0;border:none}#wc-stripe-card.active{width:32px;height:20px}input[id=stripe-postal-code]:focus{outline:0;background:0 0;border:none;box-shadow:none}div.postalCode:focus{outline:0;border:none}li[class*=payment_method_stripe] .select2-container .select2-selection--single{height:42px;padding:0 5px}li[class*=payment_method_stripe] .select2-container--default .select2-selection--single .select2-selection__arrow{height:42px;top:1px;left:1px;transform:translateY(0)}.blockUI.blockMsg{font-size:20px;white-space:nowrap}#wc-stripe-payment-request-container.disabled{opacity:.45}.wc-stripe-paymentRequest-icons-container img{float:none}.select2-container .select2-selection--single .wc-stripe-select2-container.wc-stripe-ach:before{display:none}ul.wc_stripe_cart_payment_methods li.wc-stripe-payment-method button,ul.wc_stripe_checkout_banner_gateways li button,ul.wc_stripe_product_payment_methods li[class*=payment_method_stripe_] button{margin:0}ul.payment_methods li[class*=payment_method]{margin:0;padding:10px 0}ul.payment_methods li[class*=payment_method] input[name=payment_method]{margin:0 5px 0 10px;float:none}ul.payment_methods li[class*=payment_method]>input[name=payment_method]+label{padding-top:0;padding-left:0;padding-bottom:0}ul.payment_methods{list-style:none}ul.payment_methods li[class*=payment_method_stripe_] .wc-stripe_cc-new-method-container label:before{display:none}.wc-stripe_cc-container .wc-stripe-save-source label.checkbox{padding:0!important;margin:0}div[id*=wc_stripe_local_payment_stripe_].StripeElement{border:1px solid #eee;border-radius:4px}#payment .payment_methods li #wc_stripe_local_payment_stripe_wechat img,#wc_stripe_local_payment_stripe_wechat img{max-height:100%;float:none}.qrcode-message{margin:10px 0 0 0}#wc_stripe_local_payment_stripe_becs,#wc_stripe_local_payment_stripe_sepa{padding:10px 12px;box-shadow:0 1px 3px 0 #e6ebf1}.wc-stripe-local-desc.stripe_becs,.wc-stripe-local-desc.stripe_sepa{margin:10px 0}.wc-stripe-clear{clear:both;height:0;visibility:hidden}.wc-stripe-gateway-desc p{margin:0}#wc_stripe_local_payment_stripe_klarna,li[class*=payment_method_stripe_] div.wc-stripe-gateway-container.has_tokens{margin-top:10px}.wc-stripe-gateway-desc{margin-top:10px}#wc-stripe-card-element.StripeElement--webkit-autofill{background-color:transparent!important}#wc_stripe_local_payment_stripe_klarna .stripe-klarna-categories{list-style:none;margin:0;padding:10px}li.payment_method_stripe_alipay,li.payment_method_stripe_bancontact,li.payment_method_stripe_becs,li.payment_method_stripe_eps,li.payment_method_stripe_fpx,li.payment_method_stripe_giropay,li.payment_method_stripe_ideal,li.payment_method_stripe_klarna,li.payment_method_stripe_multibanco,li.payment_method_stripe_p24,li.payment_method_stripe_sepa,li.payment_method_stripe_sofort,li.payment_method_stripe_wechat{display:none}.widget_shopping_cart_content .wc-stripe-mini-cart-payment-methods{list-style:none;margin:0;padding:0}.widget_shopping_cart_content .wc-stripe-mini-cart-payment-methods li{margin:0}.widget_shopping_cart_content a.wc-stripe-applepay-mini-cart,.widget_shopping_cart_content a.wc-stripe-gpay-mini-cart,.widget_shopping_cart_content a.wc-stripe-payment-request-mini-cart{background:0 0;padding:0;border:none}a.wc-stripe-gpay-mini-cart .gpay-button,a.wc-stripe-gpay-mini-cart .gpay-card-info-container a.wc-stripe-applepay-mini-cart .apple-pay-button{width:100%;margin:0}.wc-stripe-payment-request-mini-cart.StripeElement{padding:0;background:0 0;border:none;width:100%}.wc-stripe-payment-request-mini-cart.StripeElement .__PrivateStripeElement{width:100%}.widget_shopping_cart_content .wc-stripe-overlay{display:none!important;position:absolute;background:rgba(255,255,255,.75);height:100%;width:100%;z-index:-1}.widget_shopping_cart_content .wc-stripe-overlay.active{display:block!important;z-index:9999}.wc-stripe-klarna-loader{display:flex;justify-content:center;position:relative;width:100%;height:30px;box-sizing:border-box;transform:scale(.65)}.wc-stripe-klarna-loader div{box-sizing:border-box;display:block;position:absolute;box-sizing:border-box;width:30px;height:30px;border:3px solid #000;border-radius:50%;animation:klarna-payments-loader 1.3s cubic-bezier(.5,0,.5,1) infinite;border-color:#000 transparent transparent transparent}.wc-stripe-klarna-loader div:nth-child(1){animation-delay:-.45s}.wc-stripe-klarna-loader div:nth-child(2){animation-delay:-.3s}.wc-stripe-klarna-loader div:nth-child(3){animation-delay:-.15s}@keyframes klarna-payments-loader{0%{transform:rotate(0)}100%{transform:rotate(-360deg)}}li.payment_method_stripe_alipay.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_applepay.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_bancontact.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_eps.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_giropay.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_googlepay.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_grabpay.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_multibanco.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_oxxo.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_p24.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_payment_request.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_sofort.wc-stripe-no-desc .payment_box.wc-stripe-no-methods{padding:0;margin:0}.wc-stripe-shortcode-cart-buttons .wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods.active li.wc-stripe-payment-method.or{display:none}label[for=payment_method_stripe_afterpay]>#wc-stripe-afterpay-msg{display:inline-block}#wc-stripe-afterpay-cart-container #wc-stripe-afterpay-cart-msg .__PrivateStripeElement p,#wc-stripe-afterpay-product-msg .__PrivateStripeElement p,.payment_method_stripe_afterpay #wc-stripe-afterpay-msg .__PrivateStripeElement p{margin-bottom:0!important;margin-top:0!important}#wc-stripe-afterpay-cart-msg .__PrivateStripeElement p .AfterpayMessage-logo,.payment_method_stripe_afterpay #wc-stripe-afterpay-msg .__PrivateStripeElement p .AfterpayMessage-logo{vertical-align:middle}.payment_method_stripe_afterpay #wc_stripe_local_payment_stripe_afterpay.ineligible{display:none}.payment_method_stripe_afterpay .wc-stripe-afterpay__offsite{text-align:center;max-width:320px;margin:0 auto;padding:10px 0}.payment_method_stripe_afterpay .wc-stripe-afterpay__offsite img{display:inline-block}.payment_method_stripe_afterpay .wc-stripe-afterpay__offsite p{font-size:14px;margin-top:10px}#wc-stripe-afterpay-cart-container #wc-stripe-afterpay-cart-msg{text-align:right}#wc-stripe-afterpay-cart-container #wc-stripe-afterpay-cart-msg .AfterpayMessage-logoSvg,.payment_method_stripe_afterpay #wc-stripe-afterpay-msg .AfterpayMessage-logoSvg{min-width:64px;max-width:90px}#wc-stripe-afterpay-cart-container td{border:none}#wc-stripe-afterpay-cart-container td::before{content:''}.AfterpayMessage-logoSvg{display:inline-block}#wc-stripe-afterpay-product-msg{font-size:14px}#wc-stripe-afterpay-product-msg .AfterpayMessage-logoSvg{max-width:80px;min-width:64px}.wc-stripe-afterpay-minicart-msg{font-size:.8em}.afterpay-ineligible,.payment_method_stripe_afterpay.afterpay-ineligible{display:none}.woocommerce-mini-cart__buttons .gpay-card-info-container{min-width:100%}.woocommerce-mini-cart__buttons .gpay-card-info-container{margin:0}.wc-stripe-boleto__description{margin-top:10px}.wc-stripe-boleto__description div{display:flex;align-items:center}.wc-stripe-boleto__description div label{margin:0}.wc-stripe-klarna__testmode{margin-top:10px}.wc-stripe-klarna__testmode label{display:inline-block}div.payment_method_stripe_cc>.woocommerce-NoticeGroup{margin-bottom:10px}div.payment_method_stripe_cc.custom-form__bootstrap>.woocommerce-NoticeGroup{margin-bottom:20px}
1
+ .wc-stripe-card-icons-container,.wc-stripe-paymentRequest-icons-container{float:left;display:inline-block}ul.payment_methods li[class*=payment_method]{margin:0;padding:0}li[class*=payment_method] input[type=radio]{margin:0 5px 0 10px}li[class*=payment_method] input[type=radio]+label:not(.wc-stripe-label-payment-type){margin:0}.woocommerce-checkout #payment ul.payment_methods li[class*=payment_method_stripe_]:nth-child(n+2),ul.payment_methods li[class*=payment_method_stripe_]:nth-child(n+2){margin:0}li.payment_method_stripe_cc .wc-stripe-card-icons-container img.wc-stripe-card-icon{max-width:43px;max-height:26px;width:43px;height:26px;float:none;display:inline}li.payment_method_stripe_payment_request .wc-stripe-paymentRequest-icons-container img:not(.gpay){width:25px;height:25px;max-width:25px;max-height:25px}ul.payment_methods label[for*=payment_method_stripe]:after{clear:left;content:"";display:block}li.payment_method_stripe_cc .wc-stripe-card-icons-container img.wc-stripe-card-icon:nth-child(2n+2){margin:0 2px}li.payment_method_stripe_cc .wc-stripe-card-icons-container img.wc-stripe-card-icon.open.visa{padding-top:2px}ul.payment_methods li[class*=payment_method_stripe_] label>img:first-of-type{float:left!important}.wc-stripe_cc-new-method-container{margin-bottom:1em}.wc-stripe_cc-container .StripeElement{box-sizing:border-box;height:40px;padding:10px 12px;border-radius:4px;background-color:#fff;-webkit-transition:box-shadow 150ms ease;transition:box-shadow 150ms ease}input.wc-stripe-klarna-category,input.wc-stripe-payment-type{display:none!important}body .wfacp_main_form.woocommerce .wc-stripe-save-source label.checkbox{padding:0!important}input[type=radio]+label.wc-stripe-label-payment-type,label.wc-stripe-label-klarna-category,label.wc-stripe-label-payment-type{margin-bottom:1em;display:block;padding:0!important;color:#000}.theme-flatsome div.wc-stripe-saved-methods-container{margin:0 0 1em 0}label.wc-stripe-label-klarna-category:before,label.wc-stripe-label-payment-type:before{content:"";display:inline-block;width:11px;height:11px;border:2px solid #fff;box-shadow:0 0 0 2px #000;background:#fff;margin-right:4px;margin-left:.5em;border-radius:100%;-webkit-transform:translateY(2px);-ms-transform:translateY(2px);transform:translateY(2px)}input.wc-stripe-klarna-category:checked+label.wc-stripe-label-klarna-category:before,input.wc-stripe-payment-type:checked+label.wc-stripe-label-payment-type:before{background:#000}label.wc-stripe-label-payment-type:after{content:none!important;display:none!important}.wc-stripe-saved-methods-container .select2-container .select2-selection--single .select2-selection__rendered{padding-right:8px}.select2-results__options li.wc-stripe-select2-container,.wc-stripe-saved-methods-container .select2-container .select2-selection--single .wc-stripe-select2-container{display:flex;align-items:center;height:42px;line-height:42px!important}.select2-container .select2-selection--single .wc-stripe-select2-container:before,.select2-results__options li.wc-stripe-select2-container:before{content:'';background-repeat:no-repeat;background-size:40px 24px;width:40px;height:42px;display:inline-block;margin-left:8px;background-position:center}.select2-container .select2-selection--single .wc-stripe-select2-container.visa:before,.select2-results__options li.wc-stripe-select2-container.visa:before{background-image:url(../img/cards/visa.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.mastercard:before,.select2-results__options li.wc-stripe-select2-container.mastercard:before{background-image:url(../img/cards/mastercard.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.americanexpress:before,.select2-results__options li.wc-stripe-select2-container.americanexpress:before{background-image:url(../img/cards/amex.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.amex:before,.select2-results__options li.wc-stripe-select2-container.amex:before{background-image:url(../img/cards/amex.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.discover:before,.select2-results__options li.wc-stripe-select2-container.discover:before{background-image:url(../img/cards/discover.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.mastercard:before,.select2-results__options li.wc-stripe-select2-container.mastercard:before{background-image:url(../img/cards/mastercard.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.dinersclub:before,.select2-results__options li.wc-stripe-select2-container.dinersclub:before{background-image:url(../img/cards/diners.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.diners:before,.select2-results__options li.wc-stripe-select2-container.diners:before{background-image:url(../img/cards/diners.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.jcb:before,.select2-results__options li.wc-stripe-select2-container.jcb:before{background-image:url(../img/cards/jcb.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.stripe_sepa:before,.select2-results__options li.wc-stripe-select2-container.stripe_sepa:before{background-image:url(../img/sepa.svg)}.select2-results__options li.wc-stripe-select2-container.wc-stripe-ach:before{display:none}#wc-stripe-card-element{margin-bottom:1em}.wc-stripe_cc-new-method-container .wc-stripe-save-source{display:flex;align-items:center;justify-content:flex-start}.wc-stripe_cc-container .wc-stripe-save-source .save-source-label{display:block;padding:0;margin:0 5px 0 0}.wc-stripe_cc-container .wc-stripe-save-source input[type=checkbox][name=stripe_cc_save_source_key]{opacity:0;position:absolute;width:20px;height:20px}.wc-stripe_cc-container .wc-stripe-save-source label.checkbox{position:relative}.wc-stripe_cc-container .save-source-checkbox{height:20px;width:20px;position:relative;background-color:#fff;display:block;border-radius:3px;border:1px solid #bababa}.wc-stripe_cc-container .save-source-checkbox:after{content:"";position:absolute;top:0;right:0}.wc-stripe_cc-container .wc-stripe-save-source input[type=checkbox]:checked+.save-source-checkbox:after{right:6px;top:2px;width:7px;height:12px;border:solid #2196f3;border-width:0 0 3px 3px;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}li.payment_method_stripe_applepay,li.payment_method_stripe_googlepay,li.payment_method_stripe_payment_request{display:none}#payment #place_order.wc-stripe-hide,#place_order.wc-stripe-hide,.woocommerce-checkout-review-order #payment #place_order.wc-stripe-hide{position:absolute!important;z-index:-1000!important;height:0!important;padding:0!important;opacity:0!important}.wc-stripe-product-checkout-container{display:none;width:100%}.wc-stripe-product-checkout-container.bottom{margin-top:1em}.wc-stripe-product-checkout-container.top{margin-bottom:1em}.wc-stripe-product-checkout-container.active{display:block}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods,.wc-stripe-product-checkout-container ul.wc_stripe_product_payment_methods{list-style:none;margin:0;padding:0}.wc-stripe-cart-checkout-container{margin:0;padding:0;clear:both}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods{margin-bottom:1.5em}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods li[class*=payment_method_stripe_],.wc-stripe-product-checkout-container ul.wc_stripe_product_payment_methods li[class*=payment_method_stripe_]{margin:0 0 1em 0;list-style:none}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods li[class*=payment_method_stripe_]:last-child,.wc-stripe-product-checkout-container ul.wc_stripe_product_payment_methods li[class*=payment_method_stripe_]:last-child{margin:0}.wc_stripe_cart_payment_methods .gpay-button,.wc_stripe_cart_payment_methods .gpay-card-info-container,.wc_stripe_product_payment_methods .gpay-button,.wc_stripe_product_payment_methods .gpay-card-info-container{width:100%!important;min-width:100%;margin:0}.wc_stripe_product_payment_methods .disabled{opacity:.45}.stripe_cart_gateway_active .checkout-button,.woocommerce-cart .stripe_cart_gateway_active .wc-proceed-to-checkout .checkout-button{margin-bottom:0}.wc-stripe-cart-or{margin:1em 0;text-align:center}li.wc-stripe-payment-method.or{display:none}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods.active li.wc-stripe-payment-method.or{display:block;margin:15px 0}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods.active li.wc-stripe-payment-method.or p{margin:0}li[class*=payment_method_stripe_].active~li.wc-stripe-payment-method.or{display:block;margin:0}li.payment_method_stripe_applepay label:first-of-type img{width:49px;max-height:32px}li.payment_method_stripe_googlepay label:first-of-type img{width:48px;max-height:35px}li.payment_method_stripe_googlepay label:first-of-type img[src*=googlepay_standard],li.payment_method_stripe_payment_request label:first-of-type img[src*=googlepay_standard]{width:60px;max-height:35px}li.payment_method_stripe_googlepay label:first-of-type img[src*=googlepay_round_outline],li.payment_method_stripe_payment_request label:first-of-type img[src*=googlepay_round_outline]{width:56px;max-height:30px}li.payment_method_stripe_ach label:first-of-type img{width:32px;height:32px;min-width:32px;min-height:32px}.gpay-button-container .gpay-button:hover,.wc-stripe-checkout-banner-gateway .gpay-button:hover{background-origin:content-box;background-position:center center;background-repeat:no-repeat;background-size:contain}.gpay-button:active{background-origin:content-box;background-position:center center;background-repeat:no-repeat;background-size:contain}.gpay-button:focus{background-origin:content-box;background-position:center center;background-repeat:no-repeat;background-size:contain}@supports (-webkit-appearance:-apple-pay-button){.apple-pay-button{display:block;-webkit-appearance:-apple-pay-button!important;width:100%;max-width:100%;min-width:200px;height:40px;max-height:40px}.apple-pay-button-black{-apple-pay-button-style:#000}.apple-pay-button-white{-apple-pay-button-style:#fff}.apple-pay-button-white-with-line{-apple-pay-button-style:white-outline}.woocommerce-checkout-payment .apple-pay-button{max-width:240px}body.single-product div.product form.cart .wc_stripe_product_payment_methods .apple-pay-button{max-width:100%}}.wc-stripe-banner-checkout{display:none;padding:0;position:relative;margin:1em 0}.wc-stripe-banner-checkout fieldset{padding:15px 25px 15px;border:1px solid #d1d1d1;margin-bottom:20px;border-radius:3px}.wc-stripe-banner-checkout fieldset legend{margin:0 auto;font-weight:500;padding:0 1rem}.wc-stripe-banner-checkout.active{display:block}.wc-stripe-banner-checkout span.banner-divider{display:flex;align-items:center;top:-13px;left:0;right:0;background:0 0;white-space:nowrap;font-size:16px}.wc-stripe-banner-checkout span.banner-divider:after,.wc-stripe-banner-checkout span.banner-divider:before{content:' ';height:1px;background:#d1d1d1;display:block;width:50%}.wc-stripe-banner-checkout span.banner-divider:before{margin-left:1rem}.wc-stripe-banner-checkout span.banner-divider:after{margin-right:1rem}.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways{list-style:none;margin:0;padding:0}.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways li.wc-stripe-checkout-banner-gateway{margin:0 auto;display:none;max-width:240px}.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways li.wc-stripe-checkout-banner-gateway.active:nth-child(n+2){margin:10px auto 0 auto}.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways li.wc-stripe-checkout-banner-gateway:first-child:not(.active)+li.wc-stripe-checkout-banner-gateway.active{margin:0 auto}.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways li.wc-stripe-checkout-banner-gateway .gpay-button,.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways li.wc-stripe-checkout-banner-gateway .gpay-card-info-container{margin:0}.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways .gpay-button,.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways .gpay-card-info-container{width:100%}.wc_stripe_cart_payment_methods .payment_method_stripe_payment_request .StripeElement,.wc_stripe_product_payment_methods .payment_method_stripe_payment_request .StripeElement{padding:0;width:100%}.woocommerce-checkout #wc-stripe-payment-request-container.StripeElement{width:240px;padding:0}.wc-stripe-checkout-banner-gateway #wc-stripe-payment-request-banner.StripeElement{width:100%}ul.payment_methods li.payment_method_stripe_p24 img{max-width:90px;width:90px;max-height:45px}ul.payment_methods li.payment_method_stripe_ideal img{max-width:38px;width:38px;max-height:35px}ul.payment_methods li.payment_method_stripe_fpx img{max-width:75px;width:75px;max-height:25px}ul.payment_methods li.payment_method_stripe_klarna img{max-width:72px;width:72px;max-height:20px}ul.payment_methods li.payment_method_stripe_klarna img[src*=klarna_pink]{width:56px;height:32px;max-height:32px}ul.payment_methods li.payment_method_stripe_giropay img{max-width:65px;width:65px;max-height:28px}ul.payment_methods li.payment_method_stripe_eps img{max-width:70px;width:70px;max-height:46px}ul.payment_methods li.payment_method_stripe_multibanco img{max-width:48px;width:48px;max-height:48px}ul.payment_methods li.payment_method_stripe_sepa img{max-width:67px;width:67px;max-height:18px}ul.payment_methods li.payment_method_stripe_sofort img{max-width:70px;width:70px;max-height:21px}label[for=payment_method_stripe_bancontact] img,ul.payment_methods li.payment_method_stripe_bancontact img{width:60px;height:42px;max-width:60px;max-height:42px}ul.payment_methods li.payment_method_stripe_wechat label img{max-width:82px;width:82px;max-height:23px}ul.payment_methods li.payment_method_stripe_alipay img{max-width:72px;width:72px;height:36px;max-height:36px}ul.payment_methods li.payment_method_stripe_grabpay img{max-width:95px;width:95px;max-height:28px}ul.payment_methods li.payment_method_stripe_oxxo img{max-width:52px;width:52px;max-height:24px}#wc-stripe-card-element{width:100%}li.banner_payment_method_stripe_payment_request .StripeElement{padding:0}.single-product .blockMsg{border:none!important;background-color:transparent!important}#wc-stripe-card{position:absolute!important;top:50%;left:8px;transform:translatey(-50%);width:23px;height:15px;padding:0;border:none}#wc-stripe-card.active{width:32px;height:20px}input[id=stripe-postal-code]:focus{outline:0;background:0 0;border:none;box-shadow:none}div.postalCode:focus{outline:0;border:none}li[class*=payment_method_stripe] .select2-container .select2-selection--single{height:42px;padding:0 5px}li[class*=payment_method_stripe] .select2-container--default .select2-selection--single .select2-selection__arrow{height:42px;top:1px;left:1px;transform:translateY(0)}.blockUI.blockMsg{font-size:20px;white-space:nowrap}#wc-stripe-payment-request-container.disabled{opacity:.45}.wc-stripe-paymentRequest-icons-container img{float:none}.select2-container .select2-selection--single .wc-stripe-select2-container.wc-stripe-ach:before{display:none}ul.wc_stripe_cart_payment_methods li.wc-stripe-payment-method button,ul.wc_stripe_checkout_banner_gateways li button,ul.wc_stripe_product_payment_methods li[class*=payment_method_stripe_] button{margin:0}ul.payment_methods li[class*=payment_method]{margin:0;padding:10px 0}ul.payment_methods li[class*=payment_method] input[name=payment_method]{margin:0 5px 0 10px;float:none}ul.payment_methods li[class*=payment_method]>input[name=payment_method]+label{padding-top:0;padding-left:0;padding-bottom:0}ul.payment_methods{list-style:none}ul.payment_methods li[class*=payment_method_stripe_] .wc-stripe_cc-new-method-container label:before{display:none}.wc-stripe_cc-container .wc-stripe-save-source label.checkbox{padding:0!important;margin:0}div[id*=wc_stripe_local_payment_stripe_].StripeElement{border:1px solid #eee;border-radius:4px}#payment .payment_methods li #wc_stripe_local_payment_stripe_wechat img,#wc_stripe_local_payment_stripe_wechat img{max-height:100%;float:none}.qrcode-message{margin:10px 0 0 0}#wc_stripe_local_payment_stripe_becs,#wc_stripe_local_payment_stripe_sepa{padding:10px 12px;box-shadow:0 1px 3px 0 #e6ebf1}.wc-stripe-local-desc.stripe_becs,.wc-stripe-local-desc.stripe_sepa{margin:10px 0}.wc-stripe-clear{clear:both;height:0;visibility:hidden}.wc-stripe-gateway-desc p{margin:0}#wc_stripe_local_payment_stripe_klarna,li[class*=payment_method_stripe_] div.wc-stripe-gateway-container.has_tokens{margin-top:10px}.wc-stripe-gateway-desc{margin-top:10px}#wc-stripe-card-element.StripeElement--webkit-autofill{background-color:transparent!important}#wc_stripe_local_payment_stripe_klarna .stripe-klarna-categories{list-style:none;margin:0;padding:10px}li.payment_method_stripe_alipay,li.payment_method_stripe_bancontact,li.payment_method_stripe_becs,li.payment_method_stripe_eps,li.payment_method_stripe_fpx,li.payment_method_stripe_giropay,li.payment_method_stripe_ideal,li.payment_method_stripe_klarna,li.payment_method_stripe_multibanco,li.payment_method_stripe_p24,li.payment_method_stripe_sepa,li.payment_method_stripe_sofort,li.payment_method_stripe_wechat{display:none}.widget_shopping_cart_content .wc-stripe-mini-cart-payment-methods{list-style:none;margin:0;padding:0}.widget_shopping_cart_content .wc-stripe-mini-cart-payment-methods li{margin:0}.widget_shopping_cart_content a.wc-stripe-applepay-mini-cart,.widget_shopping_cart_content a.wc-stripe-gpay-mini-cart,.widget_shopping_cart_content a.wc-stripe-payment-request-mini-cart{background:0 0;padding:0;border:none}a.wc-stripe-gpay-mini-cart .gpay-button,a.wc-stripe-gpay-mini-cart .gpay-card-info-container a.wc-stripe-applepay-mini-cart .apple-pay-button{width:100%;margin:0}.wc-stripe-payment-request-mini-cart.StripeElement{padding:0;background:0 0;border:none;width:100%}.wc-stripe-payment-request-mini-cart.StripeElement .__PrivateStripeElement{width:100%}.widget_shopping_cart_content .wc-stripe-overlay{display:none!important;position:absolute;background:rgba(255,255,255,.75);height:100%;width:100%;z-index:-1}.widget_shopping_cart_content .wc-stripe-overlay.active{display:block!important;z-index:9999}.wc-stripe-klarna-loader{display:flex;justify-content:center;position:relative;width:100%;height:30px;box-sizing:border-box;transform:scale(.65)}.wc-stripe-klarna-loader div{box-sizing:border-box;display:block;position:absolute;box-sizing:border-box;width:30px;height:30px;border:3px solid #000;border-radius:50%;animation:klarna-payments-loader 1.3s cubic-bezier(.5,0,.5,1) infinite;border-color:#000 transparent transparent transparent}.wc-stripe-klarna-loader div:nth-child(1){animation-delay:-.45s}.wc-stripe-klarna-loader div:nth-child(2){animation-delay:-.3s}.wc-stripe-klarna-loader div:nth-child(3){animation-delay:-.15s}@keyframes klarna-payments-loader{0%{transform:rotate(0)}100%{transform:rotate(-360deg)}}li.payment_method_stripe_alipay.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_applepay.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_bancontact.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_eps.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_giropay.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_googlepay.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_grabpay.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_multibanco.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_oxxo.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_p24.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_payment_request.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_sofort.wc-stripe-no-desc .payment_box.wc-stripe-no-methods{padding:0;margin:0}.wc-stripe-shortcode-cart-buttons .wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods.active li.wc-stripe-payment-method.or{display:none}label[for=payment_method_stripe_afterpay]>#wc-stripe-afterpay-msg{display:inline-block}#wc-stripe-afterpay-cart-container #wc-stripe-afterpay-cart-msg .__PrivateStripeElement p,#wc-stripe-afterpay-product-msg .__PrivateStripeElement p,.payment_method_stripe_afterpay #wc-stripe-afterpay-msg .__PrivateStripeElement p{margin-bottom:0!important;margin-top:0!important}#wc-stripe-afterpay-cart-msg .__PrivateStripeElement p .AfterpayMessage-logo,.payment_method_stripe_afterpay #wc-stripe-afterpay-msg .__PrivateStripeElement p .AfterpayMessage-logo{vertical-align:middle}.payment_method_stripe_afterpay #wc_stripe_local_payment_stripe_afterpay.ineligible{display:none}.payment_method_stripe_afterpay .wc-stripe-afterpay__offsite{text-align:center;max-width:320px;margin:0 auto;padding:10px 0}.payment_method_stripe_afterpay .wc-stripe-afterpay__offsite img{display:inline-block}.payment_method_stripe_afterpay .wc-stripe-afterpay__offsite p{font-size:14px;margin-top:10px}#wc-stripe-afterpay-cart-container #wc-stripe-afterpay-cart-msg{text-align:right}#wc-stripe-afterpay-cart-container #wc-stripe-afterpay-cart-msg .AfterpayMessage-logoSvg,.payment_method_stripe_afterpay #wc-stripe-afterpay-msg .AfterpayMessage-logoSvg{min-width:64px;max-width:90px}#wc-stripe-afterpay-cart-container td{border:none}#wc-stripe-afterpay-cart-container td::before{content:''}.AfterpayMessage-logoSvg{display:inline-block}#wc-stripe-afterpay-product-msg{font-size:14px}#wc-stripe-afterpay-product-msg .AfterpayMessage-logoSvg{max-width:80px;min-width:64px}.wc-stripe-afterpay-minicart-msg{font-size:.8em}.afterpay-ineligible,.payment_method_stripe_afterpay.afterpay-ineligible{display:none}.woocommerce-mini-cart__buttons .gpay-card-info-container{min-width:100%}.woocommerce-mini-cart__buttons .gpay-card-info-container{margin:0}.wc-stripe-boleto__description{margin-top:10px}.wc-stripe-boleto__description div{display:flex;align-items:center}.wc-stripe-boleto__description div label{margin:0}.wc-stripe-klarna__testmode{margin-top:10px}.wc-stripe-klarna__testmode label{display:inline-block}div.payment_method_stripe_cc>.woocommerce-NoticeGroup{margin-bottom:10px}div.payment_method_stripe_cc.custom-form__bootstrap>.woocommerce-NoticeGroup{margin-bottom:20px}
assets/css/stripe.min.css CHANGED
@@ -1 +1 @@
1
- .wc-stripe-card-icons-container,.wc-stripe-paymentRequest-icons-container{float:right;display:inline-block}ul.payment_methods li[class*=payment_method]{margin:0;padding:0}li[class*=payment_method] input[type=radio]{margin:0 10px 0 5px}li[class*=payment_method] input[type=radio]+label:not(.wc-stripe-label-payment-type){margin:0}.woocommerce-checkout #payment ul.payment_methods li[class*=payment_method_stripe_]:nth-child(n+2),ul.payment_methods li[class*=payment_method_stripe_]:nth-child(n+2){margin:0}li.payment_method_stripe_cc .wc-stripe-card-icons-container img.wc-stripe-card-icon{max-width:43px;max-height:26px;width:43px;height:26px;float:none;display:inline}li.payment_method_stripe_payment_request .wc-stripe-paymentRequest-icons-container img:not(.gpay){width:25px;height:25px;max-width:25px;max-height:25px}ul.payment_methods label[for*=payment_method_stripe]:after{clear:right;content:"";display:block}li.payment_method_stripe_cc .wc-stripe-card-icons-container img.wc-stripe-card-icon:nth-child(2n+2){margin:0 2px}li.payment_method_stripe_cc .wc-stripe-card-icons-container img.wc-stripe-card-icon.open.visa{padding-top:2px}ul.payment_methods li[class*=payment_method_stripe_] label>img:first-of-type{float:right!important}.wc-stripe_cc-new-method-container{margin-bottom:1em}.wc-stripe_cc-container .StripeElement{box-sizing:border-box;height:40px;padding:10px 12px;border-radius:4px;background-color:#fff;-webkit-transition:box-shadow 150ms ease;transition:box-shadow 150ms ease}input.wc-stripe-klarna-category,input.wc-stripe-payment-type{display:none!important}body .wfacp_main_form.woocommerce .wc-stripe-save-source label.checkbox{padding:0!important}input[type=radio]+label.wc-stripe-label-payment-type,label.wc-stripe-label-klarna-category,label.wc-stripe-label-payment-type{margin-bottom:1em;display:block;padding:0!important;color:#000}.theme-flatsome div.wc-stripe-saved-methods-container{margin:0 0 1em 0}label.wc-stripe-label-klarna-category:before,label.wc-stripe-label-payment-type:before{content:"";display:inline-block;width:11px;height:11px;border:2px solid #fff;box-shadow:0 0 0 2px #000;background:#fff;margin-left:4px;margin-right:.5em;border-radius:100%;-webkit-transform:translateY(2px);-ms-transform:translateY(2px);transform:translateY(2px)}input.wc-stripe-klarna-category:checked+label.wc-stripe-label-klarna-category:before,input.wc-stripe-payment-type:checked+label.wc-stripe-label-payment-type:before{background:#000}label.wc-stripe-label-payment-type:after{content:none!important;display:none!important}.wc-stripe-saved-methods-container .select2-container .select2-selection--single .select2-selection__rendered{padding-left:8px}.select2-results__options li.wc-stripe-select2-container,.wc-stripe-saved-methods-container .select2-container .select2-selection--single .wc-stripe-select2-container{display:flex;align-items:center;height:42px;line-height:42px!important}.select2-container .select2-selection--single .wc-stripe-select2-container:before,.select2-results__options li.wc-stripe-select2-container:before{content:'';background-repeat:no-repeat;background-size:40px 24px;width:40px;height:42px;display:inline-block;margin-right:8px;background-position:center}.select2-container .select2-selection--single .wc-stripe-select2-container.visa:before,.select2-results__options li.wc-stripe-select2-container.visa:before{background-image:url(../img/cards/visa.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.mastercard:before,.select2-results__options li.wc-stripe-select2-container.mastercard:before{background-image:url(../img/cards/mastercard.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.americanexpress:before,.select2-results__options li.wc-stripe-select2-container.americanexpress:before{background-image:url(../img/cards/amex.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.amex:before,.select2-results__options li.wc-stripe-select2-container.amex:before{background-image:url(../img/cards/amex.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.discover:before,.select2-results__options li.wc-stripe-select2-container.discover:before{background-image:url(../img/cards/discover.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.mastercard:before,.select2-results__options li.wc-stripe-select2-container.mastercard:before{background-image:url(../img/cards/mastercard.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.dinersclub:before,.select2-results__options li.wc-stripe-select2-container.dinersclub:before{background-image:url(../img/cards/diners.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.diners:before,.select2-results__options li.wc-stripe-select2-container.diners:before{background-image:url(../img/cards/diners.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.jcb:before,.select2-results__options li.wc-stripe-select2-container.jcb:before{background-image:url(../img/cards/jcb.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.stripe_sepa:before,.select2-results__options li.wc-stripe-select2-container.stripe_sepa:before{background-image:url(../img/sepa.svg)}.select2-results__options li.wc-stripe-select2-container.wc-stripe-ach:before{display:none}#wc-stripe-card-element{margin-bottom:1em}.wc-stripe_cc-new-method-container .wc-stripe-save-source{display:flex;align-items:center;justify-content:flex-start}.wc-stripe_cc-container .wc-stripe-save-source .save-source-label{display:block;padding:0;margin:0 0 0 5px}.wc-stripe_cc-container .wc-stripe-save-source input[type=checkbox]{opacity:0;position:absolute;width:20px;height:20px}.wc-stripe_cc-container .wc-stripe-save-source label.checkbox{position:relative}.wc-stripe_cc-container .save-source-checkbox{height:20px;width:20px;position:relative;background-color:#fff;display:block;border-radius:3px;border:1px solid #bababa}.wc-stripe_cc-container .save-source-checkbox:after{content:"";position:absolute;top:0;left:0}.wc-stripe_cc-container .wc-stripe-save-source input[type=checkbox]:checked+.save-source-checkbox:after{left:6px;top:2px;width:7px;height:12px;border:solid #2196f3;border-width:0 3px 3px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}li.payment_method_stripe_applepay,li.payment_method_stripe_googlepay,li.payment_method_stripe_payment_request{display:none}#payment #place_order.wc-stripe-hide,#place_order.wc-stripe-hide,.woocommerce-checkout-review-order #payment #place_order.wc-stripe-hide{position:absolute!important;z-index:-1000!important;height:0!important;padding:0!important;opacity:0!important}.wc-stripe-product-checkout-container{display:none;width:100%}.wc-stripe-product-checkout-container.bottom{margin-top:1em}.wc-stripe-product-checkout-container.top{margin-bottom:1em}.wc-stripe-product-checkout-container.active{display:block}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods,.wc-stripe-product-checkout-container ul.wc_stripe_product_payment_methods{list-style:none;margin:0;padding:0}.wc-stripe-cart-checkout-container{margin:0;padding:0;clear:both}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods{margin-bottom:1.5em}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods li[class*=payment_method_stripe_],.wc-stripe-product-checkout-container ul.wc_stripe_product_payment_methods li[class*=payment_method_stripe_]{margin:0 0 1em 0;list-style:none}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods li[class*=payment_method_stripe_]:last-child,.wc-stripe-product-checkout-container ul.wc_stripe_product_payment_methods li[class*=payment_method_stripe_]:last-child{margin:0}.wc_stripe_cart_payment_methods .gpay-button,.wc_stripe_cart_payment_methods .gpay-card-info-container,.wc_stripe_product_payment_methods .gpay-button,.wc_stripe_product_payment_methods .gpay-card-info-container{width:100%!important;margin:0}.wc_stripe_product_payment_methods .disabled{opacity:.45}.stripe_cart_gateway_active .checkout-button,.woocommerce-cart .stripe_cart_gateway_active .wc-proceed-to-checkout .checkout-button{margin-bottom:0}.wc-stripe-cart-or{margin:1em 0;text-align:center}li.wc-stripe-payment-method.or{display:none}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods.active li.wc-stripe-payment-method.or{display:block;margin:15px 0}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods.active li.wc-stripe-payment-method.or p{margin:0}li[class*=payment_method_stripe_].active~li.wc-stripe-payment-method.or{display:block;margin:0}li.payment_method_stripe_applepay label:first-of-type img{width:49px;max-height:32px}li.payment_method_stripe_googlepay label:first-of-type img{width:48px;max-height:35px}li.payment_method_stripe_googlepay label:first-of-type img[src*=googlepay_standard],li.payment_method_stripe_payment_request label:first-of-type img[src*=googlepay_standard]{width:60px;max-height:35px}li.payment_method_stripe_googlepay label:first-of-type img[src*=googlepay_round_outline],li.payment_method_stripe_payment_request label:first-of-type img[src*=googlepay_round_outline]{width:56px;max-height:30px}li.payment_method_stripe_ach label:first-of-type img{width:32px;height:32px;min-width:32px;min-height:32px}.gpay-button-container .gpay-button:hover,.wc-stripe-checkout-banner-gateway .gpay-button:hover{background-origin:content-box;background-position:center center;background-repeat:no-repeat;background-size:contain}.gpay-button:active{background-origin:content-box;background-position:center center;background-repeat:no-repeat;background-size:contain}.gpay-button:focus{background-origin:content-box;background-position:center center;background-repeat:no-repeat;background-size:contain}@supports (-webkit-appearance:-apple-pay-button){.apple-pay-button{display:block;-webkit-appearance:-apple-pay-button!important;width:100%;max-width:100%;min-width:200px;height:40px;max-height:40px}.apple-pay-button-black{-apple-pay-button-style:#000}.apple-pay-button-white{-apple-pay-button-style:#fff}.apple-pay-button-white-with-line{-apple-pay-button-style:white-outline}.applepay-top-container .apple-pay-button{max-width:240px}.woocommerce-checkout-payment .apple-pay-button{max-width:240px}body.single-product div.product form.cart .wc_stripe_product_payment_methods .apple-pay-button{max-width:100%}}.wc-stripe-banner-checkout{display:none;padding:20px 15px 0 15px;border:1px solid #d1d1d1;border-width:0 0 1px;position:relative;margin:1em 0}.wc-stripe-banner-checkout.active{display:block}.wc-stripe-banner-checkout span.banner-title{position:absolute;display:flex;align-items:center;top:-13px;right:0;left:0;background:0 0;white-space:nowrap;font-size:16px}.wc-stripe-banner-checkout span.banner-title:after,.wc-stripe-banner-checkout span.banner-title:before{content:' ';height:1px;background:#d1d1d1;display:block;width:50%}.wc-stripe-banner-checkout span.banner-title:before{margin-right:8px}.wc-stripe-banner-checkout span.banner-title:after{margin-left:8px}.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways{list-style:none;margin:0;padding:0}.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways li.wc-stripe-checkout-banner-gateway{margin:0 0 20px 0;display:none}.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways li.wc-stripe-checkout-banner-gateway .gpay-button,.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways li.wc-stripe-checkout-banner-gateway .gpay-card-info-container{margin:0}.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways .gpay-button,.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways .gpay-card-info-container{width:100%}.wc_stripe_cart_payment_methods .payment_method_stripe_payment_request .StripeElement,.wc_stripe_product_payment_methods .payment_method_stripe_payment_request .StripeElement{padding:0;width:100%}.woocommerce-checkout #wc-stripe-payment-request-container.StripeElement{width:240px;padding:0}.wc-stripe-checkout-banner-gateway #wc-stripe-payment-request-banner.StripeElement{width:100%}ul.payment_methods li.payment_method_stripe_p24 img{max-width:90px;width:90px;max-height:45px}ul.payment_methods li.payment_method_stripe_ideal img{max-width:38px;width:38px;max-height:35px}ul.payment_methods li.payment_method_stripe_fpx img{max-width:75px;width:75px;max-height:25px}ul.payment_methods li.payment_method_stripe_klarna img{max-width:72px;width:72px;max-height:20px}ul.payment_methods li.payment_method_stripe_klarna img[src*=klarna_pink]{width:56px;height:32px;max-height:32px}ul.payment_methods li.payment_method_stripe_giropay img{max-width:65px;width:65px;max-height:28px}ul.payment_methods li.payment_method_stripe_eps img{max-width:70px;width:70px;max-height:46px}ul.payment_methods li.payment_method_stripe_multibanco img{max-width:48px;width:48px;max-height:48px}ul.payment_methods li.payment_method_stripe_sepa img{max-width:67px;width:67px;max-height:18px}ul.payment_methods li.payment_method_stripe_sofort img{max-width:70px;width:70px;max-height:21px}label[for=payment_method_stripe_bancontact] img,ul.payment_methods li.payment_method_stripe_bancontact img{width:60px;height:42px;max-width:60px;max-height:42px}ul.payment_methods li.payment_method_stripe_wechat label img{max-width:82px;width:82px;max-height:23px}ul.payment_methods li.payment_method_stripe_alipay img{max-width:72px;width:72px;height:36px;max-height:36px}ul.payment_methods li.payment_method_stripe_grabpay img{max-width:95px;width:95px;max-height:28px}#wc-stripe-card-element{width:100%}li.banner_payment_method_stripe_payment_request .StripeElement{padding:0}.single-product .blockMsg{border:none!important;background-color:transparent!important}#wc-stripe-card{position:absolute!important;top:50%;right:8px;transform:translatey(-50%);width:23px;height:15px;padding:0;border:none}#wc-stripe-card.active{width:32px;height:20px}input[id=stripe-postal-code]:focus{outline:0;background:0 0;border:none;box-shadow:none}div.postalCode:focus{outline:0;border:none}li[class*=payment_method_stripe] .select2-container .select2-selection--single{height:42px;padding:0 5px}li[class*=payment_method_stripe] .select2-container--default .select2-selection--single .select2-selection__arrow{height:42px;top:1px;right:1px;transform:translateY(0)}.blockUI.blockMsg{font-size:20px;white-space:nowrap}#wc-stripe-payment-request-container.disabled{opacity:.45}.wc-stripe-paymentRequest-icons-container img{float:none}.select2-container .select2-selection--single .wc-stripe-select2-container.wc-stripe-ach:before{display:none}ul.wc_stripe_cart_payment_methods li.wc-stripe-payment-method button,ul.wc_stripe_checkout_banner_gateways li button,ul.wc_stripe_product_payment_methods li[class*=payment_method_stripe_] button{margin:0}ul.payment_methods li[class*=payment_method]{margin:0;padding:10px 0}ul.payment_methods li[class*=payment_method] input[name=payment_method]{margin:0 10px 0 5px;float:none}ul.payment_methods li[class*=payment_method]>input[name=payment_method]+label{padding-top:0;padding-right:0;padding-bottom:0}ul.payment_methods{list-style:none}ul.payment_methods li[class*=payment_method_stripe_] .wc-stripe_cc-new-method-container label:before{display:none}.wc-stripe_cc-container .wc-stripe-save-source label.checkbox{padding:0!important;margin:0}div[id*=wc_stripe_local_payment_stripe_].StripeElement{border:1px solid #eee;border-radius:4px}#payment .payment_methods li #wc_stripe_local_payment_stripe_wechat img,#wc_stripe_local_payment_stripe_wechat img{max-height:100%;float:none}.qrcode-message{margin:10px 0 0 0}#wc_stripe_local_payment_stripe_becs,#wc_stripe_local_payment_stripe_sepa{padding:10px 12px;box-shadow:0 1px 3px 0 #e6ebf1}.wc-stripe-local-desc.stripe_becs,.wc-stripe-local-desc.stripe_sepa{margin:10px 0}.wc-stripe-clear{clear:both;height:0;visibility:hidden}.wc-stripe-gateway-desc p{margin:0}#wc_stripe_local_payment_stripe_klarna,li[class*=payment_method_stripe_] div.wc-stripe-gateway-container.has_tokens{margin-top:10px}.wc-stripe-gateway-desc{margin-top:10px}#wc-stripe-card-element.StripeElement--webkit-autofill{background-color:transparent!important}#wc_stripe_local_payment_stripe_klarna .stripe-klarna-categories{list-style:none;margin:0;padding:10px}li.payment_method_stripe_alipay,li.payment_method_stripe_bancontact,li.payment_method_stripe_becs,li.payment_method_stripe_eps,li.payment_method_stripe_fpx,li.payment_method_stripe_giropay,li.payment_method_stripe_ideal,li.payment_method_stripe_klarna,li.payment_method_stripe_multibanco,li.payment_method_stripe_p24,li.payment_method_stripe_sepa,li.payment_method_stripe_sofort,li.payment_method_stripe_wechat{display:none}.widget_shopping_cart_content .wc-stripe-mini-cart-payment-methods{list-style:none;margin:0;padding:0}.widget_shopping_cart_content .wc-stripe-mini-cart-payment-methods li{margin:0}.widget_shopping_cart_content a.wc-stripe-applepay-mini-cart,.widget_shopping_cart_content a.wc-stripe-gpay-mini-cart,.widget_shopping_cart_content a.wc-stripe-payment-request-mini-cart{background:0 0;padding:0;border:none}a.wc-stripe-gpay-mini-cart .gpay-button,a.wc-stripe-gpay-mini-cart .gpay-card-info-container a.wc-stripe-applepay-mini-cart .apple-pay-button{width:100%;margin:0}.wc-stripe-payment-request-mini-cart.StripeElement{padding:0;background:0 0;border:none;width:100%}.wc-stripe-payment-request-mini-cart.StripeElement .__PrivateStripeElement{width:100%}.widget_shopping_cart_content .wc-stripe-overlay{display:none!important;position:absolute;background:rgba(255,255,255,.75);height:100%;width:100%;z-index:-1}.widget_shopping_cart_content .wc-stripe-overlay.active{display:block!important;z-index:9999}.wc-stripe-klarna-loader{display:flex;justify-content:center;position:relative;width:100%;height:30px;box-sizing:border-box;transform:scale(.65)}.wc-stripe-klarna-loader div{box-sizing:border-box;display:block;position:absolute;box-sizing:border-box;width:30px;height:30px;border:3px solid #000;border-radius:50%;animation:klarna-payments-loader 1.3s cubic-bezier(.5,0,.5,1) infinite;border-color:#000 transparent transparent transparent}.wc-stripe-klarna-loader div:nth-child(1){animation-delay:-.45s}.wc-stripe-klarna-loader div:nth-child(2){animation-delay:-.3s}.wc-stripe-klarna-loader div:nth-child(3){animation-delay:-.15s}@keyframes klarna-payments-loader{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}li.payment_method_stripe_alipay.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_applepay.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_bancontact.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_eps.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_giropay.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_googlepay.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_grabpay.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_multibanco.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_oxxo.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_p24.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_payment_request.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_sofort.wc-stripe-no-desc .payment_box.wc-stripe-no-methods{padding:0;margin:0}.wc-stripe-shortcode-cart-buttons .wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods.active li.wc-stripe-payment-method.or{display:none}label[for=payment_method_stripe_afterpay]>#wc-stripe-afterpay-msg{display:inline-block}#wc-stripe-afterpay-cart-container #wc-stripe-afterpay-cart-msg .__PrivateStripeElement p,#wc-stripe-afterpay-product-msg .__PrivateStripeElement p,.payment_method_stripe_afterpay #wc-stripe-afterpay-msg .__PrivateStripeElement p{margin-bottom:0!important;margin-top:0!important}#wc-stripe-afterpay-cart-msg .__PrivateStripeElement p .AfterpayMessage-logo,.payment_method_stripe_afterpay #wc-stripe-afterpay-msg .__PrivateStripeElement p .AfterpayMessage-logo{vertical-align:middle}.payment_method_stripe_afterpay #wc_stripe_local_payment_stripe_afterpay.ineligible{display:none}.payment_method_stripe_afterpay .wc-stripe-afterpay__offsite{text-align:center;max-width:320px;margin:0 auto;padding:10px 0}.payment_method_stripe_afterpay .wc-stripe-afterpay__offsite img{display:inline-block}.payment_method_stripe_afterpay .wc-stripe-afterpay__offsite p{font-size:14px;margin-top:10px}#wc-stripe-afterpay-cart-container #wc-stripe-afterpay-cart-msg{text-align:left}#wc-stripe-afterpay-cart-container #wc-stripe-afterpay-cart-msg .AfterpayMessage-logoSvg,.payment_method_stripe_afterpay #wc-stripe-afterpay-msg .AfterpayMessage-logoSvg{min-width:64px;max-width:90px}#wc-stripe-afterpay-cart-container td{border:none}#wc-stripe-afterpay-cart-container td::before{content:''}.AfterpayMessage-logoSvg{display:inline-block}#wc-stripe-afterpay-product-msg{font-size:14px}#wc-stripe-afterpay-product-msg .AfterpayMessage-logoSvg{max-width:80px;min-width:64px}.wc-stripe-afterpay-minicart-msg{font-size:.8em}.afterpay-ineligible,.payment_method_stripe_afterpay.afterpay-ineligible{display:none}.woocommerce-mini-cart__buttons .gpay-card-info-container{min-width:100%}.woocommerce-mini-cart__buttons .gpay-card-info-container{margin:0}.wc-stripe-boleto__description{margin-top:10px}.wc-stripe-boleto__description div{display:flex;align-items:center}.wc-stripe-boleto__description div label{margin:0}.wc-stripe-klarna__testmode{margin-top:10px}.wc-stripe-klarna__testmode label{display:inline-block}div.payment_method_stripe_cc>.woocommerce-NoticeGroup{margin-bottom:10px}div.payment_method_stripe_cc.custom-form__bootstrap>.woocommerce-NoticeGroup{margin-bottom:20px}
1
+ .wc-stripe-card-icons-container,.wc-stripe-paymentRequest-icons-container{float:right;display:inline-block}ul.payment_methods li[class*=payment_method]{margin:0;padding:0}li[class*=payment_method] input[type=radio]{margin:0 10px 0 5px}li[class*=payment_method] input[type=radio]+label:not(.wc-stripe-label-payment-type){margin:0}.woocommerce-checkout #payment ul.payment_methods li[class*=payment_method_stripe_]:nth-child(n+2),ul.payment_methods li[class*=payment_method_stripe_]:nth-child(n+2){margin:0}li.payment_method_stripe_cc .wc-stripe-card-icons-container img.wc-stripe-card-icon{max-width:43px;max-height:26px;width:43px;height:26px;float:none;display:inline}li.payment_method_stripe_payment_request .wc-stripe-paymentRequest-icons-container img:not(.gpay){width:25px;height:25px;max-width:25px;max-height:25px}ul.payment_methods label[for*=payment_method_stripe]:after{clear:right;content:"";display:block}li.payment_method_stripe_cc .wc-stripe-card-icons-container img.wc-stripe-card-icon:nth-child(2n+2){margin:0 2px}li.payment_method_stripe_cc .wc-stripe-card-icons-container img.wc-stripe-card-icon.open.visa{padding-top:2px}ul.payment_methods li[class*=payment_method_stripe_] label>img:first-of-type{float:right!important}.wc-stripe_cc-new-method-container{margin-bottom:1em}.wc-stripe_cc-container .StripeElement{box-sizing:border-box;height:40px;padding:10px 12px;border-radius:4px;background-color:#fff;-webkit-transition:box-shadow 150ms ease;transition:box-shadow 150ms ease}input.wc-stripe-klarna-category,input.wc-stripe-payment-type{display:none!important}body .wfacp_main_form.woocommerce .wc-stripe-save-source label.checkbox{padding:0!important}input[type=radio]+label.wc-stripe-label-payment-type,label.wc-stripe-label-klarna-category,label.wc-stripe-label-payment-type{margin-bottom:1em;display:block;padding:0!important;color:#000}.theme-flatsome div.wc-stripe-saved-methods-container{margin:0 0 1em 0}label.wc-stripe-label-klarna-category:before,label.wc-stripe-label-payment-type:before{content:"";display:inline-block;width:11px;height:11px;border:2px solid #fff;box-shadow:0 0 0 2px #000;background:#fff;margin-left:4px;margin-right:.5em;border-radius:100%;-webkit-transform:translateY(2px);-ms-transform:translateY(2px);transform:translateY(2px)}input.wc-stripe-klarna-category:checked+label.wc-stripe-label-klarna-category:before,input.wc-stripe-payment-type:checked+label.wc-stripe-label-payment-type:before{background:#000}label.wc-stripe-label-payment-type:after{content:none!important;display:none!important}.wc-stripe-saved-methods-container .select2-container .select2-selection--single .select2-selection__rendered{padding-left:8px}.select2-results__options li.wc-stripe-select2-container,.wc-stripe-saved-methods-container .select2-container .select2-selection--single .wc-stripe-select2-container{display:flex;align-items:center;height:42px;line-height:42px!important}.select2-container .select2-selection--single .wc-stripe-select2-container:before,.select2-results__options li.wc-stripe-select2-container:before{content:'';background-repeat:no-repeat;background-size:40px 24px;width:40px;height:42px;display:inline-block;margin-right:8px;background-position:center}.select2-container .select2-selection--single .wc-stripe-select2-container.visa:before,.select2-results__options li.wc-stripe-select2-container.visa:before{background-image:url(../img/cards/visa.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.mastercard:before,.select2-results__options li.wc-stripe-select2-container.mastercard:before{background-image:url(../img/cards/mastercard.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.americanexpress:before,.select2-results__options li.wc-stripe-select2-container.americanexpress:before{background-image:url(../img/cards/amex.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.amex:before,.select2-results__options li.wc-stripe-select2-container.amex:before{background-image:url(../img/cards/amex.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.discover:before,.select2-results__options li.wc-stripe-select2-container.discover:before{background-image:url(../img/cards/discover.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.mastercard:before,.select2-results__options li.wc-stripe-select2-container.mastercard:before{background-image:url(../img/cards/mastercard.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.dinersclub:before,.select2-results__options li.wc-stripe-select2-container.dinersclub:before{background-image:url(../img/cards/diners.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.diners:before,.select2-results__options li.wc-stripe-select2-container.diners:before{background-image:url(../img/cards/diners.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.jcb:before,.select2-results__options li.wc-stripe-select2-container.jcb:before{background-image:url(../img/cards/jcb.svg)}.select2-container .select2-selection--single .wc-stripe-select2-container.stripe_sepa:before,.select2-results__options li.wc-stripe-select2-container.stripe_sepa:before{background-image:url(../img/sepa.svg)}.select2-results__options li.wc-stripe-select2-container.wc-stripe-ach:before{display:none}#wc-stripe-card-element{margin-bottom:1em}.wc-stripe_cc-new-method-container .wc-stripe-save-source{display:flex;align-items:center;justify-content:flex-start}.wc-stripe_cc-container .wc-stripe-save-source .save-source-label{display:block;padding:0;margin:0 0 0 5px}.wc-stripe_cc-container .wc-stripe-save-source input[type=checkbox][name=stripe_cc_save_source_key]{opacity:0;position:absolute;width:20px;height:20px}.wc-stripe_cc-container .wc-stripe-save-source label.checkbox{position:relative}.wc-stripe_cc-container .save-source-checkbox{height:20px;width:20px;position:relative;background-color:#fff;display:block;border-radius:3px;border:1px solid #bababa}.wc-stripe_cc-container .save-source-checkbox:after{content:"";position:absolute;top:0;left:0}.wc-stripe_cc-container .wc-stripe-save-source input[type=checkbox]:checked+.save-source-checkbox:after{left:6px;top:2px;width:7px;height:12px;border:solid #2196f3;border-width:0 3px 3px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}li.payment_method_stripe_applepay,li.payment_method_stripe_googlepay,li.payment_method_stripe_payment_request{display:none}#payment #place_order.wc-stripe-hide,#place_order.wc-stripe-hide,.woocommerce-checkout-review-order #payment #place_order.wc-stripe-hide{position:absolute!important;z-index:-1000!important;height:0!important;padding:0!important;opacity:0!important}.wc-stripe-product-checkout-container{display:none;width:100%}.wc-stripe-product-checkout-container.bottom{margin-top:1em}.wc-stripe-product-checkout-container.top{margin-bottom:1em}.wc-stripe-product-checkout-container.active{display:block}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods,.wc-stripe-product-checkout-container ul.wc_stripe_product_payment_methods{list-style:none;margin:0;padding:0}.wc-stripe-cart-checkout-container{margin:0;padding:0;clear:both}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods{margin-bottom:1.5em}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods li[class*=payment_method_stripe_],.wc-stripe-product-checkout-container ul.wc_stripe_product_payment_methods li[class*=payment_method_stripe_]{margin:0 0 1em 0;list-style:none}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods li[class*=payment_method_stripe_]:last-child,.wc-stripe-product-checkout-container ul.wc_stripe_product_payment_methods li[class*=payment_method_stripe_]:last-child{margin:0}.wc_stripe_cart_payment_methods .gpay-button,.wc_stripe_cart_payment_methods .gpay-card-info-container,.wc_stripe_product_payment_methods .gpay-button,.wc_stripe_product_payment_methods .gpay-card-info-container{width:100%!important;min-width:100%;margin:0}.wc_stripe_product_payment_methods .disabled{opacity:.45}.stripe_cart_gateway_active .checkout-button,.woocommerce-cart .stripe_cart_gateway_active .wc-proceed-to-checkout .checkout-button{margin-bottom:0}.wc-stripe-cart-or{margin:1em 0;text-align:center}li.wc-stripe-payment-method.or{display:none}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods.active li.wc-stripe-payment-method.or{display:block;margin:15px 0}.wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods.active li.wc-stripe-payment-method.or p{margin:0}li[class*=payment_method_stripe_].active~li.wc-stripe-payment-method.or{display:block;margin:0}li.payment_method_stripe_applepay label:first-of-type img{width:49px;max-height:32px}li.payment_method_stripe_googlepay label:first-of-type img{width:48px;max-height:35px}li.payment_method_stripe_googlepay label:first-of-type img[src*=googlepay_standard],li.payment_method_stripe_payment_request label:first-of-type img[src*=googlepay_standard]{width:60px;max-height:35px}li.payment_method_stripe_googlepay label:first-of-type img[src*=googlepay_round_outline],li.payment_method_stripe_payment_request label:first-of-type img[src*=googlepay_round_outline]{width:56px;max-height:30px}li.payment_method_stripe_ach label:first-of-type img{width:32px;height:32px;min-width:32px;min-height:32px}.gpay-button-container .gpay-button:hover,.wc-stripe-checkout-banner-gateway .gpay-button:hover{background-origin:content-box;background-position:center center;background-repeat:no-repeat;background-size:contain}.gpay-button:active{background-origin:content-box;background-position:center center;background-repeat:no-repeat;background-size:contain}.gpay-button:focus{background-origin:content-box;background-position:center center;background-repeat:no-repeat;background-size:contain}@supports (-webkit-appearance:-apple-pay-button){.apple-pay-button{display:block;-webkit-appearance:-apple-pay-button!important;width:100%;max-width:100%;min-width:200px;height:40px;max-height:40px}.apple-pay-button-black{-apple-pay-button-style:#000}.apple-pay-button-white{-apple-pay-button-style:#fff}.apple-pay-button-white-with-line{-apple-pay-button-style:white-outline}.woocommerce-checkout-payment .apple-pay-button{max-width:240px}body.single-product div.product form.cart .wc_stripe_product_payment_methods .apple-pay-button{max-width:100%}}.wc-stripe-banner-checkout{display:none;padding:0;position:relative;margin:1em 0}.wc-stripe-banner-checkout fieldset{padding:15px 25px 15px;border:1px solid #d1d1d1;margin-bottom:20px;border-radius:3px}.wc-stripe-banner-checkout fieldset legend{margin:0 auto;font-weight:500;padding:0 1rem}.wc-stripe-banner-checkout.active{display:block}.wc-stripe-banner-checkout span.banner-divider{display:flex;align-items:center;top:-13px;right:0;left:0;background:0 0;white-space:nowrap;font-size:16px}.wc-stripe-banner-checkout span.banner-divider:after,.wc-stripe-banner-checkout span.banner-divider:before{content:' ';height:1px;background:#d1d1d1;display:block;width:50%}.wc-stripe-banner-checkout span.banner-divider:before{margin-right:1rem}.wc-stripe-banner-checkout span.banner-divider:after{margin-left:1rem}.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways{list-style:none;margin:0;padding:0}.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways li.wc-stripe-checkout-banner-gateway{margin:0 auto;display:none;max-width:240px}.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways li.wc-stripe-checkout-banner-gateway.active:nth-child(n+2){margin:10px auto 0 auto}.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways li.wc-stripe-checkout-banner-gateway:first-child:not(.active)+li.wc-stripe-checkout-banner-gateway.active{margin:0 auto}.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways li.wc-stripe-checkout-banner-gateway .gpay-button,.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways li.wc-stripe-checkout-banner-gateway .gpay-card-info-container{margin:0}.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways .gpay-button,.wc-stripe-banner-checkout ul.wc_stripe_checkout_banner_gateways .gpay-card-info-container{width:100%}.wc_stripe_cart_payment_methods .payment_method_stripe_payment_request .StripeElement,.wc_stripe_product_payment_methods .payment_method_stripe_payment_request .StripeElement{padding:0;width:100%}.woocommerce-checkout #wc-stripe-payment-request-container.StripeElement{width:240px;padding:0}.wc-stripe-checkout-banner-gateway #wc-stripe-payment-request-banner.StripeElement{width:100%}ul.payment_methods li.payment_method_stripe_p24 img{max-width:90px;width:90px;max-height:45px}ul.payment_methods li.payment_method_stripe_ideal img{max-width:38px;width:38px;max-height:35px}ul.payment_methods li.payment_method_stripe_fpx img{max-width:75px;width:75px;max-height:25px}ul.payment_methods li.payment_method_stripe_klarna img{max-width:72px;width:72px;max-height:20px}ul.payment_methods li.payment_method_stripe_klarna img[src*=klarna_pink]{width:56px;height:32px;max-height:32px}ul.payment_methods li.payment_method_stripe_giropay img{max-width:65px;width:65px;max-height:28px}ul.payment_methods li.payment_method_stripe_eps img{max-width:70px;width:70px;max-height:46px}ul.payment_methods li.payment_method_stripe_multibanco img{max-width:48px;width:48px;max-height:48px}ul.payment_methods li.payment_method_stripe_sepa img{max-width:67px;width:67px;max-height:18px}ul.payment_methods li.payment_method_stripe_sofort img{max-width:70px;width:70px;max-height:21px}label[for=payment_method_stripe_bancontact] img,ul.payment_methods li.payment_method_stripe_bancontact img{width:60px;height:42px;max-width:60px;max-height:42px}ul.payment_methods li.payment_method_stripe_wechat label img{max-width:82px;width:82px;max-height:23px}ul.payment_methods li.payment_method_stripe_alipay img{max-width:72px;width:72px;height:36px;max-height:36px}ul.payment_methods li.payment_method_stripe_grabpay img{max-width:95px;width:95px;max-height:28px}ul.payment_methods li.payment_method_stripe_oxxo img{max-width:52px;width:52px;max-height:24px}#wc-stripe-card-element{width:100%}li.banner_payment_method_stripe_payment_request .StripeElement{padding:0}.single-product .blockMsg{border:none!important;background-color:transparent!important}#wc-stripe-card{position:absolute!important;top:50%;right:8px;transform:translatey(-50%);width:23px;height:15px;padding:0;border:none}#wc-stripe-card.active{width:32px;height:20px}input[id=stripe-postal-code]:focus{outline:0;background:0 0;border:none;box-shadow:none}div.postalCode:focus{outline:0;border:none}li[class*=payment_method_stripe] .select2-container .select2-selection--single{height:42px;padding:0 5px}li[class*=payment_method_stripe] .select2-container--default .select2-selection--single .select2-selection__arrow{height:42px;top:1px;right:1px;transform:translateY(0)}.blockUI.blockMsg{font-size:20px;white-space:nowrap}#wc-stripe-payment-request-container.disabled{opacity:.45}.wc-stripe-paymentRequest-icons-container img{float:none}.select2-container .select2-selection--single .wc-stripe-select2-container.wc-stripe-ach:before{display:none}ul.wc_stripe_cart_payment_methods li.wc-stripe-payment-method button,ul.wc_stripe_checkout_banner_gateways li button,ul.wc_stripe_product_payment_methods li[class*=payment_method_stripe_] button{margin:0}ul.payment_methods li[class*=payment_method]{margin:0;padding:10px 0}ul.payment_methods li[class*=payment_method] input[name=payment_method]{margin:0 10px 0 5px;float:none}ul.payment_methods li[class*=payment_method]>input[name=payment_method]+label{padding-top:0;padding-right:0;padding-bottom:0}ul.payment_methods{list-style:none}ul.payment_methods li[class*=payment_method_stripe_] .wc-stripe_cc-new-method-container label:before{display:none}.wc-stripe_cc-container .wc-stripe-save-source label.checkbox{padding:0!important;margin:0}div[id*=wc_stripe_local_payment_stripe_].StripeElement{border:1px solid #eee;border-radius:4px}#payment .payment_methods li #wc_stripe_local_payment_stripe_wechat img,#wc_stripe_local_payment_stripe_wechat img{max-height:100%;float:none}.qrcode-message{margin:10px 0 0 0}#wc_stripe_local_payment_stripe_becs,#wc_stripe_local_payment_stripe_sepa{padding:10px 12px;box-shadow:0 1px 3px 0 #e6ebf1}.wc-stripe-local-desc.stripe_becs,.wc-stripe-local-desc.stripe_sepa{margin:10px 0}.wc-stripe-clear{clear:both;height:0;visibility:hidden}.wc-stripe-gateway-desc p{margin:0}#wc_stripe_local_payment_stripe_klarna,li[class*=payment_method_stripe_] div.wc-stripe-gateway-container.has_tokens{margin-top:10px}.wc-stripe-gateway-desc{margin-top:10px}#wc-stripe-card-element.StripeElement--webkit-autofill{background-color:transparent!important}#wc_stripe_local_payment_stripe_klarna .stripe-klarna-categories{list-style:none;margin:0;padding:10px}li.payment_method_stripe_alipay,li.payment_method_stripe_bancontact,li.payment_method_stripe_becs,li.payment_method_stripe_eps,li.payment_method_stripe_fpx,li.payment_method_stripe_giropay,li.payment_method_stripe_ideal,li.payment_method_stripe_klarna,li.payment_method_stripe_multibanco,li.payment_method_stripe_p24,li.payment_method_stripe_sepa,li.payment_method_stripe_sofort,li.payment_method_stripe_wechat{display:none}.widget_shopping_cart_content .wc-stripe-mini-cart-payment-methods{list-style:none;margin:0;padding:0}.widget_shopping_cart_content .wc-stripe-mini-cart-payment-methods li{margin:0}.widget_shopping_cart_content a.wc-stripe-applepay-mini-cart,.widget_shopping_cart_content a.wc-stripe-gpay-mini-cart,.widget_shopping_cart_content a.wc-stripe-payment-request-mini-cart{background:0 0;padding:0;border:none}a.wc-stripe-gpay-mini-cart .gpay-button,a.wc-stripe-gpay-mini-cart .gpay-card-info-container a.wc-stripe-applepay-mini-cart .apple-pay-button{width:100%;margin:0}.wc-stripe-payment-request-mini-cart.StripeElement{padding:0;background:0 0;border:none;width:100%}.wc-stripe-payment-request-mini-cart.StripeElement .__PrivateStripeElement{width:100%}.widget_shopping_cart_content .wc-stripe-overlay{display:none!important;position:absolute;background:rgba(255,255,255,.75);height:100%;width:100%;z-index:-1}.widget_shopping_cart_content .wc-stripe-overlay.active{display:block!important;z-index:9999}.wc-stripe-klarna-loader{display:flex;justify-content:center;position:relative;width:100%;height:30px;box-sizing:border-box;transform:scale(.65)}.wc-stripe-klarna-loader div{box-sizing:border-box;display:block;position:absolute;box-sizing:border-box;width:30px;height:30px;border:3px solid #000;border-radius:50%;animation:klarna-payments-loader 1.3s cubic-bezier(.5,0,.5,1) infinite;border-color:#000 transparent transparent transparent}.wc-stripe-klarna-loader div:nth-child(1){animation-delay:-.45s}.wc-stripe-klarna-loader div:nth-child(2){animation-delay:-.3s}.wc-stripe-klarna-loader div:nth-child(3){animation-delay:-.15s}@keyframes klarna-payments-loader{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}li.payment_method_stripe_alipay.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_applepay.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_bancontact.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_eps.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_giropay.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_googlepay.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_grabpay.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_multibanco.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_oxxo.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_p24.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_payment_request.wc-stripe-no-desc .payment_box.wc-stripe-no-methods,li.payment_method_stripe_sofort.wc-stripe-no-desc .payment_box.wc-stripe-no-methods{padding:0;margin:0}.wc-stripe-shortcode-cart-buttons .wc-stripe-cart-checkout-container ul.wc_stripe_cart_payment_methods.active li.wc-stripe-payment-method.or{display:none}label[for=payment_method_stripe_afterpay]>#wc-stripe-afterpay-msg{display:inline-block}#wc-stripe-afterpay-cart-container #wc-stripe-afterpay-cart-msg .__PrivateStripeElement p,#wc-stripe-afterpay-product-msg .__PrivateStripeElement p,.payment_method_stripe_afterpay #wc-stripe-afterpay-msg .__PrivateStripeElement p{margin-bottom:0!important;margin-top:0!important}#wc-stripe-afterpay-cart-msg .__PrivateStripeElement p .AfterpayMessage-logo,.payment_method_stripe_afterpay #wc-stripe-afterpay-msg .__PrivateStripeElement p .AfterpayMessage-logo{vertical-align:middle}.payment_method_stripe_afterpay #wc_stripe_local_payment_stripe_afterpay.ineligible{display:none}.payment_method_stripe_afterpay .wc-stripe-afterpay__offsite{text-align:center;max-width:320px;margin:0 auto;padding:10px 0}.payment_method_stripe_afterpay .wc-stripe-afterpay__offsite img{display:inline-block}.payment_method_stripe_afterpay .wc-stripe-afterpay__offsite p{font-size:14px;margin-top:10px}#wc-stripe-afterpay-cart-container #wc-stripe-afterpay-cart-msg{text-align:left}#wc-stripe-afterpay-cart-container #wc-stripe-afterpay-cart-msg .AfterpayMessage-logoSvg,.payment_method_stripe_afterpay #wc-stripe-afterpay-msg .AfterpayMessage-logoSvg{min-width:64px;max-width:90px}#wc-stripe-afterpay-cart-container td{border:none}#wc-stripe-afterpay-cart-container td::before{content:''}.AfterpayMessage-logoSvg{display:inline-block}#wc-stripe-afterpay-product-msg{font-size:14px}#wc-stripe-afterpay-product-msg .AfterpayMessage-logoSvg{max-width:80px;min-width:64px}.wc-stripe-afterpay-minicart-msg{font-size:.8em}.afterpay-ineligible,.payment_method_stripe_afterpay.afterpay-ineligible{display:none}.woocommerce-mini-cart__buttons .gpay-card-info-container{min-width:100%}.woocommerce-mini-cart__buttons .gpay-card-info-container{margin:0}.wc-stripe-boleto__description{margin-top:10px}.wc-stripe-boleto__description div{display:flex;align-items:center}.wc-stripe-boleto__description div label{margin:0}.wc-stripe-klarna__testmode{margin-top:10px}.wc-stripe-klarna__testmode label{display:inline-block}div.payment_method_stripe_cc>.woocommerce-NoticeGroup{margin-bottom:10px}div.payment_method_stripe_cc.custom-form__bootstrap>.woocommerce-NoticeGroup{margin-bottom:20px}
assets/img/cards/maestro.svg CHANGED
@@ -1,13 +1,14 @@
1
- <svg height="471" width="750" viewBox="0 0 750 471" xmlns="http://www.w3.org/2000/svg">
2
- <g fill="none" fill-rule="evenodd">
3
- <rect fill="#000" height="471" rx="40" width="750"/>
4
- <path d="M675 235.506c0 99.134-80.35 179.496-179.483 179.496-99.121 0-179.48-80.362-179.48-179.496 0-99.141 80.359-179.508 179.48-179.508C594.65 55.998 675 136.365 675 235.506"
5
- fill="#d9222a"/>
6
- <path d="M356.87 349.49a177.907 177.907 0 0 1-13.674-19.009h63.612a178.646 178.646 0 0 0 10.342-19.012h-84.292a178.39 178.39 0 0 1-7.596-19h99.476c5.987-17.904 9.229-37.05 9.229-56.963 0-13.046-1.392-25.762-4.03-38.012H320.076a178.242 178.242 0 0 1 5.208-19.009h99.442a181.479 181.479 0 0 0-7.592-19.004H332.88a180.954 180.954 0 0 1 10.338-19.008h63.57a181.425 181.425 0 0 0-13.67-18.992h-36.225a181.098 181.098 0 0 1 18.112-19c-31.854-28.883-74.137-46.483-120.517-46.483C155.358 55.998 75 136.365 75 235.506c0 99.134 80.358 179.496 179.487 179.496 46.388 0 88.667-17.596 120.517-46.475a180.409 180.409 0 0 0 18.134-19.037z"
7
- fill="#0097d0"/>
8
- <path d="M651.075 335.544c0-3.2 2.596-5.796 5.8-5.796 3.2 0 5.792 2.596 5.792 5.796 0 3.204-2.592 5.8-5.792 5.8a5.799 5.799 0 0 1-5.8-5.8zm5.8 4.408a4.401 4.401 0 0 0 4.404-4.408 4.396 4.396 0 0 0-4.404-4.396 4.4 4.4 0 0 0-4.408 4.396 4.405 4.405 0 0 0 4.408 4.408zm-.787-1.862h-1.184v-5.092h2.15c.446 0 .904.004 1.3.258.417.284.646.775.646 1.271 0 .583-.337 1.113-.88 1.317l.934 2.246h-1.316l-.775-2.009h-.875zm0-2.88h.658c.246 0 .504.017.725-.1a.712.712 0 0 0 .3-.591.652.652 0 0 0-.288-.513c-.212-.125-.541-.1-.762-.1h-.633zm-283.642-51.204c-7.671 2.034-15.088 3.025-22.93 3.009-25.016-.025-38.045-11.417-38.045-33.2 0-25.459 16.587-44.184 39.1-44.184 18.416 0 30.175 10.5 30.175 26.946 0 5.458-.796 10.77-2.746 18.296h-44.488c-1.583 10.633 6.188 15.304 19.413 15.304 7.925 0 15.092-1.425 23.025-4.612zm-11.963-44.15c0-1.608 2.475-13.033-10.4-13.283-7.108 0-12.208 4.725-14.27 13.283zm27.034-4.991c0 9.404 5.296 15.9 17.329 20.737 9.2 3.77 10.65 4.858 10.65 8.22 0 4.663-4.067 6.805-13.092 6.747-6.779-.05-12.962-.871-20.262-2.896l-3.23 17.154c6.488 1.504 15.588 2 23.65 2.188 24.026 0 35.117-7.867 35.117-24.867 0-10.217-4.625-16.233-16.033-20.713-9.538-3.808-10.658-4.637-10.658-8.083 0-4.05 3.779-6.1 11.15-6.1 4.462 0 10.579.413 16.379 1.108l3.258-17.241c-5.912-.825-14.883-1.484-20.075-1.484-25.45 0-34.258 11.459-34.183 25.23m-88.242 50.92h-18.662l.445-7.82c-5.691 6.17-13.27 9.041-23.558 9.041-12.175 0-20.517-8.325-20.517-20.296 0-18.195 14.5-28.691 39.43-28.691 2.562 0 5.82.191 9.166.562.692-2.433.88-3.479.88-4.808 0-4.98-3.921-6.813-14.413-6.813-10.342.042-17.321 1.571-23.796 3.313l3.187-16.7c11.196-2.846 18.53-3.942 26.825-3.942 19.305 0 29.5 7.567 29.5 21.796.167 3.796-1.158 11.413-1.82 14.746-.759 4.854-6.109 32.975-6.667 39.612zm-16.38-33.191c-2.366-.242-3.395-.313-5.012-.313-12.729 0-19.183 3.788-19.183 11.267 0 4.692 3.15 7.633 8.058 7.633 9.146 0 15.75-7.65 16.138-18.587zm194.11 32.012c-6.126 1.68-10.897 2.409-16.06 2.409-11.432 0-17.674-5.842-17.674-16.25-.358-2.859 2.433-16.059 3.067-19.738.633-3.692 10.537-57.492 10.537-57.492h22.213l-3.363 17.8h11.392l-3.096 18.171h-11.442s-6.279 31.53-6.279 33.934c0 3.825 2.317 5.487 7.633 5.487 2.546 0 4.509-.237 6.03-.692l-2.959 16.371m99.246-74.975c-16.28 0-29 6.7-36.387 17.892l6.412-16.596c-11.817-4.337-19.433 1.85-26.325 10.65 0 0-1.154 1.463-2.3 2.8v-13.05h-20.858c-2.825 23.03-7.821 46.38-11.73 69.446l-.941 5.02h22.437c2.125-11.708 3.875-21.212 5.617-28.787 4.767-20.787 12.788-27.141 24.83-24.333-2.78 5.98-4.305 12.892-4.305 20.554 0 18.58 10.092 33.788 35.15 33.788 25.288 0 43.596-13.509 43.596-44.309 0-18.579-12.2-33.075-35.196-33.075zm-6.53 59.317c-7.924.125-12.728-6.525-12.728-16.47 0-11.793 7.012-25.113 18.275-25.113 9.087 0 12.2 7.204 12.2 14.879 0 16.779-6.875 26.704-17.746 26.704zm-343.19 16.846h-22.343l13.28-69.954-30.571 69.954h-20.367l-3.725-69.55-13.32 69.55h-20.272l17.267-90.996h34.913l2.912 50.725 22.117-50.725h37.72l-17.612 90.996"
9
- fill="#000"/>
10
- <path d="M613.15 274.385a5.8 5.8 0 0 1 5.796-5.795c3.204 0 5.796 2.6 5.796 5.795a5.796 5.796 0 1 1-11.592 0zm5.796 4.413a4.414 4.414 0 0 0 4.408-4.413 4.406 4.406 0 0 0-4.408-4.404 4.406 4.406 0 0 0-4.408 4.404 4.414 4.414 0 0 0 4.408 4.413zm-.783-1.867h-1.188v-5.083h2.15c.45 0 .908 0 1.304.25.409.28.646.767.646 1.27 0 .58-.337 1.117-.883 1.317l.933 2.246h-1.317l-.77-2.008h-.875zm0-2.887h.658c.242 0 .504.016.725-.096a.702.702 0 0 0 .296-.588.635.635 0 0 0-.284-.512c-.212-.13-.541-.096-.762-.096h-.633zm-240.109 4.354c-7.666 2.033-15.087 3.03-22.925 3.012-25.017-.025-38.046-11.42-38.046-33.208 0-25.45 16.58-44.18 39.096-44.18 18.421 0 30.175 10.497 30.175 26.943 0 5.466-.8 10.77-2.741 18.3h-44.488c-1.583 10.629 6.18 15.308 19.408 15.308 7.925 0 15.088-1.425 23.03-4.617zm-11.962-44.15c0-1.604 2.47-13.033-10.4-13.28-7.109 0-12.204 4.73-14.271 13.28h24.67zm27.037-4.996c0 9.408 5.288 15.9 17.325 20.746 9.204 3.767 10.65 4.858 10.65 8.212 0 4.667-4.066 6.809-13.087 6.75-6.784-.045-12.967-.87-20.263-2.895l-3.237 17.145c6.491 1.517 15.596 2.013 23.654 2.2 24.025 0 35.12-7.87 35.12-24.87 0-10.217-4.628-16.238-16.041-20.713-9.537-3.808-10.654-4.637-10.654-8.083 0-4.05 3.783-6.1 11.146-6.1 4.47 0 10.583.416 16.387 1.112l3.25-17.246c-5.912-.825-14.879-1.483-20.066-1.483-25.459 0-34.263 11.454-34.184 25.225m-88.242 50.93h-18.666l.45-7.822c-5.696 6.159-13.275 9.034-23.558 9.034-12.176 0-20.521-8.325-20.521-20.288 0-18.204 14.495-28.696 39.429-28.696 2.562 0 5.816.192 9.17.563.692-2.433.876-3.475.876-4.808 0-4.984-3.917-6.813-14.409-6.813-10.341.042-17.32 1.575-23.796 3.313l3.184-16.696c11.2-2.85 18.529-3.946 26.829-3.946 19.304 0 29.496 7.567 29.496 21.792.167 3.8-1.159 11.412-1.817 14.754-.762 4.85-6.112 32.97-6.666 39.612zM288.5 246.984c-2.358-.245-3.392-.312-5.012-.312-12.721 0-19.18 3.787-19.18 11.267 0 4.695 3.154 7.633 8.055 7.633 9.154 0 15.758-7.654 16.137-18.588zm194.108 32.017c-6.12 1.675-10.895 2.408-16.054 2.408-11.433 0-17.67-5.845-17.67-16.254-.363-2.854 2.433-16.058 3.062-19.737.633-3.692 10.537-57.492 10.537-57.492h22.209l-3.354 17.8h11.391l-3.096 18.17h-11.441s-6.284 31.53-6.284 33.934c0 3.825 2.321 5.48 7.634 5.48 2.541 0 4.508-.23 6.029-.692zm110.471-42.367c0 16.775-6.879 26.709-17.754 26.709-7.92.112-12.725-6.525-12.725-16.475 0-11.792 7.008-25.113 18.27-25.113 9.093 0 12.21 7.213 12.21 14.88zm23.98.467c0-18.58-12.209-33.08-35.196-33.08-26.45 0-43.55 17.626-43.55 43.597 0 18.579 10.083 33.791 35.15 33.791 25.287 0 43.595-13.512 43.595-44.308zM502.395 205.72c-2.821 23.029-7.817 46.375-11.721 69.45l-.946 5.02h22.434c8.087-44.558 10.8-57.254 27.741-52.783l8.15-21.087c-11.816-4.338-19.425 1.854-26.308 10.658.62-3.962 1.792-7.783 1.508-11.258zm-270.259 74.47H209.8l13.275-69.958L192.5 280.19h-20.363l-3.725-69.555-13.32 69.555H134.82l17.262-91h34.921l1.846 56.333 24.575-56.333h36.325z"
11
- fill="#fff"/>
12
- </g>
13
- </svg>
 
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="191" height="120.641" viewBox="0 0 146.776 120.641">
2
+ <g>
3
+ <rect width="191" height="120.641" style="fill: black" transform="translate(-23.5)" rx="10.187"/>
4
+ <g>
5
+ <path d="M372.97079,350.9185v-5.9914a3.55354,3.55354,0,0,0-3.7545-3.7945,3.69772,3.69772,0,0,0-3.3551,1.6976,3.50632,3.50632,0,0,0-3.1555-1.6976,3.15709,3.15709,0,0,0-2.7959,1.418v-1.1783h-2.0771v9.5462h2.097v-5.2923a2.23259,2.23259,0,0,1,2.3366-2.5362c1.378,0,2.0771.8986,2.0771,2.5162v5.3123h2.097v-5.2923A2.25125,2.25125,0,0,1,368.777,343.09c1.41779,0,2.09689.8986,2.09689,2.5162v5.3123Zm11.70321-4.7732v-4.773h-2.07711v1.1583a3.62159,3.62159,0,0,0-3.0157-1.398,5.01888,5.01888,0,0,0,0,10.0257,3.62139,3.62139,0,0,0,3.0157-1.3981v1.1583H384.674Zm-7.72881,0a2.89047,2.89047,0,1,1,2.8957,3.0556A2.86354,2.86354,0,0,1,376.94519,346.1453Zm52.1715-5.0239a5.3805,5.3805,0,0,1,2.0486.3839,4.99816,4.99816,0,0,1,1.6296,1.0566,4.83745,4.83745,0,0,1,1.0766,1.5899,5.30278,5.30278,0,0,1,0,3.9871,4.83354,4.83354,0,0,1-1.0766,1.5902,4.99443,4.99443,0,0,1-1.6296,1.0564,5.65627,5.65627,0,0,1-4.0971,0,4.94,4.94,0,0,1-1.6249-1.0564,4.87929,4.87929,0,0,1-1.0716-1.5902,5.30784,5.30784,0,0,1,0-3.9871,4.88328,4.88328,0,0,1,1.0716-1.5899,4.9437,4.9437,0,0,1,1.6249-1.0566A5.38,5.38,0,0,1,429.11669,341.1214Zm0,1.9639a3.09937,3.09937,0,0,0-1.186.2243,2.80562,2.80562,0,0,0-.947.6278,2.927,2.927,0,0,0-.6281.9671,3.47314,3.47314,0,0,0,0,2.4821,2.924,2.924,0,0,0,.6281.9669,2.80464,2.80464,0,0,0,.947.628,3.24794,3.24794,0,0,0,2.3721,0,2.86167,2.86167,0,0,0,.952-.628,2.89613,2.89613,0,0,0,.63321-.9669,3.47328,3.47328,0,0,0,0-2.4821,2.899,2.899,0,0,0-.63321-.9671,2.86269,2.86269,0,0,0-.952-.6278A3.09988,3.09988,0,0,0,429.11669,343.0853Zm-33.1409,3.06c-.0199-2.9756-1.8573-5.0127-4.5334-5.0127a5.017,5.017,0,0,0,.1398,10.0256,5.8025,5.8025,0,0,0,3.9143-1.3381l-1.01849-1.5378a4.54855,4.54855,0,0,1-2.776.9985,2.65136,2.65136,0,0,1-2.856-2.3366h7.08989C395.95589,346.6846,395.97579,346.4251,395.97579,346.1453Zm-7.1097-.8387a2.45767,2.45767,0,0,1,2.5363-2.3166,2.37115,2.37115,0,0,1,2.41661,2.3166Zm15.8566-1.4977a6.15314,6.15314,0,0,0-2.9756-.8189c-1.1385,0-1.8174.4194-1.8174,1.1185,0,.6391.7189.8186,1.6177.9384l.9785.1398c2.07711.2996,3.33511,1.1783,3.33511,2.8559,0,1.8174-1.59761,3.1157-4.35361,3.1157a6.887,6.887,0,0,1-4.134-1.2385l.9785-1.6175a5.08619,5.08619,0,0,0,3.1755.9986c1.4178,0,2.1768-.4193,2.1768-1.1584,0-.5392-.5393-.8388-1.6775-.9985l-.97869-.1397c-2.13681-.2997-3.29511-1.2583-3.29511-2.8161,0-1.8973,1.5576-3.0556,3.9742-3.0556a7.138,7.138,0,0,1,3.8944.9987Zm9.9801-.5393h-3.395v4.3139c0,.9584.3395,1.5976,1.378,1.5976a3.83592,3.83592,0,0,0,1.8374-.5392l.599,1.7775a4.87991,4.87991,0,0,1-2.59619.7389c-2.45641,0-3.31511-1.3181-3.31511-3.5351v-4.3536h-1.9373v-1.8973h1.9373l-.0006-2.8957h2.0969l.0006,2.8957h3.395Zm7.188-2.137a4.43589,4.43589,0,0,1,1.478.2598l-.6391,1.9571a3.38388,3.38388,0,0,0-1.2981-.2397c-1.3581,0-2.0372.8788-2.0372,2.4564v5.3523h-2.0769v-9.5462h2.0571v1.1583a2.81526,2.81526,0,0,1,2.5162-1.398ZM436.27,349.5289a.9539.9539,0,0,1,.37619.0746.97775.97775,0,0,1,.3074.2037.95657.95657,0,0,1,.2071.3028.93363.93363,0,0,1,0,.737.96452.96452,0,0,1-.2071.3015.9964.9964,0,0,1-.3074.2048.93912.93912,0,0,1-.37619.0758.96809.96809,0,0,1-.89761-.5821.9359.9359,0,0,1,0-.737.96233.96233,0,0,1,.2062-.3028.95074.95074,0,0,1,.3085-.2037A.98158.98158,0,0,1,436.27,349.5289Zm0,1.6906a.70737.70737,0,0,0,.28659-.0582.75391.75391,0,0,0,.2327-.1583.74009.74009,0,0,0-.2327-1.205.7152.7152,0,0,0-.28659-.0572.74573.74573,0,0,0-.29221.0572.7297.7297,0,0,0-.2363.1569.74456.74456,0,0,0,0,1.0481.74452.74452,0,0,0,.52851.2165Zm.05589-1.1854a.40124.40124,0,0,1,.26211.0759.25268.25268,0,0,1,.09189.206.23989.23989,0,0,1-.0733.1803.349.349,0,0,1-.2085.0874l.2888.333h-.2258l-.2678-.3307h-.0862v.3307h-.1886v-.8826Zm-.2188.1655v.2352h.2166a.21318.21318,0,0,0,.1188-.0293.09949.09949,0,0,0,.0441-.0895.09807.09807,0,0,0-.0441-.0875.21492.21492,0,0,0-.1188-.0289Z" transform="translate(-322.61159 -245.6795)" style="fill: #fff"/>
6
+ <g>
7
+ <rect x="57.6379" y="22.8343" width="31.5" height="56.6064" style="fill: #7375cf"/>
8
+ <path d="M382.24969,296.817a35.93765,35.93765,0,0,1,13.7499-28.3032,36,36,0,1,0,0,56.6064A35.9378,35.9378,0,0,1,382.24969,296.817Z" transform="translate(-322.61159 -245.6795)" style="fill: #eb001b"/>
9
+ <path d="M450.81019,319.1248v-1.1589h.4673v-.2361h-1.1901v.2361h.4675v1.1589Zm2.3105,0v-1.3973h-.3648l-.4196.9611-.4197-.9611h-.365v1.3973h.2576v-1.054l.3935.9087h.2671l.3935-.911v1.0563Z" transform="translate(-322.61159 -245.6795)" style="fill: #00a2e5"/>
10
+ <path d="M454.24479,296.817a35.99867,35.99867,0,0,1-58.2452,28.3032,36.00518,36.00518,0,0,0,0-56.6064,35.99867,35.99867,0,0,1,58.2452,28.3032Z" transform="translate(-322.61159 -245.6795)" style="fill: #00a2e5"/>
11
+ </g>
12
+ </g>
13
+ </g>
14
+ </svg>
assets/img/cards/visa.svg CHANGED
@@ -4,6 +4,6 @@
4
  <path d="M278.197 334.228l33.361-195.763h53.36l-33.385 195.763zm246.11-191.54c-10.572-3.966-27.136-8.222-47.822-8.222-52.725 0-89.865 26.55-90.18 64.603-.298 28.13 26.513 43.822 46.753 53.186 20.77 9.594 27.752 15.714 27.654 24.283-.132 13.121-16.587 19.116-31.923 19.116-21.357 0-32.703-2.966-50.226-10.276l-6.876-3.111-7.49 43.824c12.464 5.464 35.51 10.198 59.438 10.443 56.09 0 92.501-26.246 92.916-66.882.2-22.268-14.016-39.216-44.8-53.188-18.65-9.055-30.072-15.099-29.951-24.268 0-8.137 9.667-16.839 30.556-16.839 17.45-.27 30.089 3.535 39.937 7.5l4.781 2.26 7.234-42.43m137.307-4.222h-41.231c-12.774 0-22.332 3.487-27.942 16.234l-79.245 179.404h56.032s9.161-24.123 11.233-29.418c6.124 0 60.554.084 68.337.084 1.596 6.853 6.491 29.334 6.491 29.334h49.513zm-65.418 126.407c4.413-11.279 21.26-54.723 21.26-54.723-.316.522 4.38-11.334 7.075-18.684l3.606 16.879s10.217 46.728 12.352 56.528zM232.904 138.466l-52.24 133.496-5.567-27.13c-9.725-31.273-40.025-65.155-73.898-82.118l47.766 171.203 56.456-.065 84.004-195.386z"
5
  fill="#fff"/>
6
  <path d="M131.92 138.465H45.879l-.681 4.073c66.938 16.204 111.231 55.363 129.618 102.414l-18.71-89.96c-3.23-12.395-12.597-16.094-24.186-16.526"
7
- fill="#f2ae14"/>
8
  </g>
9
  </svg>
4
  <path d="M278.197 334.228l33.361-195.763h53.36l-33.385 195.763zm246.11-191.54c-10.572-3.966-27.136-8.222-47.822-8.222-52.725 0-89.865 26.55-90.18 64.603-.298 28.13 26.513 43.822 46.753 53.186 20.77 9.594 27.752 15.714 27.654 24.283-.132 13.121-16.587 19.116-31.923 19.116-21.357 0-32.703-2.966-50.226-10.276l-6.876-3.111-7.49 43.824c12.464 5.464 35.51 10.198 59.438 10.443 56.09 0 92.501-26.246 92.916-66.882.2-22.268-14.016-39.216-44.8-53.188-18.65-9.055-30.072-15.099-29.951-24.268 0-8.137 9.667-16.839 30.556-16.839 17.45-.27 30.089 3.535 39.937 7.5l4.781 2.26 7.234-42.43m137.307-4.222h-41.231c-12.774 0-22.332 3.487-27.942 16.234l-79.245 179.404h56.032s9.161-24.123 11.233-29.418c6.124 0 60.554.084 68.337.084 1.596 6.853 6.491 29.334 6.491 29.334h49.513zm-65.418 126.407c4.413-11.279 21.26-54.723 21.26-54.723-.316.522 4.38-11.334 7.075-18.684l3.606 16.879s10.217 46.728 12.352 56.528zM232.904 138.466l-52.24 133.496-5.567-27.13c-9.725-31.273-40.025-65.155-73.898-82.118l47.766 171.203 56.456-.065 84.004-195.386z"
5
  fill="#fff"/>
6
  <path d="M131.92 138.465H45.879l-.681 4.073c66.938 16.204 111.231 55.363 129.618 102.414l-18.71-89.96c-3.23-12.395-12.597-16.094-24.186-16.526"
7
+ fill="#fff"/>
8
  </g>
9
  </svg>
assets/img/documentation.svg ADDED
@@ -0,0 +1 @@
 
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="356.25" viewBox="0 0 356.25 375" height="375" version="1.0"><defs><clipPath id="a"><path d="M 30.890625 33 L 290 33 L 290 374.605469 L 30.890625 374.605469 Z M 30.890625 33"/></clipPath><clipPath id="b"><path d="M 59 5 L 318.285156 5 L 318.285156 351 L 59 351 Z M 59 5"/></clipPath></defs><g clip-path="url(#a)"><path d="M 289.546875 371.613281 C 289.546875 375.578125 286.328125 378.796875 282.359375 378.796875 L 38.074219 378.796875 C 34.109375 378.796875 30.890625 375.578125 30.890625 371.613281 L 30.890625 41.109375 C 30.890625 37.140625 34.109375 33.921875 38.074219 33.921875 L 74 33.921875 L 74 48.292969 L 45.261719 48.292969 L 45.261719 364.425781 L 275.175781 364.425781 L 275.175781 335.6875 L 289.546875 335.6875 Z M 289.546875 371.613281"/></g><g clip-path="url(#b)"><path d="M 59.628906 342.871094 L 59.628906 12.367188 C 59.628906 8.402344 62.847656 5.183594 66.816406 5.183594 L 243.59375 5.183594 C 245.464844 5.183594 247.261719 5.933594 248.605469 7.28125 L 316.191406 74.863281 C 317.535156 76.210938 318.285156 78.003906 318.285156 79.875 L 318.285156 342.871094 C 318.285156 346.839844 315.066406 350.058594 311.101562 350.058594 L 66.816406 350.058594 C 62.847656 350.058594 59.628906 346.839844 59.628906 342.871094 Z M 303.914062 335.6875 L 303.914062 91.402344 L 239.25 91.402344 C 235.285156 91.402344 232.066406 88.183594 232.066406 84.21875 L 232.066406 19.554688 L 74 19.554688 L 74 335.6875 Z M 298.003906 77.03125 L 246.4375 25.464844 L 246.4375 77.03125 Z M 298.003906 77.03125"/></g><path d="M 267.992188 148.882812 L 109.925781 148.882812 C 105.957031 148.882812 102.738281 145.664062 102.738281 141.695312 C 102.738281 137.730469 105.957031 134.511719 109.925781 134.511719 L 267.992188 134.511719 C 271.957031 134.511719 275.175781 137.730469 275.175781 141.695312 C 275.175781 145.664062 271.957031 148.882812 267.992188 148.882812 Z M 210.511719 191.992188 L 109.925781 191.992188 C 105.957031 191.992188 102.738281 188.773438 102.738281 184.804688 C 102.738281 180.839844 105.957031 177.621094 109.925781 177.621094 L 210.511719 177.621094 C 214.480469 177.621094 217.699219 180.839844 217.699219 184.804688 C 217.699219 188.773438 214.480469 191.992188 210.511719 191.992188 Z M 239.25 235.101562 L 109.925781 235.101562 C 105.957031 235.101562 102.738281 231.882812 102.738281 227.914062 C 102.738281 223.949219 105.957031 220.730469 109.925781 220.730469 L 239.25 220.730469 C 243.21875 220.730469 246.4375 223.949219 246.4375 227.914062 C 246.4375 231.882812 243.21875 235.101562 239.25 235.101562 Z M 181.773438 278.210938 L 109.925781 278.210938 C 105.957031 278.210938 102.738281 274.992188 102.738281 271.023438 C 102.738281 267.058594 105.957031 263.839844 109.925781 263.839844 L 181.773438 263.839844 C 185.738281 263.839844 188.957031 267.058594 188.957031 271.023438 C 188.957031 274.992188 185.738281 278.210938 181.773438 278.210938 Z M 181.773438 278.210938"/></svg>
assets/img/paymentplugins.svg ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="220" height="100" viewBox="120 160 140 84" version="1.1">
3
+ <defs>
4
+ <g>
5
+ <symbol overflow="visible" id="glyph0-0">
6
+ <path style="stroke:none;" d=""/>
7
+ </symbol>
8
+ <symbol overflow="visible" id="glyph0-1">
9
+ <path style="stroke:none;" d="M 14.828125 -29.78125 C 16.003906 -29.78125 17.109375 -29.542969 18.140625 -29.078125 C 19.179688 -28.617188 20.085938 -27.988281 20.859375 -27.1875 C 21.628906 -26.394531 22.238281 -25.457031 22.6875 -24.375 C 23.132813 -23.300781 23.359375 -22.148438 23.359375 -20.921875 C 23.359375 -19.679688 23.132813 -18.519531 22.6875 -17.4375 C 22.238281 -16.363281 21.628906 -15.417969 20.859375 -14.609375 C 20.085938 -13.796875 19.179688 -13.160156 18.140625 -12.703125 C 17.109375 -12.242188 16.003906 -12.015625 14.828125 -12.015625 L 8.3125 -12.015625 L 8.3125 0 L 1.96875 0 L 1.96875 -29.78125 Z M 13.984375 -17.8125 C 14.792969 -17.8125 15.503906 -18.109375 16.109375 -18.703125 C 16.710938 -19.304688 17.015625 -20.046875 17.015625 -20.921875 C 17.015625 -21.753906 16.710938 -22.472656 16.109375 -23.078125 C 15.503906 -23.679688 14.792969 -23.984375 13.984375 -23.984375 L 8.3125 -23.984375 L 8.3125 -17.8125 Z M 13.984375 -17.8125 "/>
10
+ </symbol>
11
+ <symbol overflow="visible" id="glyph0-2">
12
+ <path style="stroke:none;" d="M 23.6875 -20.828125 L 23.6875 0 L 18.6875 0 L 18.109375 -2.21875 C 17.296875 -1.132813 16.320313 -0.410156 15.1875 -0.046875 C 14.050781 0.316406 12.867188 0.5 11.640625 0.5 C 10.148438 0.5 8.777344 0.210938 7.53125 -0.359375 C 6.289063 -0.929688 5.207031 -1.710938 4.28125 -2.703125 C 3.351563 -3.699219 2.628906 -4.863281 2.109375 -6.1875 C 1.597656 -7.519531 1.34375 -8.941406 1.34375 -10.453125 C 1.34375 -11.960938 1.597656 -13.382813 2.109375 -14.71875 C 2.628906 -16.050781 3.351563 -17.210938 4.28125 -18.203125 C 5.207031 -19.199219 6.289063 -19.988281 7.53125 -20.5625 C 8.777344 -21.132813 10.148438 -21.421875 11.640625 -21.421875 C 12.980469 -21.421875 14.210938 -21.207031 15.328125 -20.78125 C 16.449219 -20.363281 17.378906 -19.695313 18.109375 -18.78125 L 18.6875 -20.828125 Z M 17.890625 -10.375 C 17.890625 -11.464844 17.742188 -12.382813 17.453125 -13.125 C 17.160156 -13.863281 16.769531 -14.460938 16.28125 -14.921875 C 15.789063 -15.386719 15.210938 -15.726563 14.546875 -15.9375 C 13.890625 -16.144531 13.183594 -16.25 12.4375 -16.25 C 11.675781 -16.25 10.964844 -16.089844 10.3125 -15.78125 C 9.65625 -15.476563 9.070313 -15.066406 8.5625 -14.546875 C 8.0625 -14.035156 7.667969 -13.417969 7.390625 -12.703125 C 7.109375 -11.992188 6.96875 -11.242188 6.96875 -10.453125 C 6.96875 -9.640625 7.109375 -8.882813 7.390625 -8.1875 C 7.667969 -7.488281 8.0625 -6.878906 8.5625 -6.359375 C 9.070313 -5.847656 9.65625 -5.433594 10.3125 -5.125 C 10.964844 -4.8125 11.675781 -4.65625 12.4375 -4.65625 C 13.945313 -4.65625 15.222656 -5.125 16.265625 -6.0625 C 17.316406 -6.996094 17.859375 -8.4375 17.890625 -10.375 Z M 17.890625 -10.375 "/>
13
+ </symbol>
14
+ <symbol overflow="visible" id="glyph0-3">
15
+ <path style="stroke:none;" d="M 17.96875 -20.828125 L 24.3125 -20.828125 L 11.171875 8.3125 L 4.828125 8.3125 L 10 -3.15625 L 1.171875 -20.828125 L 7.640625 -20.828125 L 13.0625 -9.953125 Z M 17.96875 -20.828125 "/>
16
+ </symbol>
17
+ <symbol overflow="visible" id="glyph0-4">
18
+ <path style="stroke:none;" d="M 25.078125 -20.828125 C 25.824219 -20.828125 26.632813 -20.699219 27.5 -20.453125 C 28.371094 -20.203125 29.179688 -19.753906 29.921875 -19.109375 C 30.660156 -18.460938 31.269531 -17.574219 31.75 -16.453125 C 32.226563 -15.335938 32.46875 -13.914063 32.46875 -12.1875 L 32.46875 0 L 26.671875 0 L 26.671875 -11.125 C 26.671875 -11.964844 26.574219 -12.679688 26.390625 -13.265625 C 26.210938 -13.855469 25.964844 -14.335938 25.65625 -14.703125 C 25.351563 -15.066406 24.996094 -15.320313 24.59375 -15.46875 C 24.1875 -15.621094 23.773438 -15.703125 23.359375 -15.703125 C 22.960938 -15.703125 22.566406 -15.628906 22.171875 -15.484375 C 21.785156 -15.347656 21.433594 -15.113281 21.125 -14.78125 C 20.8125 -14.445313 20.566406 -13.980469 20.390625 -13.390625 C 20.210938 -12.804688 20.125 -12.066406 20.125 -11.171875 L 20.125 0 L 14.328125 0 L 14.328125 -11.125 C 14.328125 -12.832031 14.027344 -14.019531 13.4375 -14.6875 C 12.851563 -15.363281 11.996094 -15.703125 10.875 -15.703125 C 10.0625 -15.703125 9.332031 -15.320313 8.6875 -14.5625 C 8.050781 -13.8125 7.734375 -12.636719 7.734375 -11.046875 L 7.734375 0 L 1.9375 0 L 1.9375 -20.828125 L 6.890625 -20.828125 L 7.734375 -18.90625 C 8.367188 -19.519531 9.113281 -19.992188 9.96875 -20.328125 C 10.820313 -20.660156 11.738281 -20.828125 12.71875 -20.828125 C 13.226563 -20.828125 13.757813 -20.773438 14.3125 -20.671875 C 14.871094 -20.578125 15.421875 -20.402344 15.953125 -20.15625 C 16.492188 -19.90625 17.007813 -19.574219 17.5 -19.171875 C 17.988281 -18.765625 18.425781 -18.253906 18.8125 -17.640625 C 19.144531 -18.167969 19.550781 -18.640625 20.03125 -19.046875 C 20.507813 -19.449219 21.023438 -19.785156 21.578125 -20.046875 C 22.136719 -20.316406 22.722656 -20.515625 23.328125 -20.640625 C 23.929688 -20.761719 24.515625 -20.828125 25.078125 -20.828125 Z M 25.078125 -20.828125 "/>
19
+ </symbol>
20
+ <symbol overflow="visible" id="glyph0-5">
21
+ <path style="stroke:none;" d="M 12.1875 -21.421875 C 13.746094 -21.421875 15.171875 -21.101563 16.453125 -20.46875 C 17.742188 -19.84375 18.851563 -19.019531 19.78125 -18 C 20.707031 -16.976563 21.421875 -15.800781 21.921875 -14.46875 C 22.429688 -13.132813 22.6875 -11.769531 22.6875 -10.375 C 22.6875 -9.53125 22.570313 -8.632813 22.34375 -7.6875 L 7.46875 -7.6875 C 8.027344 -6.738281 8.828125 -5.929688 9.859375 -5.265625 C 10.898438 -4.609375 12.023438 -4.28125 13.234375 -4.28125 C 14.429688 -4.28125 15.484375 -4.378906 16.390625 -4.578125 C 17.304688 -4.773438 18.171875 -5.023438 18.984375 -5.328125 L 20.921875 -1.765625 C 19.878906 -1.035156 18.691406 -0.472656 17.359375 -0.078125 C 16.035156 0.304688 14.617188 0.5 13.109375 0.5 C 11.453125 0.5 9.910156 0.210938 8.484375 -0.359375 C 7.054688 -0.929688 5.808594 -1.707031 4.75 -2.6875 C 3.6875 -3.664063 2.839844 -4.828125 2.21875 -6.171875 C 1.601563 -7.511719 1.296875 -8.941406 1.296875 -10.453125 C 1.296875 -11.941406 1.578125 -13.347656 2.140625 -14.671875 C 2.699219 -16.003906 3.476563 -17.164063 4.46875 -18.15625 C 5.464844 -19.152344 6.625 -19.945313 7.9375 -20.53125 C 9.246094 -21.121094 10.664063 -21.421875 12.1875 -21.421875 Z M 16.921875 -12.1875 C 16.585938 -13.382813 15.980469 -14.359375 15.109375 -15.109375 C 14.242188 -15.867188 13.269531 -16.25 12.1875 -16.25 C 11.0625 -16.25 10.039063 -15.867188 9.125 -15.109375 C 8.21875 -14.359375 7.597656 -13.382813 7.265625 -12.1875 Z M 16.921875 -12.1875 "/>
22
+ </symbol>
23
+ <symbol overflow="visible" id="glyph0-6">
24
+ <path style="stroke:none;" d="M 12.71875 -20.828125 C 13.507813 -20.828125 14.378906 -20.710938 15.328125 -20.484375 C 16.285156 -20.265625 17.179688 -19.847656 18.015625 -19.234375 C 18.855469 -18.617188 19.566406 -17.761719 20.140625 -16.671875 C 20.710938 -15.578125 21 -14.164063 21 -12.4375 L 21 0 L 15.15625 0 L 15.15625 -12.21875 C 15.15625 -12.863281 15.050781 -13.410156 14.84375 -13.859375 C 14.632813 -14.304688 14.351563 -14.660156 14 -14.921875 C 13.65625 -15.191406 13.257813 -15.390625 12.8125 -15.515625 C 12.363281 -15.636719 11.914063 -15.703125 11.46875 -15.703125 C 11.101563 -15.703125 10.699219 -15.636719 10.265625 -15.515625 C 9.835938 -15.390625 9.429688 -15.183594 9.046875 -14.90625 C 8.671875 -14.625 8.355469 -14.257813 8.109375 -13.8125 C 7.859375 -13.363281 7.734375 -12.832031 7.734375 -12.21875 L 7.734375 0 L 1.9375 0 L 1.9375 -20.828125 L 6.890625 -20.828125 L 7.734375 -19.234375 C 8.398438 -19.710938 9.148438 -20.097656 9.984375 -20.390625 C 10.824219 -20.679688 11.738281 -20.828125 12.71875 -20.828125 Z M 12.71875 -20.828125 "/>
25
+ </symbol>
26
+ <symbol overflow="visible" id="glyph0-7">
27
+ <path style="stroke:none;" d="M 9.578125 -7.46875 C 9.578125 -6.488281 9.875 -5.730469 10.46875 -5.203125 C 11.070313 -4.671875 11.867188 -4.40625 12.859375 -4.40625 C 13.636719 -4.40625 14.421875 -4.5625 15.203125 -4.875 L 15.203125 0 C 14.503906 0.226563 13.757813 0.414063 12.96875 0.5625 C 12.1875 0.714844 11.402344 0.796875 10.625 0.796875 C 9.726563 0.796875 8.871094 0.679688 8.0625 0.453125 C 7.25 0.234375 6.519531 -0.144531 5.875 -0.6875 C 5.226563 -1.238281 4.714844 -1.96875 4.34375 -2.875 C 3.96875 -3.777344 3.78125 -4.910156 3.78125 -6.265625 L 3.78125 -15.671875 L 0.796875 -15.671875 L 0.796875 -19.578125 L 3.78125 -20.828125 L 3.78125 -25.5 L 9.578125 -25.5 L 9.578125 -20.828125 L 15.203125 -20.828125 L 15.203125 -15.671875 L 9.578125 -15.671875 Z M 9.578125 -7.46875 "/>
28
+ </symbol>
29
+ <symbol overflow="visible" id="glyph1-0">
30
+ <path style="stroke:none;" d="M 8.078125 -13.714844 C 7.457031 -13.796875 6.976563 -13.796875 6.277344 -13.796875 L 2 -13.796875 L 2 0 L 3.71875 0 L 3.71875 -5.636719 L 6.277344 -5.636719 C 6.976563 -5.636719 7.457031 -5.636719 8.078125 -5.71875 C 10.078125 -5.976563 11.65625 -7.378906 11.65625 -9.71875 C 11.65625 -12.058594 10.277344 -13.4375 8.078125 -13.714844 Z M 7.976563 -7.179688 C 7.597656 -7.097656 7.058594 -7.078125 6.4375 -7.078125 L 3.71875 -7.078125 L 3.71875 -12.355469 L 6.4375 -12.355469 C 7.058594 -12.355469 7.597656 -12.335938 7.976563 -12.257813 C 8.957031 -12.035156 9.816406 -11.316406 9.816406 -9.71875 C 9.816406 -8.117188 8.957031 -7.398438 7.976563 -7.179688 Z M 7.976563 -7.179688 "/>
31
+ </symbol>
32
+ <symbol overflow="visible" id="glyph1-1">
33
+ <path style="stroke:none;" d="M 11.175781 -1.398438 L 3.71875 -1.398438 L 3.71875 -13.796875 L 2 -13.796875 L 2 0 L 11.175781 0 Z M 11.175781 -1.398438 "/>
34
+ </symbol>
35
+ <symbol overflow="visible" id="glyph1-2">
36
+ <path style="stroke:none;" d="M 12.238281 -13.796875 L 10.515625 -13.796875 L 10.515625 -5.257813 C 10.515625 -4.820313 10.515625 -4.398438 10.476563 -4.039063 C 10.316406 -2.300781 9.175781 -1.078125 7.058594 -1.078125 C 4.9375 -1.078125 3.800781 -2.300781 3.640625 -4.039063 C 3.597656 -4.398438 3.597656 -4.820313 3.597656 -5.257813 L 3.597656 -13.796875 L 1.878906 -13.796875 L 1.878906 -5.097656 C 1.878906 -4.660156 1.878906 -4.257813 1.917969 -3.859375 C 2.121094 -1.558594 3.679688 0.28125 7.058594 0.28125 C 10.4375 0.28125 11.996094 -1.558594 12.195313 -3.859375 C 12.238281 -4.257813 12.238281 -4.660156 12.238281 -5.097656 Z M 12.238281 -13.796875 "/>
37
+ </symbol>
38
+ <symbol overflow="visible" id="glyph1-3">
39
+ <path style="stroke:none;" d="M 7.976563 -6.660156 L 7.976563 -5.257813 L 11.195313 -5.257813 C 11.195313 -2.800781 9.539063 -1.078125 7.296875 -1.078125 C 4.578125 -1.078125 2.859375 -3.519531 2.859375 -6.917969 C 2.859375 -10.257813 4.597656 -12.71875 7.417969 -12.71875 C 9.71875 -12.71875 10.9375 -11.378906 11.335938 -9.398438 L 11.378906 -9.199219 L 13.097656 -9.199219 L 13.078125 -9.398438 C 12.796875 -12.097656 10.957031 -14.078125 7.457031 -14.078125 C 3.539063 -14.078125 0.941406 -11.039063 0.941406 -6.839844 C 0.941406 -2.800781 3.179688 0.28125 7.199219 0.28125 C 8.777344 0.28125 9.996094 -0.238281 10.777344 -1.121094 L 11.398438 -2.398438 L 11.398438 0 L 12.917969 0 L 12.917969 -6.660156 Z M 7.976563 -6.660156 "/>
40
+ </symbol>
41
+ <symbol overflow="visible" id="glyph1-4">
42
+ <path style="stroke:none;" d="M 3.71875 0 L 3.71875 -13.796875 L 2 -13.796875 L 2 0 Z M 3.71875 0 "/>
43
+ </symbol>
44
+ <symbol overflow="visible" id="glyph1-5">
45
+ <path style="stroke:none;" d="M 12.796875 0 L 12.757813 -13.796875 L 11.078125 -13.796875 L 11.078125 -6.898438 C 11.078125 -5.277344 11.097656 -3.300781 11.136719 -1.679688 L 4.640625 -13.796875 L 2 -13.796875 L 2 0 L 3.71875 0 L 3.71875 -6.898438 C 3.71875 -8.519531 3.699219 -10.496094 3.660156 -12.117188 L 10.15625 0 Z M 12.796875 0 "/>
46
+ </symbol>
47
+ <symbol overflow="visible" id="glyph1-6">
48
+ <path style="stroke:none;" d="M 6.277344 -14.078125 C 3.738281 -14.078125 1.679688 -12.578125 1.679688 -10.199219 C 1.679688 -7.917969 3.378906 -6.9375 5.820313 -6.378906 C 8.238281 -5.820313 9.199219 -5.058594 9.199219 -3.378906 C 9.199219 -1.941406 7.917969 -1.078125 6.339844 -1.078125 C 4.539063 -1.078125 3.277344 -2.097656 2.878906 -3.917969 L 1.039063 -3.917969 C 1.339844 -1.257813 3.257813 0.28125 6.296875 0.28125 C 8.957031 0.28125 11.039063 -1.28125 11.039063 -3.699219 C 11.039063 -6.039063 9.519531 -7.277344 6.476563 -7.976563 C 4.378906 -8.457031 3.519531 -9.097656 3.519531 -10.597656 C 3.519531 -12.035156 4.679688 -12.71875 6.136719 -12.71875 C 7.878906 -12.71875 8.898438 -11.71875 9.058594 -9.976563 L 10.898438 -9.976563 C 10.636719 -12.335938 9.136719 -14.078125 6.277344 -14.078125 Z M 6.277344 -14.078125 "/>
49
+ </symbol>
50
+ </g>
51
+ <filter id="alpha" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%">
52
+ <feColorMatrix type="matrix" in="SourceGraphic" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/>
53
+ </filter>
54
+ <mask id="mask0">
55
+ <g filter="url(#alpha)">
56
+ <rect x="0" y="0" width="375" height="374.999989" style="fill:rgb(0%,0%,0%);fill-opacity:0.619608;stroke:none;"/>
57
+ </g>
58
+ </mask>
59
+ <clipPath id="clip2">
60
+ <path d="M 0.535156 18 L 46.285156 18 L 46.285156 40 L 0.535156 40 Z M 0.535156 18 "/>
61
+ </clipPath>
62
+ <clipPath id="clip3">
63
+ <path d="M 0.535156 7 L 46.285156 7 L 46.285156 16 L 0.535156 16 Z M 0.535156 7 "/>
64
+ </clipPath>
65
+ <clipPath id="clip1">
66
+ <rect width="47" height="40"/>
67
+ </clipPath>
68
+ <g id="surface12" clip-path="url(#clip1)">
69
+ <g clip-path="url(#clip2)" clip-rule="nonzero">
70
+ <path style=" stroke:none;fill-rule:nonzero;fill:rgb(32.199097%,44.299316%,100%);fill-opacity:1;" d="M 0.535156 18.351563 L 0.535156 31.695313 C 0.535156 35.898438 3.957031 39.703125 8.160156 39.703125 L 38.660156 39.703125 C 42.863281 39.703125 46.285156 35.898438 46.285156 31.695313 L 46.285156 18.351563 Z M 6.632813 24.453125 L 14.257813 24.453125 L 14.257813 25.976563 L 6.632813 25.976563 Z M 21.882813 30.550781 L 6.632813 30.550781 L 6.632813 27.503906 L 21.882813 27.503906 Z M 21.882813 30.550781 "/>
71
+ </g>
72
+ <g clip-path="url(#clip3)" clip-rule="nonzero">
73
+ <path style=" stroke:none;fill-rule:nonzero;fill:rgb(32.199097%,44.299316%,100%);fill-opacity:1;" d="M 38.660156 7.675781 L 8.160156 7.675781 C 3.957031 7.675781 0.535156 10.726563 0.535156 15.300781 L 46.285156 15.300781 C 46.285156 10.726563 42.863281 7.675781 38.660156 7.675781 Z M 38.660156 7.675781 "/>
74
+ </g>
75
+ </g>
76
+ </defs>
77
+ <g id="surface1" style="fill: none;">
78
+ <g style="fill:rgb(39.99939%,39.99939%,39.99939%);fill-opacity:1;">
79
+ <use xlink:href="#glyph0-1" x="101.317627" y="191.696365"/>
80
+ </g>
81
+ <g style="fill:rgb(39.99939%,39.99939%,39.99939%);fill-opacity:1;">
82
+ <use xlink:href="#glyph0-2" x="123.913626" y="191.696365"/>
83
+ </g>
84
+ <g style="fill:rgb(39.99939%,39.99939%,39.99939%);fill-opacity:1;">
85
+ <use xlink:href="#glyph0-3" x="148.189629" y="191.696365"/>
86
+ </g>
87
+ <g style="fill:rgb(39.99939%,39.99939%,39.99939%);fill-opacity:1;">
88
+ <use xlink:href="#glyph0-4" x="171.751623" y="191.696365"/>
89
+ </g>
90
+ <g style="fill:rgb(39.99939%,39.99939%,39.99939%);fill-opacity:1;">
91
+ <use xlink:href="#glyph0-5" x="204.763623" y="191.696365"/>
92
+ </g>
93
+ <g style="fill:rgb(39.99939%,39.99939%,39.99939%);fill-opacity:1;">
94
+ <use xlink:href="#glyph0-6" x="228.493622" y="191.696365"/>
95
+ </g>
96
+ <g style="fill:rgb(39.99939%,39.99939%,39.99939%);fill-opacity:1;">
97
+ <use xlink:href="#glyph0-7" x="249.95562" y="191.696365"/>
98
+ </g>
99
+ <g style="fill:rgb(39.99939%,39.99939%,39.99939%);fill-opacity:1;">
100
+ <use xlink:href="#glyph1-0" x="101.317627" y="231.0585"/>
101
+ </g>
102
+ <g style="fill:rgb(39.99939%,39.99939%,39.99939%);fill-opacity:1;">
103
+ <use xlink:href="#glyph1-1" x="118.672916" y="231.0585"/>
104
+ </g>
105
+ <g style="fill:rgb(39.99939%,39.99939%,39.99939%);fill-opacity:1;">
106
+ <use xlink:href="#glyph1-2" x="135.568381" y="231.0585"/>
107
+ </g>
108
+ <g style="fill:rgb(39.99939%,39.99939%,39.99939%);fill-opacity:1;">
109
+ <use xlink:href="#glyph1-3" x="154.603002" y="231.0585"/>
110
+ </g>
111
+ <g style="fill:rgb(39.99939%,39.99939%,39.99939%);fill-opacity:1;">
112
+ <use xlink:href="#glyph1-4" x="174.197404" y="231.0585"/>
113
+ </g>
114
+ <g style="fill:rgb(39.99939%,39.99939%,39.99939%);fill-opacity:1;">
115
+ <use xlink:href="#glyph1-5" x="184.875325" y="231.0585"/>
116
+ </g>
117
+ <g style="fill:rgb(39.99939%,39.99939%,39.99939%);fill-opacity:1;">
118
+ <use xlink:href="#glyph1-6" x="204.629659" y="231.0585"/>
119
+ </g>
120
+ <use xlink:href="#surface12" transform="matrix(1,0,0,1,225,197)" mask="url(#mask0)"/>
121
+ </g>
122
+ </svg>
assets/img/settings.svg ADDED
@@ -0,0 +1 @@
 
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="375" viewBox="0 0 375 375" height="375" version="1.0"><defs><clipPath id="a"><path d="M 0 16 L 374.992188 16 L 374.992188 359 L 0 359 Z M 0 16"/></clipPath></defs><path fill="#EE4723" d="M 77.546875 215.554688 C 70.035156 220.460938 65.132812 228.984375 59.101562 235.386719 C 50.347656 244.691406 41.816406 253.925781 34.441406 264.402344 C 28.34375 273.15625 22.78125 282.238281 17.753906 291.644531 C 18.078125 291.878906 18.363281 292.148438 18.609375 292.460938 C 18.929688 292.871094 19.261719 293.265625 19.585938 293.675781 C 30.3125 276.941406 43.992188 262.332031 56.492188 246.925781 C 61.125 241.207031 65.691406 235.421875 70.488281 229.804688 C 72.441406 227.539062 75.335938 223.242188 78.710938 222.273438 C 77.984375 220.09375 77.597656 217.851562 77.546875 215.554688 Z M 77.546875 215.554688"/><path fill="#FDBE10" d="M 82.1875 230.140625 C 82.023438 230.238281 81.851562 230.328125 81.675781 230.40625 L 81.519531 230.464844 L 81.179688 230.789062 C 80.320312 231.648438 79.585938 232.449219 78.824219 233.359375 C 76.894531 235.539062 75.019531 237.765625 73.175781 240.007812 C 69.046875 245.007812 65.023438 250.082031 60.910156 255.097656 C 49.277344 269.296875 36.429688 282.875 26.558594 298.46875 C 26.132812 299.160156 25.5625 299.695312 24.847656 300.078125 C 27.605469 303.234375 30.460938 306.292969 33.414062 309.261719 C 33.414062 309.246094 33.414062 309.234375 33.414062 309.21875 C 35.613281 302.722656 42.765625 298.210938 47.425781 293.53125 C 52.839844 288.09375 57.964844 282.402344 62.847656 276.496094 C 72.199219 265.214844 80.535156 253 90.636719 242.371094 C 87.453125 238.546875 84.640625 234.46875 82.1875 230.140625 Z M 82.1875 230.140625"/><path fill="#F4831F" d="M 96.390625 248.757812 C 86.59375 259.214844 78.480469 271.164062 69.296875 282.136719 C 64.378906 288.007812 59.316406 293.785156 53.878906 299.167969 C 49.835938 303.167969 42.972656 307.472656 41.097656 313.011719 C 40.832031 313.921875 40.289062 314.617188 39.46875 315.097656 C 41.8125 317.253906 44.1875 319.367188 46.605469 321.433594 C 51.597656 325.710938 56.242188 330.847656 61.332031 335.238281 C 61.300781 334.914062 61.300781 334.585938 61.332031 334.261719 C 61.757812 329.375 65.074219 326.429688 67.789062 322.699219 C 71.34375 317.828125 75.308594 313.285156 78.925781 308.378906 C 83.929688 301.53125 88.347656 294.546875 94.054688 288.324219 C 98.839844 283.105469 103.5625 277.804688 108.101562 272.363281 C 110.175781 269.878906 112.257812 267.390625 114.175781 264.789062 C 114.644531 264.144531 115.089844 263.53125 115.503906 262.886719 C 108.09375 259.378906 101 253.371094 96.390625 248.757812 Z M 96.390625 248.757812"/><path fill="#FDBE10" d="M 81.761719 230.242188 L 81.53125 230.457031 L 81.675781 230.40625 C 82.121094 230.183594 82.15625 229.96875 81.761719 230.242188 Z M 81.761719 230.242188"/><path fill="#F4831F" d="M 39.796875 326.851562 C 30.605469 318.917969 22.144531 310.273438 14.40625 300.925781 C 12.871094 306.546875 12.160156 312.753906 13.640625 318.316406 C 15.46875 325.113281 19.296875 329.949219 24.855469 334.226562 C 35.75 342.652344 50.230469 350.183594 64.371094 349.632812 C 65.417969 349.566406 66.359375 349.851562 67.191406 350.492188 L 67.746094 349.925781 C 56.988281 344.6875 48.722656 334.640625 39.796875 326.851562 Z M 39.796875 326.851562"/><path fill="#73CACD" d="M 173.230469 146.578125 C 166.824219 141.203125 160.714844 135.449219 154.726562 129.664062 C 149.066406 124.152344 143.144531 118.75 138.039062 112.714844 C 128.027344 100.898438 118.980469 87.894531 105.625 79.574219 C 105.238281 79.34375 104.894531 79.058594 104.597656 78.71875 C 105.675781 76.949219 106.84375 75.210938 108.023438 73.371094 C 110.9375 68.714844 111.546875 63.5625 110.9375 58.1875 C 110.457031 53.949219 109.519531 49.816406 108.128906 45.785156 C 107.375 42.863281 106.34375 40.046875 105.027344 37.335938 C 104.699219 37.382812 104.375 37.382812 104.050781 37.335938 C 103.082031 35.84375 101.984375 34.457031 100.761719 33.167969 C 100.65625 32.902344 100.5 32.667969 100.296875 32.464844 L 97.726562 29.898438 C 97.503906 29.671875 97.238281 29.515625 96.929688 29.425781 C 95.535156 28.214844 93.9375 27.410156 92.132812 27.003906 C 93.121094 34.800781 92.132812 42.6875 92.132812 50.59375 C 92.132812 52.015625 91.644531 53.734375 90.257812 54.472656 C 79.628906 60.050781 71.902344 71.203125 59.953125 74.355469 C 46.707031 77.839844 37.457031 64.015625 26.191406 60.257812 C 24.316406 59.632812 22.9375 58.476562 22.765625 56.378906 C 21.894531 48.8125 21.511719 41.222656 21.625 33.605469 C 19.058594 33.929688 16.800781 34.9375 14.839844 36.625 C 14.394531 37.050781 13.878906 37.371094 13.300781 37.585938 C 13.238281 38.160156 13.035156 38.675781 12.683594 39.136719 C 12.335938 39.597656 11.890625 39.9375 11.355469 40.152344 C 11.355469 40.21875 11.3125 40.289062 11.296875 40.367188 C 10.988281 41.4375 10.710938 42.515625 10.5 43.609375 C 10.078125 45.792969 9.726562 47.992188 9.480469 50.199219 C 8.980469 54.40625 8.945312 58.617188 9.375 62.832031 C 10.414062 72.539062 14.019531 81.527344 21.421875 88.125 C 28.660156 94.578125 37.464844 99.605469 47.117188 101.042969 C 55.042969 102.222656 67.34375 103.78125 74.324219 98.75 C 76.730469 97.035156 79.207031 98.25 80.320312 100.253906 C 80.992188 100.570312 81.550781 101.023438 81.992188 101.617188 C 86.523438 107.546875 93.769531 110.484375 99.261719 115.308594 C 105.128906 120.515625 110.464844 126.265625 116.144531 131.667969 C 128.472656 143.382812 141.964844 153.773438 154.050781 165.773438 C 160.550781 159.449219 167.027344 153.109375 173.394531 146.664062 Z M 173.230469 146.578125"/><path fill="#FDBE10" d="M 79.9375 230.664062 C 80.480469 230.714844 81.007812 230.648438 81.519531 230.464844 C 81.007812 230.644531 80.476562 230.710938 79.9375 230.664062 Z M 79.9375 230.664062"/><path fill="#73CACD" d="M 359.65625 235.019531 C 359.175781 234.9375 358.734375 234.761719 358.328125 234.496094 C 352.65625 230.910156 346.644531 227.050781 339.832031 226.230469 C 334.839844 225.628906 329.648438 226.46875 324.679688 227.210938 C 318.753906 228.070312 303.710938 229.679688 302.757812 237.484375 C 302.375 240.617188 299.476562 241.414062 297.183594 240.515625 C 296.890625 240.707031 296.574219 240.855469 296.238281 240.957031 C 295.902344 241.0625 295.554688 241.113281 295.203125 241.113281 C 294.851562 241.113281 294.507812 241.0625 294.171875 240.957031 C 293.832031 240.855469 293.519531 240.707031 293.226562 240.515625 C 275.007812 230.035156 258.058594 217.804688 242.375 203.820312 C 227.726562 190.597656 214.253906 175.574219 197.285156 165.191406 C 196.683594 164.835938 196.195312 164.367188 195.820312 163.78125 C 191.289062 168.601562 186.757812 173.425781 182.183594 178.203125 C 179.9375 180.539062 177.625 182.78125 175.328125 185 C 175.734375 185.238281 176.097656 185.53125 176.417969 185.878906 C 176.738281 186.226562 177 186.613281 177.203125 187.039062 C 177.40625 187.464844 177.546875 187.910156 177.617188 188.375 C 177.6875 188.839844 177.691406 189.308594 177.625 189.773438 C 178.78125 191.007812 180.042969 192.121094 181.410156 193.113281 C 183.414062 194.824219 185.496094 196.375 187.554688 197.992188 C 192.804688 202.117188 197.457031 207.023438 202.421875 211.472656 C 211.03125 219.175781 220.414062 225.679688 229.792969 232.347656 C 238.023438 238.210938 246.332031 244.007812 254.984375 249.234375 C 258.984375 251.75 263.128906 253.992188 267.421875 255.964844 C 268.703125 256.578125 270.03125 257.058594 271.40625 257.410156 C 271.621094 257.460938 273.324219 257.632812 272.425781 257.648438 L 272.941406 257.648438 C 276.085938 256.5625 279.023438 259.359375 279.023438 261.929688 C 279.351562 262.230469 279.628906 262.574219 279.855469 262.957031 C 280.082031 263.34375 280.246094 263.753906 280.34375 264.1875 C 280.445312 264.625 280.480469 265.0625 280.449219 265.507812 C 280.414062 265.953125 280.316406 266.382812 280.152344 266.800781 C 268.390625 298.046875 321.460938 330.992188 342.171875 306.847656 C 336.226562 306.429688 330.359375 305.316406 324.355469 305.136719 C 319.324219 304.957031 314.246094 304.28125 310.777344 300.300781 C 307.308594 296.320312 307.214844 290.695312 307.164062 285.800781 C 307.109375 280.492188 306.1875 274.914062 307.789062 269.742188 C 311.917969 256.246094 331.285156 253.859375 343.097656 253.773438 C 351.175781 253.773438 359.097656 255.800781 364.839844 260.621094 C 366.089844 251.128906 366.875 241.457031 359.65625 235.019531 Z M 359.65625 235.019531"/><path fill="#FDBE10" d="M 302.21875 41.203125 C 301.304688 39.132812 298.203125 35.589844 296.144531 33.425781 C 293.386719 30.523438 290.148438 26.765625 286.304688 25.277344 L 286.183594 25.226562 C 286.109375 25.34375 286.015625 25.445312 285.902344 25.523438 C 284.816406 26.351562 283.851562 27.296875 283.003906 28.367188 C 281.371094 30.351562 279.886719 32.441406 278.414062 34.546875 C 276.636719 36.910156 274.578125 38.996094 272.238281 40.800781 C 269.824219 42.832031 266.242188 45.175781 264.820312 48.121094 C 262.035156 54.019531 263.105469 60.8125 262.5 67.140625 C 262.449219 68.117188 262.070312 68.941406 261.359375 69.613281 C 261.359375 69.722656 261.308594 69.835938 261.273438 69.9375 C 261.050781 70.570312 260.621094 71.058594 260.417969 71.648438 C 260.308594 72.054688 260.132812 72.425781 259.882812 72.765625 C 259.636719 73.101562 259.335938 73.382812 258.980469 73.609375 C 258.625 73.832031 258.242188 73.984375 257.832031 74.066406 C 257.421875 74.144531 257.007812 74.148438 256.597656 74.070312 C 247.035156 81.773438 239.191406 91.6875 230.367188 100.160156 C 220.136719 109.976562 209.953125 119.683594 200.488281 130.253906 C 181.640625 151.34375 160.921875 170.679688 140.839844 190.597656 C 144.070312 193.59375 147.222656 196.671875 150.359375 199.773438 C 156.226562 189.433594 166.496094 182.148438 174.601562 173.683594 C 185.085938 162.746094 195.382812 151.617188 205.808594 140.628906 C 216.230469 129.636719 226.546875 118.109375 236.644531 106.589844 C 241.621094 100.90625 246.417969 94.992188 251.714844 89.597656 C 256.441406 84.78125 261.417969 80.183594 266.207031 75.46875 C 266.976562 74.675781 267.910156 74.246094 269.007812 74.175781 C 273.515625 71.367188 279.132812 70.46875 283.175781 66.644531 C 287.21875 62.816406 290.648438 58.296875 294.46875 54.222656 C 296.769531 51.777344 304.019531 45.261719 302.21875 41.203125 Z M 302.21875 41.203125"/><path fill="#EE4723" d="M 124.015625 265.625 C 122.535156 269.050781 119.058594 272.472656 117.300781 274.648438 C 112.726562 280.28125 107.949219 285.773438 103.082031 291.117188 C 101.144531 293.253906 99.21875 295.394531 97.222656 297.464844 C 94.011719 300.820312 91.699219 305.167969 89 308.980469 C 85.367188 314.0625 81.640625 319.078125 77.742188 323.949219 C 75.085938 327.277344 70.144531 331.488281 69.757812 335.929688 C 69.753906 336.371094 69.664062 336.789062 69.496094 337.195312 C 69.324219 337.597656 69.085938 337.957031 68.78125 338.269531 C 68.472656 338.582031 68.121094 338.828125 67.71875 339.003906 C 67.320312 339.183594 66.898438 339.277344 66.460938 339.296875 C 68.136719 340.472656 69.898438 341.511719 71.738281 342.410156 C 72.539062 342.785156 73.15625 343.355469 73.589844 344.121094 C 90.960938 326.429688 107.785156 307.890625 121.652344 287.359375 C 125.328125 281.914062 130.628906 275.460938 132.128906 268.957031 C 132.453125 267.546875 132.613281 266.121094 132.609375 264.675781 C 129.839844 265.839844 126.976562 266.15625 124.015625 265.625 Z M 124.015625 265.625"/><path fill="#FDBE10" d="M 156.835938 220.390625 C 153.90625 213.117188 146.347656 208.648438 141.261719 203.015625 C 137.097656 198.410156 132.222656 194.457031 127.921875 189.945312 C 125.84375 187.753906 122.269531 184.367188 120.769531 180.796875 C 120.46875 180.886719 120.160156 180.945312 119.847656 180.976562 C 116.417969 181.300781 110.644531 182.039062 109.164062 185.847656 C 108.101562 188.578125 109.738281 191.691406 111.3125 193.890625 C 114.40625 198.171875 117.75 202.242188 121.34375 206.105469 C 126.023438 211.324219 131.09375 216.128906 136.550781 220.527344 C 140.6875 223.78125 145.707031 227.632812 151.113281 228.230469 C 151.351562 228.246094 151.59375 228.246094 151.832031 228.230469 C 152.074219 228.210938 152.3125 228.183594 152.546875 228.136719 C 152.785156 228.089844 153.015625 228.03125 153.246094 227.957031 C 153.472656 227.878906 153.695312 227.792969 153.914062 227.6875 C 154.132812 227.585938 154.34375 227.46875 154.546875 227.339844 C 154.75 227.210938 154.945312 227.070312 155.128906 226.917969 C 155.3125 226.765625 155.488281 226.601562 155.65625 226.425781 C 155.820312 226.25 155.972656 226.066406 156.113281 225.871094 C 156.257812 225.675781 156.386719 225.476562 156.503906 225.265625 C 156.617188 225.054688 156.722656 224.835938 156.8125 224.613281 C 156.898438 224.390625 156.976562 224.164062 157.035156 223.929688 C 157.097656 223.695312 157.144531 223.460938 157.175781 223.222656 C 157.207031 222.984375 157.222656 222.746094 157.222656 222.503906 C 157.222656 222.265625 157.210938 222.023438 157.183594 221.785156 C 157.152344 221.546875 157.109375 221.3125 157.050781 221.078125 C 156.992188 220.84375 156.921875 220.617188 156.835938 220.390625 Z M 156.835938 220.390625"/><path fill="#F4831F" d="M 136.789062 231.226562 C 125.371094 223.625 115.632812 213.363281 107.175781 202.632812 C 106.859375 202.238281 106.542969 201.828125 106.226562 201.425781 C 102.839844 204.351562 99.1875 206.902344 95.269531 209.066406 C 92.925781 210.175781 90.484375 210.996094 87.945312 211.53125 C 87.433594 211.953125 87.042969 212.460938 86.769531 213.0625 C 86.496094 213.664062 86.367188 214.296875 86.386719 214.957031 C 86.46875 217.667969 87.074219 220.257812 88.203125 222.726562 C 91.132812 229.625 95.910156 235.933594 101.101562 241.292969 C 106.292969 246.652344 112.382812 252.058594 119.382812 255.140625 C 123.933594 257.160156 128.394531 258.09375 131.375 254.78125 C 130.417969 249.425781 129.945312 243.722656 132.171875 238.570312 C 133.402344 235.929688 134.941406 233.480469 136.789062 231.226562 Z M 136.789062 231.226562"/><path d="M 81.53125 230.457031 L 81.683594 230.398438 Z M 81.53125 230.457031"/><g clip-path="url(#a)"><path d="M 374.15625 246.144531 C 373.609375 236.800781 368.257812 229.816406 360.453125 225.117188 C 359.8125 224.710938 359.117188 224.507812 358.363281 224.5 C 352.734375 221.1875 346.875 218.507812 340.246094 217.652344 C 334.09375 216.90625 327.59375 218.046875 321.511719 219.054688 C 313.089844 220.449219 299.640625 223.148438 295.519531 231.894531 C 278.144531 221.683594 261.957031 209.84375 246.96875 196.375 C 232.175781 183.023438 218.597656 168.257812 201.5 157.738281 C 205.089844 153.914062 208.6875 150.101562 212.292969 146.292969 C 222.476562 135.605469 232.300781 124.578125 242.035156 113.488281 C 247.035156 107.785156 251.894531 101.941406 257.074219 96.410156 C 261.257812 91.96875 265.746094 87.851562 270.128906 83.574219 C 270.773438 83.429688 271.34375 83.144531 271.84375 82.71875 C 274.542969 80.414062 278.472656 79.464844 281.652344 77.871094 C 284.917969 76.171875 287.871094 74.035156 290.5 71.460938 C 292.976562 69.117188 294.945312 66.324219 297.207031 63.808594 C 299.691406 61.019531 302.347656 58.417969 304.773438 55.558594 C 308.933594 50.59375 311.855469 44.917969 310.304688 38.371094 C 309.261719 33.945312 304.09375 29.402344 301.132812 26.277344 C 297.695312 22.675781 293.414062 18.507812 288.460938 17.015625 C 282.414062 15.203125 277.644531 21.167969 274.457031 25.40625 C 272.503906 27.972656 270.953125 30.6875 268.460938 32.835938 C 265.285156 35.414062 262.257812 38.152344 259.371094 41.050781 C 253.296875 47.574219 254.78125 57.074219 254.09375 65.179688 C 243.644531 72.960938 235.378906 83.324219 226.101562 92.390625 C 215.632812 102.660156 204.746094 112.382812 195.089844 123.414062 C 189.953125 129.261719 184.683594 134.953125 179.296875 140.535156 C 179.167969 140.398438 179.019531 140.261719 178.867188 140.125 C 166.015625 129.347656 153.058594 117.5 142.339844 104.59375 C 133.328125 93.742188 124.8125 82.800781 113.386719 74.578125 C 113.667969 74.453125 113.933594 74.308594 114.191406 74.140625 C 120.25 70.039062 118.03125 60.445312 117.78125 54.128906 C 115.375 46.261719 115.597656 37.34375 110.929688 30.574219 C 108.804688 27.652344 106.351562 25.039062 103.570312 22.734375 C 103.253906 22.792969 102.949219 22.890625 102.652344 23.015625 C 101.582031 22.054688 100.414062 21.222656 99.152344 20.523438 C 97.890625 19.820312 96.566406 19.273438 95.179688 18.871094 C 93.792969 18.472656 92.378906 18.230469 90.9375 18.152344 C 89.496094 18.070312 88.066406 18.152344 86.644531 18.394531 C 86.320312 18.429688 86.003906 18.496094 85.695312 18.601562 C 85.386719 18.703125 85.09375 18.839844 84.816406 19.011719 C 84.539062 19.179688 84.28125 19.378906 84.046875 19.605469 C 83.816406 19.832031 83.609375 20.078125 83.429688 20.351562 C 83.253906 20.625 83.105469 20.914062 82.992188 21.21875 C 82.878906 21.523438 82.800781 21.835938 82.757812 22.15625 C 82.714844 22.480469 82.707031 22.804688 82.734375 23.128906 C 82.761719 23.453125 82.828125 23.769531 82.925781 24.078125 C 85.066406 31.925781 83.945312 40.296875 83.628906 48.378906 C 74.976562 53.582031 68.304688 62.140625 58.785156 65.777344 C 53.585938 67.765625 47.863281 63.46875 43.71875 60.789062 C 39.570312 58.109375 35.554688 55.183594 31.066406 53.085938 C 30.261719 45.304688 29.574219 37.308594 30.355469 29.523438 C 30.613281 26.953125 28.796875 24.035156 25.824219 24.4375 C 19.089844 25.363281 13.515625 26.269531 8.367188 31.019531 C 7.910156 31.40625 7.558594 31.875 7.304688 32.414062 C 3.378906 33.511719 2.480469 39.578125 1.847656 42.855469 C 0.824219 48.128906 0.367188 53.449219 0.476562 58.820312 C 0.757812 71.460938 4.84375 83.1875 13.546875 92.449219 C 15.609375 94.597656 17.824219 96.578125 20.1875 98.386719 C 22.554688 100.199219 25.046875 101.816406 27.664062 103.242188 C 30.277344 104.664062 32.988281 105.882812 35.792969 106.890625 C 38.597656 107.898438 41.460938 108.683594 44.386719 109.25 C 53.636719 110.910156 66.660156 112.074219 75.851562 107.675781 C 79.953125 112.453125 85.273438 115.644531 90.414062 119.308594 C 96.992188 124.015625 102.472656 130.316406 108.214844 135.972656 C 119.785156 147.363281 132.660156 157.371094 144.472656 168.496094 C 144.429688 169.371094 144.617188 170.191406 145.03125 170.960938 C 145.445312 171.730469 146.03125 172.335938 146.785156 172.777344 C 142.730469 176.71875 138.691406 180.675781 134.664062 184.648438 C 134.082031 184.058594 133.484375 183.484375 132.910156 182.875 C 131.8125 181.71875 130.789062 180.503906 129.832031 179.230469 C 129.480469 178.757812 129.152344 178.269531 128.855469 177.757812 C 130.039062 174.027344 125.175781 171.277344 122.148438 173.332031 C 121.277344 172.621094 120.28125 172.335938 119.160156 172.476562 C 111.046875 173.246094 101.960938 176.601562 100.410156 185.625 C 100.179688 187.082031 100.171875 188.539062 100.386719 189.996094 C 100.597656 191.457031 101.019531 192.851562 101.652344 194.183594 C 98.128906 197.101562 94.542969 200.0625 90.414062 201.996094 C 89.234375 202.539062 88.027344 203 86.789062 203.375 C 85.65625 203.148438 84.621094 203.371094 83.679688 204.042969 L 83.25 204.359375 C 80.367188 204.984375 77.589844 205.929688 74.925781 207.191406 C 65.503906 212.082031 59.574219 222.136719 52.652344 229.78125 C 43.71875 239.605469 34.851562 249.039062 27.175781 259.933594 C 19.65625 270.789062 12.890625 282.097656 6.882812 293.855469 C 6.585938 294.378906 6.417969 294.941406 6.382812 295.542969 C 6.34375 296.144531 6.445312 296.722656 6.679688 297.277344 C 2.53125 312.070312 4.109375 327.390625 16.273438 338.363281 C 28.957031 349.789062 47.667969 358.945312 65.015625 358.261719 C 65.472656 358.242188 65.917969 358.160156 66.351562 358.015625 C 66.769531 358.355469 67.238281 358.609375 67.753906 358.773438 C 68.269531 358.9375 68.796875 359.003906 69.335938 358.972656 C 69.878906 358.941406 70.394531 358.8125 70.886719 358.589844 C 71.378906 358.363281 71.8125 358.058594 72.191406 357.671875 C 91.972656 337.910156 111.226562 317.308594 127.203125 294.28125 C 133.851562 284.703125 141.964844 274.375 141.148438 262.125 C 140.765625 256.390625 138.578125 250.851562 139.214844 245.050781 C 139.652344 241.277344 142.09375 238.28125 144.429688 235.378906 C 147.300781 236.539062 150.28125 237.019531 153.375 236.824219 C 159.644531 236.285156 163.652344 231.246094 165.460938 225.648438 C 167.824219 218.386719 161.664062 211.15625 156.722656 206.164062 C 156.726562 206.144531 156.726562 206.125 156.722656 206.105469 C 159.292969 200.773438 163.320312 196.46875 167.523438 192.410156 L 168.777344 191.214844 C 170.257812 195.570312 174.667969 198.855469 178.085938 201.59375 C 183.773438 206.148438 189.058594 211.011719 194.441406 215.941406 C 204.101562 224.800781 214.691406 232.203125 225.347656 239.769531 C 234.769531 246.445312 244.277344 253.027344 254.25 258.855469 C 258.703125 261.425781 265.386719 265.859375 271.382812 266.226562 C 265.386719 287.433594 279.757812 307.027344 298.253906 317 C 317.40625 327.320312 343.429688 326.363281 353.738281 304.5625 C 354.078125 303.871094 354.226562 303.144531 354.175781 302.375 C 354.125 301.609375 353.882812 300.90625 353.453125 300.265625 C 353.023438 299.628906 352.460938 299.140625 351.765625 298.804688 C 351.074219 298.46875 350.339844 298.332031 349.574219 298.390625 C 343.226562 298.964844 336.980469 298.082031 330.683594 297.296875 C 326.789062 296.808594 321.90625 297.296875 318.253906 295.6875 C 315.855469 294.597656 315.867188 290.859375 315.683594 288.667969 C 315.253906 284.109375 315.144531 279.546875 315.351562 274.972656 C 316.132812 264.136719 332.765625 262.84375 340.957031 262.46875 C 350.378906 262.039062 360.511719 264.292969 363.820312 274.089844 C 365.453125 278.9375 372.078125 277.011719 372.136719 272.378906 C 372.316406 263.519531 374.664062 254.9375 374.15625 246.144531 Z M 116.09375 131.675781 C 110.414062 126.273438 105.078125 120.546875 99.210938 115.320312 C 93.71875 110.457031 86.472656 107.519531 81.941406 101.625 C 81.496094 101.03125 80.941406 100.578125 80.269531 100.261719 C 79.164062 98.261719 76.691406 97.035156 74.273438 98.757812 C 67.292969 103.789062 54.992188 102.230469 47.066406 101.050781 C 37.40625 99.613281 28.597656 94.589844 21.371094 88.136719 C 13.96875 81.535156 10.363281 72.546875 9.324219 62.84375 C 8.894531 58.628906 8.929688 54.417969 9.429688 50.210938 C 9.675781 48 10.027344 45.800781 10.449219 43.617188 C 10.660156 42.523438 10.9375 41.445312 11.242188 40.375 C 11.242188 40.296875 11.242188 40.230469 11.304688 40.160156 C 11.839844 39.945312 12.285156 39.605469 12.632812 39.144531 C 12.980469 38.683594 13.1875 38.167969 13.25 37.59375 C 13.832031 37.378906 14.347656 37.058594 14.800781 36.632812 C 16.757812 34.945312 19.015625 33.9375 21.582031 33.613281 C 21.46875 41.226562 21.851562 48.816406 22.722656 56.378906 C 22.929688 58.476562 24.308594 59.632812 26.148438 60.257812 C 37.414062 64.015625 46.65625 77.839844 59.875 74.355469 C 71.867188 71.203125 79.578125 60.050781 90.179688 54.472656 C 91.570312 53.734375 92.039062 52.015625 92.058594 50.59375 C 92.125 42.6875 93.078125 34.800781 92.058594 27.003906 C 93.859375 27.410156 95.460938 28.214844 96.855469 29.425781 C 97.160156 29.515625 97.425781 29.671875 97.652344 29.898438 L 100.222656 32.464844 C 100.421875 32.667969 100.578125 32.902344 100.683594 33.167969 C 101.910156 34.457031 103.003906 35.84375 103.972656 37.335938 C 104.296875 37.382812 104.625 37.382812 104.949219 37.335938 C 106.292969 40.046875 107.351562 42.863281 108.128906 45.785156 C 109.507812 49.808594 110.433594 53.9375 110.902344 58.167969 C 111.511719 63.542969 110.902344 68.695312 107.992188 73.351562 C 106.84375 75.195312 105.675781 76.929688 104.5625 78.703125 C 104.863281 79.042969 105.203125 79.328125 105.589844 79.558594 C 118.945312 87.914062 127.992188 100.878906 138.007812 112.699219 C 143.144531 118.734375 149.03125 124.132812 154.691406 129.648438 C 160.6875 135.46875 166.789062 141.183594 173.195312 146.558594 L 173.316406 146.652344 C 166.953125 153.097656 160.464844 159.441406 153.972656 165.765625 C 141.921875 153.785156 128.429688 143.359375 116.09375 131.675781 Z M 79.9375 230.664062 C 80.480469 230.707031 81.011719 230.640625 81.53125 230.457031 L 81.761719 230.242188 C 82.15625 229.96875 82.121094 230.183594 81.675781 230.40625 C 81.851562 230.328125 82.023438 230.238281 82.1875 230.140625 C 84.652344 234.472656 87.480469 238.546875 90.679688 242.371094 C 80.578125 253 72.242188 265.214844 62.890625 276.496094 C 58 282.394531 52.875 288.09375 47.46875 293.53125 C 42.808594 298.210938 35.65625 302.722656 33.457031 309.21875 C 33.457031 309.234375 33.457031 309.246094 33.457031 309.261719 C 30.492188 306.292969 27.636719 303.234375 24.890625 300.078125 C 25.605469 299.695312 26.175781 299.160156 26.601562 298.46875 C 36.429688 282.875 49.277344 269.296875 60.910156 255.054688 C 65.023438 250.039062 69.046875 244.964844 73.175781 239.964844 C 75.019531 237.722656 76.894531 235.5 78.824219 233.316406 C 79.585938 232.460938 80.363281 231.605469 81.179688 230.746094 L 81.519531 230.421875 C 81.011719 230.621094 80.480469 230.699219 79.9375 230.664062 Z M 61.355469 335.246094 C 56.269531 330.820312 51.625 325.6875 46.628906 321.441406 C 44.203125 319.375 41.824219 317.265625 39.496094 315.105469 C 40.3125 314.625 40.855469 313.929688 41.121094 313.019531 C 43 307.480469 49.859375 303.175781 53.902344 299.179688 C 59.351562 293.792969 64.414062 288.050781 69.324219 282.144531 C 78.503906 271.164062 86.617188 259.214844 96.417969 248.765625 C 100.992188 253.378906 108.085938 259.386719 115.46875 262.90625 C 115.058594 263.546875 114.613281 264.164062 114.140625 264.804688 C 112.222656 267.371094 110.140625 269.898438 108.066406 272.378906 C 103.527344 277.824219 98.808594 283.121094 94.019531 288.34375 C 88.324219 294.566406 83.894531 301.582031 78.890625 308.398438 C 75.320312 313.265625 71.351562 317.8125 67.753906 322.714844 C 65.039062 326.449219 61.757812 329.390625 61.296875 334.28125 C 61.285156 334.605469 61.304688 334.925781 61.355469 335.246094 Z M 34.433594 264.402344 C 41.808594 253.925781 50.339844 244.714844 59.09375 235.386719 C 65.089844 228.984375 70.023438 220.460938 77.539062 215.554688 C 77.585938 217.867188 77.980469 220.117188 78.710938 222.308594 C 75.335938 223.277344 72.441406 227.574219 70.488281 229.839844 C 65.691406 235.421875 61.125 241.207031 56.492188 246.957031 C 43.992188 262.367188 30.3125 276.976562 19.535156 293.710938 C 19.210938 293.296875 18.875 292.90625 18.558594 292.492188 C 18.3125 292.183594 18.027344 291.910156 17.703125 291.679688 C 22.742188 282.257812 28.316406 273.164062 34.433594 264.402344 Z M 67.191406 350.492188 C 66.359375 349.851562 65.417969 349.566406 64.371094 349.632812 C 50.230469 350.199219 35.75 342.667969 24.855469 334.226562 C 19.332031 329.949219 15.433594 325.085938 13.640625 318.292969 C 12.160156 312.726562 12.871094 306.523438 14.40625 300.898438 C 22.144531 310.25 30.605469 318.890625 39.796875 326.824219 C 48.722656 334.613281 56.980469 344.660156 67.746094 349.933594 Z M 132.128906 268.851562 C 130.628906 275.359375 125.328125 281.8125 121.652344 287.253906 C 107.785156 307.796875 90.960938 326.328125 73.589844 344.019531 C 73.15625 343.253906 72.539062 342.679688 71.738281 342.308594 C 69.898438 341.40625 68.136719 340.371094 66.460938 339.191406 C 66.898438 339.175781 67.320312 339.078125 67.71875 338.902344 C 68.121094 338.726562 68.472656 338.480469 68.78125 338.167969 C 69.085938 337.855469 69.324219 337.496094 69.496094 337.089844 C 69.664062 336.6875 69.753906 336.265625 69.757812 335.828125 C 70.144531 331.421875 75.085938 327.210938 77.742188 323.847656 C 81.640625 318.976562 85.367188 313.960938 89 308.875 C 91.699219 305.101562 94.011719 300.71875 97.222656 297.363281 C 99.21875 295.285156 101.144531 293.152344 103.082031 291.011719 C 107.949219 285.636719 112.726562 280.175781 117.300781 274.546875 C 119.058594 272.386719 122.535156 268.914062 124.015625 265.523438 C 126.976562 266.007812 129.832031 265.652344 132.582031 264.453125 C 132.609375 265.945312 132.457031 267.421875 132.128906 268.878906 Z M 132.128906 238.511719 C 129.902344 243.644531 130.375 249.363281 131.332031 254.722656 C 128.359375 258.035156 123.898438 257.101562 119.339844 255.082031 C 112.34375 251.984375 106.34375 246.710938 101.058594 241.265625 C 95.773438 235.824219 91.089844 229.601562 88.160156 222.703125 C 87.03125 220.234375 86.425781 217.644531 86.34375 214.929688 C 86.324219 214.269531 86.453125 213.640625 86.726562 213.039062 C 87 212.4375 87.390625 211.925781 87.902344 211.507812 C 90.441406 210.972656 92.882812 210.148438 95.226562 209.042969 C 99.144531 206.875 102.796875 204.328125 106.183594 201.398438 C 106.5 201.800781 106.816406 202.253906 107.132812 202.605469 C 115.589844 213.339844 125.328125 223.601562 136.746094 231.203125 C 134.90625 233.453125 133.378906 235.898438 132.15625 238.535156 Z M 156.835938 220.390625 C 156.917969 220.613281 156.992188 220.84375 157.046875 221.074219 C 157.105469 221.308594 157.148438 221.542969 157.175781 221.78125 C 157.203125 222.019531 157.214844 222.257812 157.210938 222.496094 C 157.210938 222.734375 157.195312 222.972656 157.160156 223.210938 C 157.128906 223.449219 157.082031 223.683594 157.023438 223.914062 C 156.960938 224.144531 156.886719 224.371094 156.796875 224.59375 C 156.707031 224.816406 156.605469 225.03125 156.488281 225.242188 C 156.375 225.449219 156.246094 225.652344 156.105469 225.84375 C 155.960938 226.039062 155.808594 226.222656 155.644531 226.394531 C 155.480469 226.570312 155.308594 226.734375 155.125 226.886719 C 154.9375 227.039062 154.746094 227.179688 154.542969 227.308594 C 154.34375 227.4375 154.132812 227.554688 153.917969 227.65625 C 153.699219 227.757812 153.476562 227.847656 153.25 227.921875 C 153.023438 227.996094 152.792969 228.058594 152.558594 228.105469 C 152.324219 228.152344 152.085938 228.183594 151.847656 228.199219 C 151.609375 228.214844 151.367188 228.21875 151.128906 228.207031 C 145.707031 227.632812 140.6875 223.78125 136.566406 220.503906 C 131.109375 216.105469 126.042969 211.296875 121.363281 206.082031 C 117.765625 202.214844 114.421875 198.144531 111.332031 193.867188 C 109.753906 191.667969 108.117188 188.550781 109.179688 185.820312 C 110.664062 182.011719 116.429688 181.277344 119.863281 180.949219 C 120.175781 180.917969 120.484375 180.859375 120.789062 180.769531 C 122.289062 184.339844 125.859375 187.730469 127.941406 189.921875 C 132.222656 194.441406 137.113281 198.386719 141.277344 202.992188 C 146.347656 208.683594 153.90625 213.148438 156.835938 220.390625 Z M 150.359375 199.789062 C 147.222656 196.691406 144.070312 193.609375 140.839844 190.613281 C 160.921875 170.695312 181.617188 151.363281 200.488281 130.273438 C 209.953125 119.699219 220.136719 109.996094 230.367188 100.175781 C 239.191406 91.703125 247.035156 81.792969 256.597656 74.089844 C 257.007812 74.164062 257.421875 74.164062 257.832031 74.082031 C 258.242188 74.003906 258.625 73.851562 258.980469 73.625 C 259.335938 73.402344 259.636719 73.121094 259.882812 72.78125 C 260.132812 72.445312 260.308594 72.070312 260.417969 71.667969 C 260.621094 71.078125 261.050781 70.589844 261.273438 69.957031 C 261.273438 69.851562 261.324219 69.742188 261.359375 69.628906 C 262.070312 68.957031 262.449219 68.132812 262.5 67.15625 C 263.082031 60.832031 262.035156 54.035156 264.820312 48.136719 C 266.207031 45.195312 269.820312 42.847656 272.238281 40.820312 C 274.578125 39.011719 276.636719 36.925781 278.414062 34.5625 C 279.886719 32.457031 281.371094 30.367188 283.003906 28.382812 C 283.851562 27.316406 284.816406 26.367188 285.902344 25.542969 C 286.015625 25.460938 286.109375 25.359375 286.183594 25.242188 L 286.304688 25.292969 C 290.140625 26.78125 293.386719 30.539062 296.144531 33.441406 C 298.203125 35.605469 301.285156 39.152344 302.21875 41.222656 C 304.019531 45.277344 296.769531 51.800781 294.511719 54.257812 C 290.6875 58.332031 287.269531 62.816406 283.21875 66.675781 C 279.167969 70.539062 273.558594 71.402344 269.050781 74.210938 C 267.949219 74.28125 267.015625 74.710938 266.25 75.5 C 261.460938 80.25 256.484375 84.8125 251.757812 89.632812 C 246.460938 95.023438 241.664062 100.9375 236.6875 106.621094 C 226.605469 118.144531 216.402344 129.550781 205.851562 140.664062 C 195.296875 151.773438 185.128906 162.78125 174.644531 173.71875 C 166.515625 182.164062 156.242188 189.449219 150.359375 199.789062 Z M 364.847656 260.671875 C 359.105469 255.816406 351.140625 253.746094 343.105469 253.824219 C 331.265625 253.890625 311.898438 256.28125 307.734375 269.742188 C 306.132812 274.878906 307.058594 280.492188 307.109375 285.800781 C 307.164062 290.695312 307.351562 296.398438 310.726562 300.300781 C 314.101562 304.203125 319.292969 304.957031 324.304688 305.136719 C 330.300781 305.347656 336.175781 306.460938 342.121094 306.847656 C 321.40625 331.019531 268.339844 298.046875 280.101562 266.800781 C 280.265625 266.382812 280.363281 265.953125 280.394531 265.507812 C 280.429688 265.0625 280.394531 264.625 280.292969 264.1875 C 280.191406 263.753906 280.03125 263.34375 279.804688 262.957031 C 279.578125 262.574219 279.300781 262.230469 278.972656 261.929688 C 278.972656 259.292969 276.03125 256.527344 272.890625 257.648438 L 272.375 257.648438 C 273.273438 257.648438 271.570312 257.460938 271.355469 257.410156 C 269.980469 257.058594 268.652344 256.578125 267.371094 255.964844 C 263.078125 253.992188 258.933594 251.75 254.933594 249.234375 C 246.28125 244.007812 237.972656 238.210938 229.742188 232.347656 C 220.320312 225.679688 210.980469 219.175781 202.371094 211.472656 C 197.402344 207.023438 192.753906 202.117188 187.5 197.992188 C 185.445312 196.375 183.363281 194.800781 181.359375 193.113281 C 179.992188 192.121094 178.730469 191.007812 177.574219 189.773438 C 177.640625 189.308594 177.636719 188.839844 177.566406 188.375 C 177.496094 187.910156 177.355469 187.464844 177.152344 187.039062 C 176.949219 186.613281 176.6875 186.226562 176.367188 185.878906 C 176.046875 185.53125 175.683594 185.238281 175.277344 185 C 177.609375 182.78125 179.921875 180.539062 182.128906 178.203125 C 186.703125 173.425781 191.234375 168.597656 195.769531 163.78125 C 196.144531 164.367188 196.632812 164.835938 197.234375 165.191406 C 214.203125 175.542969 227.675781 190.597656 242.324219 203.820312 C 258.007812 217.804688 274.957031 230.035156 293.171875 240.515625 C 293.464844 240.707031 293.78125 240.855469 294.117188 240.957031 C 294.457031 241.058594 294.800781 241.113281 295.152344 241.113281 C 295.503906 241.113281 295.847656 241.058594 296.1875 240.957031 C 296.523438 240.855469 296.839844 240.707031 297.132812 240.515625 C 299.425781 241.414062 302.320312 240.617188 302.707031 237.484375 C 303.660156 229.695312 318.699219 228.128906 324.628906 227.210938 C 329.597656 226.46875 334.789062 225.628906 339.78125 226.226562 C 346.59375 227.085938 352.632812 230.910156 358.277344 234.496094 C 358.683594 234.761719 359.125 234.9375 359.605469 235.019531 C 366.875 241.457031 366.089844 251.128906 364.863281 260.671875 Z M 364.847656 260.671875"/></g></svg>
assets/img/support.svg ADDED
@@ -0,0 +1 @@
 
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="375" viewBox="0 0 375 375" height="375" version="1.0"><defs><clipPath id="a"><path d="M 15.9375 72 L 359.4375 72 L 359.4375 374.976562 L 15.9375 374.976562 Z M 15.9375 72"/></clipPath></defs><path fill="#F58021" d="M 96.050781 142.246094 C 96.050781 142.246094 86.746094 114.714844 81.078125 107.597656 C 81.078125 107.597656 93.480469 12.273438 164.683594 8.972656 C 235.890625 5.671875 245.800781 23.640625 245.800781 23.640625 C 245.800781 23.640625 287.273438 57.738281 289.476562 83.765625 C 291.679688 109.796875 291.289062 112.730469 291.289062 112.730469 L 251.675781 119.539062 L 120.273438 157.824219 L 96.050781 142.246094"/><path fill="#FCEEA9" d="M 118.417969 184.246094 L 96.050781 160.394531 L 119.570312 146.246094 L 138.992188 184.246094 L 119.746094 195.042969 L 118.417969 184.246094"/><g clip-path="url(#a)"><path fill="#040606" d="M 267.621094 361.90625 L 346.132812 361.90625 C 342.488281 305.988281 303.460938 261.433594 256.8125 261.433594 L 237.128906 261.433594 C 236.332031 261.433594 235.535156 261.320312 234.742188 260.980469 C 234.398438 260.867188 234.171875 260.640625 233.828125 260.410156 C 233.488281 260.296875 233.148438 260.070312 232.804688 259.839844 C 232.691406 259.730469 232.691406 259.617188 232.578125 259.617188 C 232.578125 259.5 232.460938 259.5 232.460938 259.390625 C 225.863281 253.363281 220.515625 244.382812 216.53125 232.566406 C 216.078125 232.789062 215.625 232.90625 215.167969 233.019531 C 213.464844 233.589844 211.871094 234.273438 210.164062 234.722656 C 209.253906 234.953125 208.453125 235.179688 207.546875 235.40625 C 205.953125 235.746094 204.472656 236.203125 202.878906 236.429688 C 201.855469 236.65625 200.714844 236.769531 199.691406 236.996094 C 198.214844 237.222656 196.734375 237.453125 195.257812 237.566406 C 193.894531 237.679688 192.523438 237.679688 191.046875 237.792969 C 189.910156 237.792969 188.886719 237.90625 187.75 237.90625 C 187.519531 237.90625 187.292969 237.90625 187.0625 237.90625 C 183.992188 237.90625 181.035156 237.679688 178.078125 237.222656 C 176.9375 237.109375 175.800781 236.996094 174.664062 236.769531 C 172.273438 236.429688 169.882812 235.972656 167.609375 235.292969 C 165.445312 234.839844 163.511719 234.15625 161.460938 233.472656 C 160.667969 233.132812 159.753906 232.90625 158.847656 232.566406 C 154.980469 244.382812 149.632812 253.363281 143.03125 259.390625 C 142.917969 259.5 142.917969 259.5 142.800781 259.617188 C 142.6875 259.617188 142.6875 259.730469 142.578125 259.839844 C 142.347656 260.070312 142.121094 260.070312 141.777344 260.296875 C 141.4375 260.523438 140.984375 260.867188 140.640625 260.980469 C 140.1875 261.207031 139.734375 261.207031 139.164062 261.320312 C 138.933594 261.320312 138.59375 261.433594 138.253906 261.433594 L 118.566406 261.433594 C 71.917969 261.433594 33.003906 305.988281 29.25 361.90625 L 107.871094 361.90625 L 107.871094 335.3125 C 107.871094 331.671875 110.832031 328.71875 114.355469 328.71875 C 118 328.71875 120.957031 331.671875 120.957031 335.3125 L 120.957031 361.90625 L 254.535156 361.90625 L 254.535156 335.3125 C 254.535156 331.671875 257.378906 328.71875 261.023438 328.71875 C 264.664062 328.71875 267.621094 331.671875 267.621094 335.3125 Z M 359.445312 368.386719 C 359.445312 370.089844 358.761719 371.792969 357.625 373.042969 C 356.371094 374.296875 354.664062 374.976562 352.957031 374.976562 L 22.535156 374.976562 C 20.71875 374.976562 19.125 374.296875 17.871094 373.042969 C 16.617188 371.792969 15.9375 370.089844 15.9375 368.386719 C 16.960938 302.234375 63.042969 248.363281 118.566406 248.363281 L 135.410156 248.363281 C 140.070312 243.589844 143.941406 236.316406 146.902344 226.769531 C 133.585938 219.039062 122.550781 207.445312 115.382812 193.011719 C 113.902344 189.714844 115.15625 185.851562 118.457031 184.261719 C 120.5 183.238281 122.78125 183.464844 124.710938 184.488281 C 125.738281 185.167969 126.648438 186.082031 127.214844 187.21875 C 133.816406 200.855469 144.625 211.3125 157.59375 217.789062 C 159.753906 218.8125 161.917969 219.722656 164.078125 220.515625 C 164.648438 220.746094 165.105469 220.972656 165.671875 221.085938 C 167.609375 221.765625 169.539062 222.335938 171.476562 222.792969 C 172.386719 223.019531 173.410156 223.246094 174.433594 223.472656 C 176.140625 223.8125 177.734375 224.152344 179.441406 224.382812 C 181.261719 224.496094 182.96875 224.609375 184.789062 224.722656 C 190.816406 224.949219 196.960938 224.496094 202.878906 223.128906 C 203.109375 223.128906 203.222656 223.019531 203.449219 223.019531 C 205.722656 222.449219 208.003906 221.765625 210.164062 220.972656 C 210.503906 220.859375 210.730469 220.746094 210.957031 220.746094 C 213.121094 219.835938 215.394531 218.925781 217.558594 217.902344 C 239.746094 206.878906 255.105469 184.035156 255.105469 157.550781 L 255.105469 93.335938 C 241.566406 102.65625 225.066406 105.042969 207.773438 107.542969 C 180.917969 111.40625 153.042969 115.382812 128.808594 145.273438 C 127.441406 146.867188 125.625 147.664062 123.6875 147.664062 C 122.210938 147.664062 120.730469 147.207031 119.59375 146.300781 C 118 145.050781 117.089844 143.117188 117.089844 141.183594 C 117.089844 139.707031 117.542969 138.230469 118.566406 137.09375 C 146.101562 103.109375 177.964844 98.5625 205.953125 94.585938 C 226.773438 91.628906 244.753906 89.015625 256.585938 74.46875 C 256.699219 74.355469 256.8125 74.355469 256.925781 74.238281 C 257.15625 73.902344 257.496094 73.671875 257.949219 73.445312 C 258.292969 73.105469 258.519531 72.878906 258.863281 72.765625 C 259.199219 72.535156 259.65625 72.535156 260 72.421875 C 260.457031 72.308594 260.910156 72.195312 261.363281 72.082031 C 261.476562 72.082031 261.589844 72.082031 261.707031 72.082031 C 261.929688 72.082031 262.273438 72.195312 262.5 72.195312 C 262.957031 72.308594 263.410156 72.308594 263.867188 72.535156 C 264.324219 72.648438 264.664062 72.878906 265.003906 73.105469 C 265.347656 73.332031 265.574219 73.332031 265.800781 73.558594 C 265.917969 73.558594 265.917969 73.671875 266.027344 73.785156 C 266.371094 74.128906 266.597656 74.46875 266.824219 74.808594 C 267.167969 75.148438 267.390625 75.492188 267.507812 75.832031 C 267.734375 76.171875 267.734375 76.515625 267.847656 76.96875 C 267.960938 77.421875 268.078125 77.765625 268.191406 78.21875 C 268.191406 78.332031 268.191406 78.449219 268.191406 78.5625 L 268.191406 157.550781 C 268.191406 186.988281 252.261719 212.675781 228.59375 226.769531 C 231.554688 236.316406 235.308594 243.589844 239.972656 248.363281 L 256.8125 248.363281 C 312.453125 248.363281 358.417969 302.234375 359.445312 368.386719"/></g><path fill="#A2E0EC" d="M 346.132812 361.90625 L 267.621094 361.90625 L 267.621094 335.3125 C 267.621094 331.671875 264.664062 328.71875 261.023438 328.71875 C 257.378906 328.71875 254.535156 331.671875 254.535156 335.3125 L 254.535156 361.90625 L 120.957031 361.90625 L 120.957031 335.3125 C 120.957031 331.671875 118 328.71875 114.355469 328.71875 C 110.832031 328.71875 107.871094 331.671875 107.871094 335.3125 L 107.871094 361.90625 L 29.25 361.90625 C 33.003906 305.988281 71.917969 261.433594 118.566406 261.433594 L 138.253906 261.433594 C 138.59375 261.433594 138.933594 261.320312 139.164062 261.320312 C 139.734375 261.207031 140.1875 261.207031 140.640625 260.980469 C 140.984375 260.867188 141.4375 260.523438 141.777344 260.296875 C 142.121094 260.070312 142.347656 260.070312 142.578125 259.839844 C 142.6875 259.730469 142.6875 259.617188 142.800781 259.617188 C 142.917969 259.5 142.917969 259.5 143.03125 259.390625 C 149.632812 253.363281 154.980469 244.382812 158.847656 232.566406 C 159.753906 232.90625 160.667969 233.132812 161.460938 233.472656 C 163.511719 234.15625 165.445312 234.839844 167.609375 235.292969 C 169.882812 235.972656 172.273438 236.429688 174.664062 236.769531 C 175.800781 236.996094 176.9375 237.109375 178.078125 237.222656 C 181.035156 237.679688 183.992188 237.90625 187.0625 237.90625 C 187.292969 237.90625 187.519531 237.90625 187.75 237.90625 C 188.886719 237.90625 189.910156 237.792969 191.046875 237.792969 C 192.523438 237.679688 193.894531 237.679688 195.257812 237.566406 C 196.734375 237.453125 198.214844 237.222656 199.691406 236.996094 C 200.714844 236.769531 201.855469 236.65625 202.878906 236.429688 C 204.472656 236.203125 205.953125 235.746094 207.546875 235.40625 C 208.453125 235.179688 209.253906 234.953125 210.164062 234.722656 C 211.871094 234.273438 213.464844 233.589844 215.167969 233.019531 C 215.625 232.90625 216.078125 232.789062 216.53125 232.566406 C 220.515625 244.382812 225.863281 253.363281 232.460938 259.390625 C 232.460938 259.5 232.578125 259.5 232.578125 259.617188 C 232.691406 259.617188 232.691406 259.730469 232.804688 259.839844 C 233.148438 260.070312 233.488281 260.296875 233.828125 260.410156 C 234.171875 260.640625 234.398438 260.867188 234.742188 260.980469 C 235.535156 261.320312 236.332031 261.433594 237.128906 261.433594 L 256.8125 261.433594 C 303.460938 261.433594 342.488281 305.988281 346.132812 361.90625"/><path fill="#040606" d="M 87.960938 171.304688 L 87.960938 126.410156 C 87.960938 122.65625 84.886719 119.589844 81.132812 119.589844 C 77.265625 119.589844 74.195312 122.65625 74.195312 126.410156 L 74.195312 171.304688 C 74.195312 175.054688 77.265625 178.121094 81.132812 178.121094 C 84.886719 178.121094 87.960938 175.054688 87.960938 171.304688 Z M 197.417969 188.464844 L 197.417969 187.667969 C 197.417969 185.851562 195.824219 184.261719 194.003906 184.261719 L 181.375 184.261719 C 179.554688 184.261719 178.078125 185.851562 178.078125 187.667969 L 178.078125 188.464844 C 178.078125 190.285156 179.554688 191.761719 181.375 191.761719 L 194.003906 191.761719 C 195.824219 191.761719 197.417969 190.285156 197.417969 188.464844 Z M 301.300781 171.304688 L 301.300781 126.410156 C 301.300781 122.65625 298.117188 119.589844 294.359375 119.589844 C 290.605469 119.589844 287.417969 122.65625 287.417969 126.410156 L 287.417969 171.304688 C 287.417969 175.054688 290.605469 178.121094 294.359375 178.121094 C 298.117188 178.121094 301.300781 175.054688 301.300781 171.304688 Z M 314.269531 126.410156 L 314.269531 171.304688 C 314.269531 182.214844 305.398438 191.195312 294.359375 191.195312 C 283.324219 191.195312 274.445312 182.214844 274.445312 171.304688 L 274.445312 126.410156 C 274.445312 117.773438 279.910156 110.496094 287.53125 107.769531 C 284.800781 55.03125 241.109375 12.980469 187.75 12.980469 C 134.269531 12.980469 90.691406 55.03125 87.847656 107.769531 C 95.472656 110.496094 101.046875 117.773438 101.046875 126.410156 L 101.046875 150.503906 C 109.007812 156.300781 136.089844 175.054688 166.472656 180.851562 C 169.085938 175.28125 174.777344 171.304688 181.375 171.304688 L 194.003906 171.304688 C 203.109375 171.304688 210.503906 178.578125 210.503906 187.667969 L 210.503906 188.464844 C 210.503906 197.445312 203.109375 204.832031 194.003906 204.832031 L 181.375 204.832031 C 174.320312 204.832031 168.289062 200.289062 166.015625 194.035156 C 151.5625 191.535156 138.023438 186.417969 126.417969 180.851562 C 115.949219 175.851562 107.417969 170.621094 101.046875 166.414062 L 101.046875 171.304688 C 101.046875 182.214844 92.054688 191.195312 81.132812 191.195312 C 70.097656 191.195312 61.109375 182.214844 61.109375 171.304688 L 61.109375 126.410156 C 61.109375 117.660156 66.910156 110.269531 74.875 107.542969 C 77.71875 47.757812 127.101562 0.0234375 187.75 0.0234375 C 248.277344 0.0234375 297.773438 47.757812 300.617188 107.542969 C 308.585938 110.269531 314.269531 117.660156 314.269531 126.410156"/><path fill="#59B7C0" d="M 301.300781 126.410156 L 301.300781 171.304688 C 301.300781 175.054688 298.117188 178.121094 294.359375 178.121094 C 290.605469 178.121094 287.417969 175.054688 287.417969 171.304688 L 287.417969 126.410156 C 287.417969 122.65625 290.605469 119.589844 294.359375 119.589844 C 298.117188 119.589844 301.300781 122.65625 301.300781 126.410156"/><path fill="#FCEEA9" d="M 255.105469 93.335938 L 255.105469 157.550781 C 255.105469 184.035156 239.746094 206.878906 217.558594 217.902344 C 215.394531 218.925781 213.121094 219.835938 210.957031 220.746094 C 210.730469 220.746094 210.503906 220.859375 210.164062 220.972656 C 208.003906 221.765625 205.722656 222.449219 203.449219 223.019531 C 203.222656 223.019531 203.109375 223.128906 202.878906 223.128906 C 196.960938 224.496094 190.816406 224.949219 184.789062 224.722656 C 182.96875 224.609375 181.261719 224.496094 179.441406 224.382812 C 177.734375 224.152344 176.140625 223.8125 174.433594 223.472656 C 173.410156 223.246094 172.386719 223.019531 171.476562 222.792969 C 169.539062 222.335938 167.609375 221.765625 165.671875 221.085938 C 165.105469 220.972656 164.648438 220.746094 164.078125 220.515625 C 161.917969 219.722656 159.753906 218.8125 157.59375 217.789062 C 144.625 211.3125 133.816406 200.855469 127.214844 187.21875 C 126.648438 186.082031 125.738281 185.167969 124.710938 184.488281 L 126.417969 180.851562 C 138.023438 186.417969 151.5625 191.535156 166.015625 194.035156 C 168.289062 200.289062 174.320312 204.832031 181.375 204.832031 L 194.003906 204.832031 C 203.109375 204.832031 210.503906 197.445312 210.503906 188.464844 L 210.503906 187.667969 C 210.503906 178.578125 203.109375 171.304688 194.003906 171.304688 L 181.375 171.304688 C 174.777344 171.304688 169.085938 175.28125 166.472656 180.851562 C 136.089844 175.054688 109.007812 156.300781 101.046875 150.503906 L 101.046875 141.183594 L 117.089844 141.183594 C 117.089844 143.117188 118 145.050781 119.59375 146.300781 C 120.730469 147.207031 122.210938 147.664062 123.6875 147.664062 C 125.625 147.664062 127.441406 146.867188 128.808594 145.273438 C 153.042969 115.382812 180.917969 111.40625 207.773438 107.542969 C 225.066406 105.042969 241.566406 102.65625 255.105469 93.335938"/><path fill="#59B7C0" d="M 197.417969 187.667969 L 197.417969 188.464844 C 197.417969 190.285156 195.824219 191.761719 194.003906 191.761719 L 181.375 191.761719 C 179.554688 191.761719 178.078125 190.285156 178.078125 188.464844 L 178.078125 187.667969 C 178.078125 185.851562 179.554688 184.261719 181.375 184.261719 L 194.003906 184.261719 C 195.824219 184.261719 197.417969 185.851562 197.417969 187.667969"/><path fill="#59B7C0" d="M 87.960938 126.410156 L 87.960938 171.304688 C 87.960938 175.054688 84.886719 178.121094 81.132812 178.121094 C 77.265625 178.121094 74.195312 175.054688 74.195312 171.304688 L 74.195312 126.410156 C 74.195312 122.65625 77.265625 119.589844 81.132812 119.589844 C 84.886719 119.589844 87.960938 122.65625 87.960938 126.410156"/></svg>
assets/js/admin/help-widget.js CHANGED
@@ -1,26 +1,69 @@
1
  window.zESettings = {
2
- webWidget: {
3
- color: {
4
- theme: '#6772e5'
5
- },
6
- position: { horizontal: 'right', vertical: 'bottom' },
7
- zIndex: 9999999999,
8
- launcher: {
9
- label: {
10
- 'en-US': 'Help'
11
- }
12
- },
13
- contactForm: {
14
- title: {
15
- 'en-US': 'Contact Payment Plugins',
16
- },
17
- fields: [{id: '360024242873', prefill: {'*': 'Stripe'}}]
18
- },
19
- helpCenter: {
20
- suppress: true
21
- }
22
- }
 
 
 
23
  }
24
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
 
26
- window.zEmbed||function(e,t){var n,o,d,i,s,a=[],r=document.createElement("iframe");window.zEmbed=function(){a.push(arguments)},window.zE=window.zE||window.zEmbed,r.src="javascript:false",r.title="",r.role="presentation",(r.frameElement||r).style.cssText="display: none",d=document.getElementsByTagName("script"),d=d[d.length-1],d.parentNode.insertBefore(r,d),i=r.contentWindow,s=i.document;try{o=s}catch(e){n=document.domain,r.src='javascript:var d=document.open();d.domain="'+n+'";void(0);',o=s}o.open()._l=function(){var o=this.createElement("script");n&&(this.domain=n),o.id="js-iframe-async",o.src=e,this.t=+new Date,this.zendeskHost=t,this.zEQueue=a,this.body.appendChild(o)},o.write('<body onload="document._l();">'),o.close()}("https://assets.zendesk.com/embeddable_framework/main.js","paymentplugins.zendesk.com");
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  window.zESettings = {
2
+ webWidget: {
3
+ color: {
4
+ theme: '#6772e5'
5
+ },
6
+ position: {horizontal: 'right', vertical: 'bottom'},
7
+ zIndex: 9999999999,
8
+ launcher: {
9
+ label: {
10
+ 'en-US': 'Contact Us'
11
+ }
12
+ },
13
+ contactForm: {
14
+ title: {
15
+ 'en-US': 'Contact Payment Plugins',
16
+ },
17
+ fields: [
18
+ {id: '360024242873', prefill: {'*': 'Stripe'}},
19
+ {id: '4423709831443', prefill: {'*': JSON.stringify(wcStripeSupportParams.report, null, 2)}}
20
+ ]
21
+ },
22
+ helpCenter: {
23
+ suppress: true
24
+ }
25
+ }
26
  }
27
 
28
+ window.zEmbed || function (e, t) {
29
+ var n, o, d, i, s, a = [], r = document.createElement("iframe");
30
+ window.zEmbed = function () {
31
+ a.push(arguments)
32
+ }, window.zE = window.zE || window.zEmbed, r.src = "javascript:false", r.title = "", r.role = "presentation", (r.frameElement || r).style.cssText = "display: none", d = document.getElementsByTagName("script"), d = d[d.length - 1], d.parentNode.insertBefore(r, d), i = r.contentWindow, s = i.document;
33
+ try {
34
+ o = s
35
+ } catch (e) {
36
+ n = document.domain, r.src = 'javascript:var d=document.open();d.domain="' + n + '";void(0);', o = s
37
+ }
38
+ o.open()._l = function () {
39
+ var o = this.createElement("script");
40
+ n && (this.domain = n), o.id = "js-iframe-async", o.src = e, this.t = +new Date, this.zendeskHost = t, this.zEQueue = a, this.body.appendChild(o)
41
+ }, o.write('<body onload="document._l();">'), o.close()
42
+ }("https://assets.zendesk.com/embeddable_framework/main.js", "paymentplugins.zendesk.com");
43
 
44
+ jQuery(function ($) {
45
+ zE(function () {
46
+ zE.hide();
47
+ });
48
+ zE('webWidget', 'prefill', {
49
+ name: {
50
+ value: wcStripeSupportParams.name
51
+ },
52
+ email: {
53
+ value: wcStripeSupportParams.email
54
+ }
55
+ });
56
+ $(document.body).on('click', '#stripeSupportButton', function (e) {
57
+ e.preventDefault();
58
+ zE("webWidget", "updateSettings", {
59
+ webWidget: {
60
+ offset: {
61
+ horizontal: $('.wc-stripe-support__page').outerWidth() / 2 - (374 / 2) + 'px'
62
+ }
63
+ }
64
+ });
65
+ zE(function () {
66
+ zE.activate();
67
+ });
68
+ })
69
+ });
assets/js/admin/main.js ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function ($) {
2
+ var params = wcStripeSignupParams;
3
+ $(document.body).on('click', '#wc-stripe-signup', function (e) {
4
+ e.preventDefault();
5
+ submitSigupData($(e.currentTarget));
6
+ }).on('click', '.wc-stripe-notice .dismiss', removeNotice);
7
+
8
+ function getLoaderHtml() {
9
+ return '<div class="wc-stripe-loader">' +
10
+ '<div></div>' +
11
+ '<div></div>' +
12
+ '<div></div>' +
13
+ '</div>';
14
+ }
15
+
16
+ function removeLoader(el) {
17
+ $(el).find('.wc-stripe-loader').remove();
18
+ }
19
+
20
+ function addSuccessNotice(msg) {
21
+ addNotice('<span class="dashicons dashicons-yes"></span><div>' + msg + '</div>', 'success');
22
+ }
23
+
24
+ function addErrorNotice(msg, className) {
25
+ addNotice('<span class="dashicons dashicons-info"></span><div>' + msg + '</div>', 'error');
26
+ }
27
+
28
+ function addNotice(msg, className) {
29
+ $(document.body).append('<div class="wc-stripe-notice ' + className + '">' + msg + '<div class="dismiss"><span class="dashicons dashicons-dismiss"></span></div></div>');
30
+ setTimeout(removeNotice.bind(null, {
31
+ currentTarget: $('.wc-stripe-notice').last()[0]
32
+ }), 5000);
33
+ }
34
+
35
+ function removeNotice(e) {
36
+ $(e.currentTarget).closest('.wc-stripe-notice').remove();
37
+ }
38
+
39
+ function submitSigupData(el) {
40
+ el.prop('disabled', true).prepend(getLoaderHtml());
41
+ var data = el.closest('form').serialize();
42
+ $.ajax({
43
+ url: params.routes.signup,
44
+ dataType: 'json',
45
+ method: 'POST',
46
+ data: data
47
+ }).done(function (response) {
48
+ el.prop('disabled', false);
49
+ removeLoader(el);
50
+ if (response.code) {
51
+ addErrorNotice(response.message);
52
+ } else {
53
+ addSuccessNotice(response.message);
54
+ $('.wc-stripe-signup-container').remove();
55
+ }
56
+ }).fail(function (xhr, textStatus, errorThrown) {
57
+ el.prop('disabled', false);
58
+ removeLoader(el);
59
+ if (xhr.hasOwnProperty('responseJSON')) {
60
+ addErrorNotice(xhr.responseJSON.message);
61
+ } else {
62
+ addErrorNotice(errorThrown);
63
+ }
64
+ });
65
+ }
66
+
67
+ }(jQuery));
assets/js/frontend/afterpay.js CHANGED
@@ -46,24 +46,28 @@
46
  }
47
 
48
  AfterpayProduct.prototype.mount_message = function (update) {
49
- if (update && this.msgElement) {
50
- this.msgElement.update({
51
- amount: this.get_product_price(true),
52
- currency: this.get_currency(),
53
- isEligible: this.is_eligible(this.get_product_price())
54
- })
55
- }
56
- var $el = $('#wc-stripe-afterpay-product-msg');
57
- if (!$el.length) {
58
- if ($('.summary .price').length) {
59
- $('.summary .price').append('<div id="wc-stripe-afterpay-product-msg"></div>');
60
- } else {
61
- if ($('.price').length) {
62
- $($('.price')[0]).append('<div id="wc-stripe-afterpay-product-msg"></div>');
 
 
 
63
  }
64
  }
 
65
  }
66
- this.msgElement.mount('#wc-stripe-afterpay-product-msg');
67
  }
68
 
69
  /**
46
  }
47
 
48
  AfterpayProduct.prototype.mount_message = function (update) {
49
+ if (this.msgElement) {
50
+ if (update) {
51
+ this.msgElement.update({
52
+ amount: this.get_product_price(true),
53
+ currency: this.get_currency(),
54
+ isEligible: this.is_eligible(this.get_product_price())
55
+ })
56
+ }
57
+ ;
58
+ var $el = $('#wc-stripe-afterpay-product-msg');
59
+ if (!$el.length) {
60
+ if ($('.summary .price').length) {
61
+ $('.summary .price').append('<div id="wc-stripe-afterpay-product-msg"></div>');
62
+ } else {
63
+ if ($('.price').length) {
64
+ $($('.price')[0]).append('<div id="wc-stripe-afterpay-product-msg"></div>');
65
+ }
66
  }
67
  }
68
+ this.msgElement.mount('#wc-stripe-afterpay-product-msg');
69
  }
70
+
71
  }
72
 
73
  /**
assets/js/frontend/afterpay.min.js CHANGED
@@ -1 +1 @@
1
- !function(r,e){function t(){}function i(t){e.BaseGateway.call(this,t),e.ProductGateway.call(this),r(document.body).on("change",'[name="quantity"]',this.mount_message.bind(this,!0))}function a(t){e.BaseGateway.call(this,t),e.CartGateway.call(this)}t.prototype.is_currency_supported=function(){return-1<this.params.currencies.indexOf(this.get_currency())},(i.prototype=r.extend({},e.BaseGateway.prototype,e.ProductGateway.prototype,t.prototype,e.Afterpay.prototype)).initialize=function(){!this.msgElement&&this.is_currency_supported()&&(this.create_element(),this.mount_message(),this.add_eligibility("#wc-stripe-afterpay-product-msg",this.get_product_price()))},i.prototype.get_product_price=function(t){var e=(e=r('[name="quantity"]').val())||0;return t?this.get_product_data().price*Math.pow(10,2)*parseInt(e):this.get_product_data().price*parseInt(e)},i.prototype.create_element=function(){this.msgElement=this.elements.create("afterpayClearpayMessage",r.extend({},this.params.msg_options,{amount:this.get_product_price(!0),currency:this.get_currency()}))},i.prototype.mount_message=function(t){t&&this.msgElement&&this.msgElement.update({amount:this.get_product_price(!0),currency:this.get_currency(),isEligible:this.is_eligible(this.get_product_price())}),r("#wc-stripe-afterpay-product-msg").length||(r(".summary .price").length?r(".summary .price").append('<div id="wc-stripe-afterpay-product-msg"></div>'):r(".price").length&&r(r(".price")[0]).append('<div id="wc-stripe-afterpay-product-msg"></div>')),this.msgElement.mount("#wc-stripe-afterpay-product-msg")},(a.prototype=r.extend({},e.BaseGateway.prototype,e.CartGateway.prototype,t.prototype,e.Afterpay.prototype)).initialize=function(){!this.msgElement&&r(this.container).length&&this.is_currency_supported()&&(this.create_element(),this.mount_message(),this.add_eligibility("#wc-stripe-afterpay-cart-container",this.get_total_price()))},a.prototype.create_element=function(){this.msgElement=this.elements.create("afterpayClearpayMessage",r.extend({},this.params.msg_options,{amount:this.get_total_price_cents(),currency:this.get_currency()}))},a.prototype.mount_message=function(t){t&&this.msgElement&&this.msgElement.update({amount:this.get_total_price_cents(),currency:this.get_currency(),isEligible:this.is_eligible(parseFloat(this.get_total_price()))}),r("#wc-stripe-afterpay-cart-container").length||r(".cart_totals table.shop_table > tbody").append('<tr id="wc-stripe-afterpay-cart-container"><td colspan="2"><div id="wc-stripe-afterpay-cart-msg"></div></td></tr>'),this.msgElement.mount("#wc-stripe-afterpay-cart-msg")},a.prototype.updated_html=function(){r(this.container).length&&this.is_currency_supported()&&(this.mount_message(!0),this.add_eligibility("#wc-stripe-afterpay-cart-container",this.get_total_price()))},"undefined"!=typeof wc_stripe_afterpay_product_params?new i(wc_stripe_afterpay_product_params):"undefined"!=typeof wc_stripe_afterpay_cart_params&&new a(wc_stripe_afterpay_cart_params)}(jQuery,window.wc_stripe);
1
+ !function(r,e){function t(){}function i(t){e.BaseGateway.call(this,t),e.ProductGateway.call(this),r(document.body).on("change",'[name="quantity"]',this.mount_message.bind(this,!0))}function a(t){e.BaseGateway.call(this,t),e.CartGateway.call(this)}t.prototype.is_currency_supported=function(){return-1<this.params.currencies.indexOf(this.get_currency())},(i.prototype=r.extend({},e.BaseGateway.prototype,e.ProductGateway.prototype,t.prototype,e.Afterpay.prototype)).initialize=function(){!this.msgElement&&this.is_currency_supported()&&(this.create_element(),this.mount_message(),this.add_eligibility("#wc-stripe-afterpay-product-msg",this.get_product_price()))},i.prototype.get_product_price=function(t){var e=(e=r('[name="quantity"]').val())||0;return t?this.get_product_data().price*Math.pow(10,2)*parseInt(e):this.get_product_data().price*parseInt(e)},i.prototype.create_element=function(){this.msgElement=this.elements.create("afterpayClearpayMessage",r.extend({},this.params.msg_options,{amount:this.get_product_price(!0),currency:this.get_currency()}))},i.prototype.mount_message=function(t){this.msgElement&&(t&&this.msgElement.update({amount:this.get_product_price(!0),currency:this.get_currency(),isEligible:this.is_eligible(this.get_product_price())}),r("#wc-stripe-afterpay-product-msg").length||(r(".summary .price").length?r(".summary .price").append('<div id="wc-stripe-afterpay-product-msg"></div>'):r(".price").length&&r(r(".price")[0]).append('<div id="wc-stripe-afterpay-product-msg"></div>')),this.msgElement.mount("#wc-stripe-afterpay-product-msg"))},(a.prototype=r.extend({},e.BaseGateway.prototype,e.CartGateway.prototype,t.prototype,e.Afterpay.prototype)).initialize=function(){!this.msgElement&&r(this.container).length&&this.is_currency_supported()&&(this.create_element(),this.mount_message(),this.add_eligibility("#wc-stripe-afterpay-cart-container",this.get_total_price()))},a.prototype.create_element=function(){this.msgElement=this.elements.create("afterpayClearpayMessage",r.extend({},this.params.msg_options,{amount:this.get_total_price_cents(),currency:this.get_currency()}))},a.prototype.mount_message=function(t){t&&this.msgElement&&this.msgElement.update({amount:this.get_total_price_cents(),currency:this.get_currency(),isEligible:this.is_eligible(parseFloat(this.get_total_price()))}),r("#wc-stripe-afterpay-cart-container").length||r(".cart_totals table.shop_table > tbody").append('<tr id="wc-stripe-afterpay-cart-container"><td colspan="2"><div id="wc-stripe-afterpay-cart-msg"></div></td></tr>'),this.msgElement.mount("#wc-stripe-afterpay-cart-msg")},a.prototype.updated_html=function(){r(this.container).length&&this.is_currency_supported()&&(this.mount_message(!0),this.add_eligibility("#wc-stripe-afterpay-cart-container",this.get_total_price()))},"undefined"!=typeof wc_stripe_afterpay_product_params?new i(wc_stripe_afterpay_product_params):"undefined"!=typeof wc_stripe_afterpay_cart_params&&new a(wc_stripe_afterpay_cart_params)}(jQuery,window.wc_stripe);
assets/js/frontend/applepay-checkout.js CHANGED
@@ -28,7 +28,7 @@
28
  $button.addClass('banner-checkout');
29
  $button.on('click', this.start.bind(this));
30
  $(this.banner_container).empty().append($button);
31
- $(this.banner_container).show().parent().parent().addClass('active');
32
  }
33
  }.bind(this))
34
  }
28
  $button.addClass('banner-checkout');
29
  $button.on('click', this.start.bind(this));
30
  $(this.banner_container).empty().append($button);
31
+ $(this.banner_container).show().addClass('active').closest('.wc-stripe-banner-checkout').addClass('active');
32
  }
33
  }.bind(this))
34
  }
assets/js/frontend/applepay-checkout.min.js CHANGED
@@ -1 +1 @@
1
- !function(e,i){function t(){i.BaseGateway.call(this,wc_stripe_applepay_checkout_params)}(t.prototype=e.extend({},i.BaseGateway.prototype,i.CheckoutGateway.prototype,i.ApplePay.prototype)).initialize=function(){i.CheckoutGateway.call(this),e("form.checkout").on("change",".form-row:not(.address-field) .input-text",this.update_payment_request.bind(this)),e(this.container).length&&i.ApplePay.prototype.initialize.call(this)},t.prototype.canMakePayment=function(){i.ApplePay.prototype.canMakePayment.apply(this,arguments).then(function(){var t;this.banner_enabled()&&((t=e(this.params.button)).addClass("banner-checkout"),t.on("click",this.start.bind(this)),e(this.banner_container).empty().append(t),e(this.banner_container).show().parent().parent().addClass("active"))}.bind(this))},t.prototype.append_button=function(){e("#place_order").after(this.$button),this.trigger_payment_method_selected()},t.prototype.updated_checkout=function(){e(this.container).length&&i.ApplePay.prototype.initialize.call(this)},t.prototype.start=function(t){e(t.target).is(".banner-checkout")&&(this.set_payment_method(this.gateway_id),this.set_use_new_option(!0),e('[name="terms"]').prop("checked",!0)),i.ApplePay.prototype.start.apply(this,arguments)},t.prototype.on_token_received=function(){i.CheckoutGateway.prototype.on_token_received.apply(this,arguments),this.payment_request_options.requestShipping&&this.maybe_set_ship_to_different(),this.fields.toFormFields({update_shipping_method:!1}),this.checkout_fields_valid()&&this.get_form().submit()},t.prototype.update_payment_request=function(){e(this.container).length&&i.ApplePay.prototype.initialize.call(this)},new t}(jQuery,window.wc_stripe);
1
+ !function(e,i){function t(){i.BaseGateway.call(this,wc_stripe_applepay_checkout_params)}(t.prototype=e.extend({},i.BaseGateway.prototype,i.CheckoutGateway.prototype,i.ApplePay.prototype)).initialize=function(){i.CheckoutGateway.call(this),e("form.checkout").on("change",".form-row:not(.address-field) .input-text",this.update_payment_request.bind(this)),e(this.container).length&&i.ApplePay.prototype.initialize.call(this)},t.prototype.canMakePayment=function(){i.ApplePay.prototype.canMakePayment.apply(this,arguments).then(function(){var t;this.banner_enabled()&&((t=e(this.params.button)).addClass("banner-checkout"),t.on("click",this.start.bind(this)),e(this.banner_container).empty().append(t),e(this.banner_container).show().addClass("active").closest(".wc-stripe-banner-checkout").addClass("active"))}.bind(this))},t.prototype.append_button=function(){e("#place_order").after(this.$button),this.trigger_payment_method_selected()},t.prototype.updated_checkout=function(){e(this.container).length&&i.ApplePay.prototype.initialize.call(this)},t.prototype.start=function(t){e(t.target).is(".banner-checkout")&&(this.set_payment_method(this.gateway_id),this.set_use_new_option(!0),e('[name="terms"]').prop("checked",!0)),i.ApplePay.prototype.start.apply(this,arguments)},t.prototype.on_token_received=function(){i.CheckoutGateway.prototype.on_token_received.apply(this,arguments),this.payment_request_options.requestShipping&&this.maybe_set_ship_to_different(),this.fields.toFormFields({update_shipping_method:!1}),this.checkout_fields_valid()&&this.get_form().submit()},t.prototype.update_payment_request=function(){e(this.container).length&&i.ApplePay.prototype.initialize.call(this)},new t}(jQuery,window.wc_stripe);
assets/js/frontend/applepay-product.js CHANGED
@@ -64,7 +64,7 @@
64
  this.disable_payment_button();
65
  this.old_qty = this.get_quantity();
66
  var variation = this.get_product_data().variation;
67
- if (!this.is_variable_product() || this.variable_product_selected()) {
68
  this.cart_calculation(variation.variation_id).then(function () {
69
  if (this.is_variable_product()) {
70
  this.createPaymentRequest();
@@ -78,6 +78,13 @@
78
  }
79
  }
80
 
 
 
 
 
 
 
 
81
  new ApplePay();
82
 
83
  }(jQuery, wc_stripe))
64
  this.disable_payment_button();
65
  this.old_qty = this.get_quantity();
66
  var variation = this.get_product_data().variation;
67
+ if (!this.processing_calculation && (!this.is_variable_product() || this.variable_product_selected())) {
68
  this.cart_calculation(variation.variation_id).then(function () {
69
  if (this.is_variable_product()) {
70
  this.createPaymentRequest();
78
  }
79
  }
80
 
81
+ ApplePay.prototype.found_variation = function (e) {
82
+ wc_stripe.ProductGateway.prototype.found_variation.apply(this, arguments);
83
+ if (this.can_pay) {
84
+ this.add_to_cart();
85
+ }
86
+ }
87
+
88
  new ApplePay();
89
 
90
  }(jQuery, wc_stripe))
assets/js/frontend/applepay-product.min.js CHANGED
@@ -1 +1 @@
1
- !function(t,a){function i(){a.BaseGateway.call(this,wc_stripe_applepay_product_params),this.old_qty=this.get_quantity()}(i.prototype=t.extend({},a.BaseGateway.prototype,a.ProductGateway.prototype,a.ApplePay.prototype)).initialize=function(){t(".wc_stripe_product_payment_methods "+this.container).length?(this.container=".wc_stripe_product_payment_methods "+this.container,a.ProductGateway.call(this),a.ApplePay.prototype.initialize.call(this)):setTimeout(this.initialize.bind(this),1e3)},i.prototype.canMakePayment=function(){a.ApplePay.prototype.canMakePayment.call(this).then(function(){t(document.body).on("change",'[name="quantity"]',this.add_to_cart.bind(this)),t(this.container).parent().parent().addClass("active"),this.is_variable_product()?this.variable_product_selected()?this.cart_calculation(this.get_product_data().variation.variation_id):this.disable_payment_button():this.cart_calculation()}.bind(this))},i.prototype.start=function(t){0===this.get_quantity()?(t.preventDefault(),this.submit_error(this.params.messages.invalid_amount)):a.ApplePay.prototype.start.apply(this,arguments)},i.prototype.append_button=function(){t("#wc-stripe-applepay-container").append(this.$button)},i.prototype.add_to_cart=function(){this.disable_payment_button(),this.old_qty=this.get_quantity();var t=this.get_product_data().variation;this.is_variable_product()&&!this.variable_product_selected()||this.cart_calculation(t.variation_id).then(function(){this.is_variable_product()?(this.createPaymentRequest(),a.ApplePay.prototype.canMakePayment.apply(this,arguments).then(function(){this.enable_payment_button()}.bind(this))):this.enable_payment_button()}.bind(this))},new i}(jQuery,wc_stripe);
1
+ !function(t,a){function i(){a.BaseGateway.call(this,wc_stripe_applepay_product_params),this.old_qty=this.get_quantity()}(i.prototype=t.extend({},a.BaseGateway.prototype,a.ProductGateway.prototype,a.ApplePay.prototype)).initialize=function(){t(".wc_stripe_product_payment_methods "+this.container).length?(this.container=".wc_stripe_product_payment_methods "+this.container,a.ProductGateway.call(this),a.ApplePay.prototype.initialize.call(this)):setTimeout(this.initialize.bind(this),1e3)},i.prototype.canMakePayment=function(){a.ApplePay.prototype.canMakePayment.call(this).then(function(){t(document.body).on("change",'[name="quantity"]',this.add_to_cart.bind(this)),t(this.container).parent().parent().addClass("active"),this.is_variable_product()?this.variable_product_selected()?this.cart_calculation(this.get_product_data().variation.variation_id):this.disable_payment_button():this.cart_calculation()}.bind(this))},i.prototype.start=function(t){0===this.get_quantity()?(t.preventDefault(),this.submit_error(this.params.messages.invalid_amount)):a.ApplePay.prototype.start.apply(this,arguments)},i.prototype.append_button=function(){t("#wc-stripe-applepay-container").append(this.$button)},i.prototype.add_to_cart=function(){this.disable_payment_button(),this.old_qty=this.get_quantity();var t=this.get_product_data().variation;this.processing_calculation||this.is_variable_product()&&!this.variable_product_selected()||this.cart_calculation(t.variation_id).then(function(){this.is_variable_product()?(this.createPaymentRequest(),a.ApplePay.prototype.canMakePayment.apply(this,arguments).then(function(){this.enable_payment_button()}.bind(this))):this.enable_payment_button()}.bind(this))},i.prototype.found_variation=function(t){a.ProductGateway.prototype.found_variation.apply(this,arguments),this.can_pay&&this.add_to_cart()},new i}(jQuery,wc_stripe);
assets/js/frontend/credit-card.js CHANGED
@@ -175,6 +175,7 @@
175
  }
176
 
177
  CC.prototype.place_order = function (e) {
 
178
  if (this.is_gateway_selected()) {
179
  if (this.can_create_setup_intent() && !this.is_saved_method_selected() && this.checkout_fields_valid()) {
180
  e.preventDefault();
@@ -315,18 +316,13 @@
315
  return this.params.custom_form === "1";
316
  }
317
 
318
- /**
319
- * [get_postal_code description]
320
- * @return {[type]} [description]
321
- */
322
  CC.prototype.get_postal_code = function () {
323
  if (this.is_custom_form()) {
324
  if ($('#stripe-postal-code').length > 0) {
325
  return $('#stripe-postal-code').val();
326
  }
327
- return this.fields.get('billing_postcode', null);
328
  }
329
- return this.fields.get('billing_postcode', null);
330
  }
331
 
332
  CC.prototype.card_number_change = function (data) {
@@ -416,6 +412,14 @@
416
  }
417
  }
418
 
 
 
 
 
 
 
 
 
419
  new CC();
420
 
421
  }(jQuery, window.wc_stripe))
175
  }
176
 
177
  CC.prototype.place_order = function (e) {
178
+ this.fields.syncCheckoutFieldsWithDOM();
179
  if (this.is_gateway_selected()) {
180
  if (this.can_create_setup_intent() && !this.is_saved_method_selected() && this.checkout_fields_valid()) {
181
  e.preventDefault();
316
  return this.params.custom_form === "1";
317
  }
318
 
 
 
 
 
319
  CC.prototype.get_postal_code = function () {
320
  if (this.is_custom_form()) {
321
  if ($('#stripe-postal-code').length > 0) {
322
  return $('#stripe-postal-code').val();
323
  }
 
324
  }
325
+ return this.fields.get(this.get_billing_prefix() + '_postcode', null);
326
  }
327
 
328
  CC.prototype.card_number_change = function (data) {
412
  }
413
  }
414
 
415
+ CC.prototype.checkout_fields_valid = function () {
416
+ var valid = this.is_valid_checkout();
417
+ if (!valid) {
418
+ this.submit_error(this.params.messages.terms);
419
+ }
420
+ return valid;
421
+ }
422
+
423
  new CC();
424
 
425
  }(jQuery, window.wc_stripe))
assets/js/frontend/credit-card.min.js CHANGED
@@ -1 +1 @@
1
- !function(r,e){function t(){e.BaseGateway.call(this,wc_stripe_credit_card_params),e.CheckoutGateway.call(this),this.message_container=this.params.notice_selector,window.addEventListener("hashchange",this.hashchange.bind(this)),(e.credit_card=this).confirmedSetupIntent=!1,this.has3DSecureParams(),this.handle_create_account_change()}var i={focus:"focused",empty:"empty",invalid:"invalid"};(t.prototype=r.extend({},e.BaseGateway.prototype,e.CheckoutGateway.prototype)).mappings={cardNumber:"#stripe-card-number",cardExpiry:"#stripe-exp",cardCvc:"#stripe-cvv"},t.prototype.initialize=function(){r(document.body).on("click","#place_order",this.place_order.bind(this)),r(document.body).on("change","#createaccount",this.handle_create_account_change.bind(this)),this.setup_card(),this.can_create_setup_intent()&&this.create_setup_intent()},t.prototype.setup_card=function(){var e;this.is_custom_form()?(e=r.extend(!0,{classes:i},this.params.cardOptions),["cardNumber","cardExpiry","cardCvc"].forEach(function(t){this[t]=this.elements.create(t,r.extend(!0,{},e,this.params.customFieldOptions[t]))}.bind(this)),this.cardNumber.on("change",this.card_number_change.bind(this)),this.cardNumber.on("change",this.on_input_change.bind(this)),this.cardExpiry.on("change",this.on_input_change.bind(this)),this.cardCvc.on("change",this.on_input_change.bind(this)),this.fields.required("billing_postcode")&&""!==this.fields.get("billing_postcode")&&0<r("#stripe-postal-code").length&&(r("#stripe-postal-code").val(this.fields.get("billing_postcode")),this.validate_postal_field()),r(document.body).on("change","#billing_postcode",function(t){var e=r("#billing_postcode").val();r("#stripe-postal-code").val(e).trigger("keyup")}.bind(this))):(this.card=this.elements.create("card",r.extend(!0,{},{value:{postalCode:this.fields.get("billing_postcode","")},hidePostalCode:this.fields.required("billing_postcode"),iconStyle:"default"},this.params.cardOptions)),r(document.body).on("change","#billing_postcode",function(t){this.card&&this.card.update({value:r("#billing_postcode").val()})}.bind(this))),setInterval(this.create_card_element.bind(this),2e3)},t.prototype.validate_postal_field=function(){var t,e;r("#billing_postcode").length&&r("#stripe-postal-code").length?this.params.postal_regex[this.fields.get("billing_country")]?(e=this.params.postal_regex[this.fields.get("billing_country")],t=r("#stripe-postal-code").val(),e=new RegExp(e,"i"),""!==t?null!==e.exec(t)?r("#stripe-postal-code").addClass("StripeElement--complete").removeClass("invalid"):r("#stripe-postal-code").removeClass("StripeElement--complete").addClass("invalid"):r("#stripe-postal-code").removeClass("StripeElement--complete").removeClass("invalid")):0!=r("#stripe-postal-code").val()?r("#stripe-postal-code").addClass("StripeElement--complete"):r("#stripe-postal-code").removeClass("StripeElement--complete"):r("#stripe-postal-code").length&&(""!=r("#stripe-postal-code").val()?r("#stripe-postal-code").addClass("StripeElement--complete"):r("#stripe-postal-code").removeClass("StripeElement--complete"))},t.prototype.create_card_element=function(){this.is_custom_form()?r("#wc-stripe-cc-custom-form").length&&0==r("#wc-stripe-cc-custom-form").find("iframe").length&&(r(this.mappings.cardNumber).length&&(this.cardNumber.mount(this.mappings.cardNumber),r(this.mappings.cardNumber).prepend(this.params.html.card_brand)),r(this.mappings.cardExpiry).length&&this.cardExpiry.mount(this.mappings.cardExpiry),r(this.mappings.cardCvc).length&&this.cardCvc.mount(this.mappings.cardCvc),r("#stripe-postal-code").length&&(r("#stripe-postal-code, .postalCode").on("focus",function(t){r("#stripe-postal-code").addClass("focused")}.bind(this)),r("#stripe-postal-code, .postalCode").on("blur",function(t){r("#stripe-postal-code").removeClass("focused").trigger("keyup")}.bind(this)),r("#stripe-postal-code").on("keyup",function(t){0==r("#stripe-postal-code").val()?r("#stripe-postal-code").addClass("empty"):r("#stripe-postal-code").removeClass("empty")}.bind(this)),r("#stripe-postal-code").on("change",this.validate_postal_field.bind(this)),r("#stripe-postal-code").trigger("change"))):r("#wc-stripe-card-element").length&&0==r("#wc-stripe-card-element").find("iframe").length&&(this.card.unmount(),this.card.mount("#wc-stripe-card-element"),this.card.update({value:{postalCode:this.fields.get("billing_postcode","")},hidePostalCode:this.fields.required("billing_postcode")})),r(this.container).outerWidth(!0)<450?r(this.container).addClass("stripe-small-container"):r(this.container).removeClass("stripe-small-container")},t.prototype.place_order=function(t){if(this.is_gateway_selected())if(this.can_create_setup_intent()&&!this.is_saved_method_selected()&&this.checkout_fields_valid()){if(t.preventDefault(),this.confirmedSetupIntent)return this.on_setup_intent_received(this.confirmedSetupIntent);this.stripe.confirmCardSetup(this.client_secret,{payment_method:{card:this.is_custom_form()?this.cardNumber:this.card,billing_details:function(){return this.is_current_page("checkout")?this.get_billing_details():r.extend({},this.is_custom_form()?{address:{postal_code:r("#stripe-postal-code").val()}}:{})}.bind(this)()}}).then(function(t){t.error?this.submit_card_error(t.error):(this.confirmedSetupIntent=t.setupIntent,this.on_setup_intent_received(t.setupIntent))}.bind(this))}else this.payment_token_received||this.is_saved_method_selected()||(t.preventDefault(),this.checkout_fields_valid()&&this.stripe.createPaymentMethod({type:"card",card:this.is_custom_form()?this.cardNumber:this.card,billing_details:this.get_billing_details()}).then(function(t){if(t.error)return this.submit_card_error(t.error);this.on_token_received(t.paymentMethod)}.bind(this)))},t.prototype.checkout_place_order=function(){return this.is_saved_method_selected()||this.payment_token_received?e.CheckoutGateway.prototype.checkout_place_order.apply(this,arguments):(this.place_order.apply(this,arguments),!1)},t.prototype.create_setup_intent=function(){return new Promise(function(e,t){r.when(r.ajax({method:"POST",dataType:"json",data:{payment_method:this.gateway_id},url:this.params.routes.setup_intent,beforeSend:this.ajax_before_send.bind(this)})).done(function(t){t.code?this.submit_card_error(t.message):this.client_secret=t.intent.client_secret,e(t)}.bind(this)).fail(function(t,e,i){this.submit_card_error(i)}.bind(this))}.bind(this))},t.prototype.on_token_received=function(t){this.payment_token_received=!0,this.set_nonce(t.id),this.get_form().submit()},t.prototype.on_setup_intent_received=function(t){this.payment_token_received=!0,this.set_nonce(t.payment_method),this.set_intent(t.id),this.get_form().submit()},t.prototype.updated_checkout=function(){this.create_card_element(),this.handle_create_account_change(),this.can_create_setup_intent()&&!this.client_secret&&this.create_setup_intent()},t.prototype.update_checkout=function(){this.clear_card_elements()},t.prototype.show_payment_button=function(){e.CheckoutGateway.prototype.show_place_order.apply(this,arguments)},t.prototype.hide_place_order=function(){},t.prototype.is_custom_form=function(){return"1"===this.params.custom_form},t.prototype.get_postal_code=function(){return this.is_custom_form()&&0<r("#stripe-postal-code").length?r("#stripe-postal-code").val():this.fields.get("billing_postcode",null)},t.prototype.card_number_change=function(t){"unknown"===t.brand?r("#wc-stripe-card").removeClass("active"):r("#wc-stripe-card").addClass("active"),r("#wc-stripe-card").attr("src",this.params.cards[t.brand])},t.prototype.on_input_change=function(t){if(t.complete){var e=r("#wc-stripe-cc-custom-form").find(".StripeElement, #stripe-postal-code"),i=[];e.each(function(t,e){i.push("#"+r(e).attr("id"))}.bind(this));var t=this.mappings[t.elementType],s=i.indexOf(t);if("undefined"!=typeof i[s+1])if("#stripe-postal-code"===i[s+1])document.getElementById("stripe-postal-code").focus();else for(var o in this.mappings)this.mappings[o]===i[s+1]&&this[o].focus()}},t.prototype.clear_card_elements=function(){for(var t=["cardNumber","cardExpiry","cardCvc"],e=0;e<t.length;e++)this[t[e]]&&this[t[e]].clear()},t.prototype.checkout_error=function(){this.is_gateway_selected()&&(this.payment_token_received=!1),e.CheckoutGateway.prototype.checkout_error.call(this)},t.prototype.get_billing_details=function(){var t=e.BaseGateway.prototype.get_billing_details.call(this);return t.address.postal_code=this.get_postal_code(),t},t.prototype.can_create_setup_intent=function(){return this.is_add_payment_method_page()||this.is_change_payment_method()||this.is_current_page("checkout")&&this.cart_contains_subscription()&&this.get_gateway_data()&&0==this.get_total_price_cents()||this.is_current_page(["checkout","product"])&&"undefined"!=typeof wc_stripe_preorder_exists||this.is_current_page("order_pay")&&"pre_order"in this.get_gateway_data()&&!0===this.get_gateway_data().pre_order||this.is_current_page("product")&&0==this.get_total_price_cents()},t.prototype.handle_create_account_change=function(){r("#createaccount").length&&(r("#createaccount").is(":checked")?r(".wc-stripe-save-source").show():r(".wc-stripe-save-source").hide())},t.prototype.submit_card_error=function(t){"bcf"===this.params.notice_location&&(r(".wc-stripe-card-notice").remove(),r(".wc-stripe_cc-new-method-container").append('<div class="wc-stripe-card-notice"></div>')),e.BaseGateway.prototype.submit_error.call(this,t,!0)},t.prototype.container_styles=function(){e.CheckoutGateway.prototype.container_styles.apply(this,arguments),this.is_custom_form()&&r(this.container).find(".payment_box").addClass("custom-form__"+this.params.custom_form_name)},new t}(jQuery,window.wc_stripe);
1
+ !function(r,e){function t(){e.BaseGateway.call(this,wc_stripe_credit_card_params),e.CheckoutGateway.call(this),this.message_container=this.params.notice_selector,window.addEventListener("hashchange",this.hashchange.bind(this)),(e.credit_card=this).confirmedSetupIntent=!1,this.has3DSecureParams(),this.handle_create_account_change()}var i={focus:"focused",empty:"empty",invalid:"invalid"};(t.prototype=r.extend({},e.BaseGateway.prototype,e.CheckoutGateway.prototype)).mappings={cardNumber:"#stripe-card-number",cardExpiry:"#stripe-exp",cardCvc:"#stripe-cvv"},t.prototype.initialize=function(){r(document.body).on("click","#place_order",this.place_order.bind(this)),r(document.body).on("change","#createaccount",this.handle_create_account_change.bind(this)),this.setup_card(),this.can_create_setup_intent()&&this.create_setup_intent()},t.prototype.setup_card=function(){var e;this.is_custom_form()?(e=r.extend(!0,{classes:i},this.params.cardOptions),["cardNumber","cardExpiry","cardCvc"].forEach(function(t){this[t]=this.elements.create(t,r.extend(!0,{},e,this.params.customFieldOptions[t]))}.bind(this)),this.cardNumber.on("change",this.card_number_change.bind(this)),this.cardNumber.on("change",this.on_input_change.bind(this)),this.cardExpiry.on("change",this.on_input_change.bind(this)),this.cardCvc.on("change",this.on_input_change.bind(this)),this.fields.required("billing_postcode")&&""!==this.fields.get("billing_postcode")&&0<r("#stripe-postal-code").length&&(r("#stripe-postal-code").val(this.fields.get("billing_postcode")),this.validate_postal_field()),r(document.body).on("change","#billing_postcode",function(t){var e=r("#billing_postcode").val();r("#stripe-postal-code").val(e).trigger("keyup")}.bind(this))):(this.card=this.elements.create("card",r.extend(!0,{},{value:{postalCode:this.fields.get("billing_postcode","")},hidePostalCode:this.fields.required("billing_postcode"),iconStyle:"default"},this.params.cardOptions)),r(document.body).on("change","#billing_postcode",function(t){this.card&&this.card.update({value:r("#billing_postcode").val()})}.bind(this))),setInterval(this.create_card_element.bind(this),2e3)},t.prototype.validate_postal_field=function(){var t,e;r("#billing_postcode").length&&r("#stripe-postal-code").length?this.params.postal_regex[this.fields.get("billing_country")]?(e=this.params.postal_regex[this.fields.get("billing_country")],t=r("#stripe-postal-code").val(),e=new RegExp(e,"i"),""!==t?null!==e.exec(t)?r("#stripe-postal-code").addClass("StripeElement--complete").removeClass("invalid"):r("#stripe-postal-code").removeClass("StripeElement--complete").addClass("invalid"):r("#stripe-postal-code").removeClass("StripeElement--complete").removeClass("invalid")):0!=r("#stripe-postal-code").val()?r("#stripe-postal-code").addClass("StripeElement--complete"):r("#stripe-postal-code").removeClass("StripeElement--complete"):r("#stripe-postal-code").length&&(""!=r("#stripe-postal-code").val()?r("#stripe-postal-code").addClass("StripeElement--complete"):r("#stripe-postal-code").removeClass("StripeElement--complete"))},t.prototype.create_card_element=function(){this.is_custom_form()?r("#wc-stripe-cc-custom-form").length&&0==r("#wc-stripe-cc-custom-form").find("iframe").length&&(r(this.mappings.cardNumber).length&&(this.cardNumber.mount(this.mappings.cardNumber),r(this.mappings.cardNumber).prepend(this.params.html.card_brand)),r(this.mappings.cardExpiry).length&&this.cardExpiry.mount(this.mappings.cardExpiry),r(this.mappings.cardCvc).length&&this.cardCvc.mount(this.mappings.cardCvc),r("#stripe-postal-code").length&&(r("#stripe-postal-code, .postalCode").on("focus",function(t){r("#stripe-postal-code").addClass("focused")}.bind(this)),r("#stripe-postal-code, .postalCode").on("blur",function(t){r("#stripe-postal-code").removeClass("focused").trigger("keyup")}.bind(this)),r("#stripe-postal-code").on("keyup",function(t){0==r("#stripe-postal-code").val()?r("#stripe-postal-code").addClass("empty"):r("#stripe-postal-code").removeClass("empty")}.bind(this)),r("#stripe-postal-code").on("change",this.validate_postal_field.bind(this)),r("#stripe-postal-code").trigger("change"))):r("#wc-stripe-card-element").length&&0==r("#wc-stripe-card-element").find("iframe").length&&(this.card.unmount(),this.card.mount("#wc-stripe-card-element"),this.card.update({value:{postalCode:this.fields.get("billing_postcode","")},hidePostalCode:this.fields.required("billing_postcode")})),r(this.container).outerWidth(!0)<450?r(this.container).addClass("stripe-small-container"):r(this.container).removeClass("stripe-small-container")},t.prototype.place_order=function(t){if(this.fields.syncCheckoutFieldsWithDOM(),this.is_gateway_selected())if(this.can_create_setup_intent()&&!this.is_saved_method_selected()&&this.checkout_fields_valid()){if(t.preventDefault(),this.confirmedSetupIntent)return this.on_setup_intent_received(this.confirmedSetupIntent);this.stripe.confirmCardSetup(this.client_secret,{payment_method:{card:this.is_custom_form()?this.cardNumber:this.card,billing_details:function(){return this.is_current_page("checkout")?this.get_billing_details():r.extend({},this.is_custom_form()?{address:{postal_code:r("#stripe-postal-code").val()}}:{})}.bind(this)()}}).then(function(t){t.error?this.submit_card_error(t.error):(this.confirmedSetupIntent=t.setupIntent,this.on_setup_intent_received(t.setupIntent))}.bind(this))}else this.payment_token_received||this.is_saved_method_selected()||(t.preventDefault(),this.checkout_fields_valid()&&this.stripe.createPaymentMethod({type:"card",card:this.is_custom_form()?this.cardNumber:this.card,billing_details:this.get_billing_details()}).then(function(t){if(t.error)return this.submit_card_error(t.error);this.on_token_received(t.paymentMethod)}.bind(this)))},t.prototype.checkout_place_order=function(){return this.is_saved_method_selected()||this.payment_token_received?e.CheckoutGateway.prototype.checkout_place_order.apply(this,arguments):(this.place_order.apply(this,arguments),!1)},t.prototype.create_setup_intent=function(){return new Promise(function(e,t){r.when(r.ajax({method:"POST",dataType:"json",data:{payment_method:this.gateway_id},url:this.params.routes.setup_intent,beforeSend:this.ajax_before_send.bind(this)})).done(function(t){t.code?this.submit_card_error(t.message):this.client_secret=t.intent.client_secret,e(t)}.bind(this)).fail(function(t,e,i){this.submit_card_error(i)}.bind(this))}.bind(this))},t.prototype.on_token_received=function(t){this.payment_token_received=!0,this.set_nonce(t.id),this.get_form().submit()},t.prototype.on_setup_intent_received=function(t){this.payment_token_received=!0,this.set_nonce(t.payment_method),this.set_intent(t.id),this.get_form().submit()},t.prototype.updated_checkout=function(){this.create_card_element(),this.handle_create_account_change(),this.can_create_setup_intent()&&!this.client_secret&&this.create_setup_intent()},t.prototype.update_checkout=function(){this.clear_card_elements()},t.prototype.show_payment_button=function(){e.CheckoutGateway.prototype.show_place_order.apply(this,arguments)},t.prototype.hide_place_order=function(){},t.prototype.is_custom_form=function(){return"1"===this.params.custom_form},t.prototype.get_postal_code=function(){return this.is_custom_form()&&0<r("#stripe-postal-code").length?r("#stripe-postal-code").val():this.fields.get(this.get_billing_prefix()+"_postcode",null)},t.prototype.card_number_change=function(t){"unknown"===t.brand?r("#wc-stripe-card").removeClass("active"):r("#wc-stripe-card").addClass("active"),r("#wc-stripe-card").attr("src",this.params.cards[t.brand])},t.prototype.on_input_change=function(t){if(t.complete){var e=r("#wc-stripe-cc-custom-form").find(".StripeElement, #stripe-postal-code"),i=[];e.each(function(t,e){i.push("#"+r(e).attr("id"))}.bind(this));var t=this.mappings[t.elementType],s=i.indexOf(t);if("undefined"!=typeof i[s+1])if("#stripe-postal-code"===i[s+1])document.getElementById("stripe-postal-code").focus();else for(var o in this.mappings)this.mappings[o]===i[s+1]&&this[o].focus()}},t.prototype.clear_card_elements=function(){for(var t=["cardNumber","cardExpiry","cardCvc"],e=0;e<t.length;e++)this[t[e]]&&this[t[e]].clear()},t.prototype.checkout_error=function(){this.is_gateway_selected()&&(this.payment_token_received=!1),e.CheckoutGateway.prototype.checkout_error.call(this)},t.prototype.get_billing_details=function(){var t=e.BaseGateway.prototype.get_billing_details.call(this);return t.address.postal_code=this.get_postal_code(),t},t.prototype.can_create_setup_intent=function(){return this.is_add_payment_method_page()||this.is_change_payment_method()||this.is_current_page("checkout")&&this.cart_contains_subscription()&&this.get_gateway_data()&&0==this.get_total_price_cents()||this.is_current_page(["checkout","product"])&&"undefined"!=typeof wc_stripe_preorder_exists||this.is_current_page("order_pay")&&"pre_order"in this.get_gateway_data()&&!0===this.get_gateway_data().pre_order||this.is_current_page("product")&&0==this.get_total_price_cents()},t.prototype.handle_create_account_change=function(){r("#createaccount").length&&(r("#createaccount").is(":checked")?r(".wc-stripe-save-source").show():r(".wc-stripe-save-source").hide())},t.prototype.submit_card_error=function(t){"bcf"===this.params.notice_location&&(r(".wc-stripe-card-notice").remove(),r(".wc-stripe_cc-new-method-container").append('<div class="wc-stripe-card-notice"></div>')),e.BaseGateway.prototype.submit_error.call(this,t,!0)},t.prototype.container_styles=function(){e.CheckoutGateway.prototype.container_styles.apply(this,arguments),this.is_custom_form()&&r(this.container).find(".payment_box").addClass("custom-form__"+this.params.custom_form_name)},t.prototype.checkout_fields_valid=function(){var t=this.is_valid_checkout();return t||this.submit_error(this.params.messages.terms),t},new t}(jQuery,window.wc_stripe);
assets/js/frontend/googlepay-checkout.js CHANGED
@@ -34,7 +34,7 @@
34
  buttonColor: this.params.button_color,
35
  buttonType: this.params.button_style
36
  }));
37
- $(this.banner_container).show().parent().parent().addClass('active');
38
  $(this.banner_container).empty().append($button);
39
  }
40
  }.bind(this))
34
  buttonColor: this.params.button_color,
35
  buttonType: this.params.button_style
36
  }));
37
+ $(this.banner_container).show().addClass('active').closest('.wc-stripe-banner-checkout').addClass('active');
38
  $(this.banner_container).empty().append($button);
39
  }
40
  }.bind(this))
assets/js/frontend/googlepay-checkout.min.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){function i(){this.can_pay=!1,t.BaseGateway.call(this,wc_stripe_googlepay_checkout_params),t.CheckoutGateway.call(this),window.addEventListener("hashchange",this.hashchange.bind(this)),this.has3DSecureParams()}(i.prototype=e.extend({},t.BaseGateway.prototype,t.CheckoutGateway.prototype,t.GooglePay.prototype)).initialize=function(){e(this.container).length&&(this.createPaymentsClient(),this.isReadyToPay().then(function(){var t;e(this.container).show(),this.banner_enabled()&&(t=e(this.paymentsClient.createButton({onClick:this.banner_checkout.bind(this),buttonColor:this.params.button_color,buttonType:this.params.button_style})),e(this.banner_container).show().parent().parent().addClass("active"),e(this.banner_container).empty().append(t))}.bind(this)))},i.prototype.create_button=function(){t.GooglePay.prototype.create_button.apply(this,arguments),e("#place_order").after(this.$button),this.trigger_payment_method_selected()},i.prototype.updated_checkout=function(){this.initialize()},i.prototype.banner_checkout=function(){this.set_payment_method(this.gateway_id),this.set_use_new_option(!0),e('[name="terms"]').prop("checked",!0),t.GooglePay.prototype.start.apply(this,arguments)},i.prototype.on_token_received=function(){t.CheckoutGateway.prototype.on_token_received.apply(this,arguments),this.payment_request_options.shippingAddressRequired&&this.maybe_set_ship_to_different(),this.fields.toFormFields({update_shipping_method:!1}),this.checkout_fields_valid()&&this.get_form().submit()},i.prototype.payment_data_updated=function(t){this.populate_billing_fields(t.address),this.fields.toFormFields({update_shipping_method:!1})},new i}(jQuery,window.wc_stripe);
1
+ !function(e,t){function i(){this.can_pay=!1,t.BaseGateway.call(this,wc_stripe_googlepay_checkout_params),t.CheckoutGateway.call(this),window.addEventListener("hashchange",this.hashchange.bind(this)),this.has3DSecureParams()}(i.prototype=e.extend({},t.BaseGateway.prototype,t.CheckoutGateway.prototype,t.GooglePay.prototype)).initialize=function(){e(this.container).length&&(this.createPaymentsClient(),this.isReadyToPay().then(function(){var t;e(this.container).show(),this.banner_enabled()&&(t=e(this.paymentsClient.createButton({onClick:this.banner_checkout.bind(this),buttonColor:this.params.button_color,buttonType:this.params.button_style})),e(this.banner_container).show().addClass("active").closest(".wc-stripe-banner-checkout").addClass("active"),e(this.banner_container).empty().append(t))}.bind(this)))},i.prototype.create_button=function(){t.GooglePay.prototype.create_button.apply(this,arguments),e("#place_order").after(this.$button),this.trigger_payment_method_selected()},i.prototype.updated_checkout=function(){this.initialize()},i.prototype.banner_checkout=function(){this.set_payment_method(this.gateway_id),this.set_use_new_option(!0),e('[name="terms"]').prop("checked",!0),t.GooglePay.prototype.start.apply(this,arguments)},i.prototype.on_token_received=function(){t.CheckoutGateway.prototype.on_token_received.apply(this,arguments),this.payment_request_options.shippingAddressRequired&&this.maybe_set_ship_to_different(),this.fields.toFormFields({update_shipping_method:!1}),this.checkout_fields_valid()&&this.get_form().submit()},i.prototype.payment_data_updated=function(t){this.populate_billing_fields(t.address),this.fields.toFormFields({update_shipping_method:!1})},new i}(jQuery,window.wc_stripe);
assets/js/frontend/local-payment.js CHANGED
@@ -92,6 +92,14 @@
92
  }
93
  }
94
 
 
 
 
 
 
 
 
 
95
  LocalPayment.prototype.process_order_pay = function (e) {
96
  if (this.is_gateway_selected()) {
97
  e.preventDefault();
92
  }
93
  }
94
 
95
+ LocalPayment.prototype.checkout_place_order = function (e) {
96
+ if (!this.is_saved_method_selected() && !this.payment_token_received) {
97
+ this.place_order.apply(this, arguments);
98
+ return false;
99
+ }
100
+ return wc_stripe.CheckoutGateway.prototype.checkout_place_order.apply(this, arguments);
101
+ }
102
+
103
  LocalPayment.prototype.process_order_pay = function (e) {
104
  if (this.is_gateway_selected()) {
105
  e.preventDefault();
assets/js/frontend/local-payment.min.js CHANGED
@@ -1 +1 @@
1
- !function(o,i){function e(t){i.BaseGateway.call(this,t),i.CheckoutGateway.call(this),o(document.body).on("click","#place_order",this.place_order.bind(this)),this.is_current_page("order_pay")&&o("#order_review").on("submit",this.process_order_pay.bind(this)),this.maybe_hide_gateway()}function t(t){this.elementType="idealBank",this.confirmation_method="confirmIdealPayment",e.call(this,t),window.addEventListener("hashchange",this.hashChange.bind(this))}function n(t){this.elementType="p24Bank",this.confirmation_method="confirmP24Payment",e.call(this,t),window.addEventListener("hashchange",this.hashChange.bind(this))}function a(t){this.elementType="iban",e.call(this,t)}function r(t){this.confirmation_method="confirmKlarnaPayment",e.call(this,t),window.addEventListener("hashchange",this.hashChange.bind(this))}function s(t){this.elementType="fpxBank",this.confirmation_method="confirmFpxPayment",e.call(this,t),window.addEventListener("hashchange",this.hashChange.bind(this))}function h(t){e.call(this,t),window.addEventListener("hashchange",this.hashChange.bind(this))}function p(t){this.elementType="auBankAccount",this.confirmation_method="confirmAuBecsDebitPayment",e.call(this,t),window.addEventListener("hashchange",this.hashChange.bind(this))}function c(t){this.confirmation_method="confirmGrabPayPayment",e.call(this,t),window.addEventListener("hashchange",this.hashChange.bind(this))}function _(t){this.confirmation_method="confirmAfterpayClearpayPayment",e.call(this,t),window.addEventListener("hashchange",this.hashChange.bind(this))}function d(t){this.confirmation_method="confirmBoletoPayment",e.call(this,t),window.addEventListener("hashchange",this.hashChange.bind(this))}function l(t){this.confirmation_method="confirmOxxoPayment",e.call(this,t),window.addEventListener("hashchange",this.hashChange.bind(this))}(e.prototype=o.extend({},i.BaseGateway.prototype,i.CheckoutGateway.prototype)).initialize=function(){this.mount_button()},e.prototype.elementType=null,e.prototype.is_active=function(){return o("#wc_stripe_local_payment_"+this.gateway_id).data("active")},e.prototype.maybe_hide_gateway=function(){this.is_active()?o(this.container).show():(o(this.container).hide(),this.is_gateway_selected()&&o('li[class*="payment_method_stripe_"]').filter(":visible").eq(0).find('[name="payment_method"]').prop("checked",!0).trigger("click"))},e.prototype.createSource=function(){return new Promise(function(e,t){var i=function(t){t.error?this.submit_error(t.error):(this.payment_token_received=!0,this.set_nonce(t.source.id),this.get_form().submit()),e()}.bind(this);if(null!=this.elementType)if(this.confirmation_method)if(this.confirmation_obj)this.processConfirmation(this.confirmation_obj);else{if(!this.isValidElement())return this.submit_error({code:"empty_element_"+this.params.local_payment_type,message:wc_stripe_messages.empty_element});this.payment_token_received=!0,this.get_form().submit()}else this.stripe.createSource(this.element,this.getSourceArgs()).then(i)["catch"](function(t){this.submit_error(t.message)}.bind(this));else this.payment_token_received=!0,this.get_form().submit()}.bind(this))},e.prototype.place_order=function(t){this.is_gateway_selected()&&(this.payment_token_received||this.is_saved_method_selected()||(t.preventDefault(),this.createSource()))},e.prototype.process_order_pay=function(t){var e;this.is_gateway_selected()&&(t.preventDefault(),(e=this.get_form().serializeArray()).push({name:"_wpnonce",value:this.params.rest_nonce}),e.push({name:"order_id",value:this.params.order_id}),t=window.location.search,this.params.routes.order_pay.match(/\?/)&&(t="&"+t.substr(1)),o.ajax({url:this.params.routes.order_pay+t,method:"POST",dataType:"json",data:o.param(e)}).done(function(t){t.success?window.location.href=t.redirect:this.submit_error(t.message)}.bind(this)).fail(function(t,e,i){this.submit_error(i)}.bind(this)))},e.prototype.show_payment_button=function(){this.show_place_order()},e.prototype.hide_place_order=function(){},e.prototype.show_place_order=function(){i.CheckoutGateway.prototype.show_place_order.apply(this,arguments),this.payment_token_received&&o("#place_order").text(o("#place_order").data("value"))},e.prototype.getSourceArgs=function(){return{type:this.params.local_payment_type,amount:this.get_total_price_cents(),currency:this.get_currency(),owner:{name:this.get_customer_name(this.get_billing_prefix()),email:this.fields.get("billing_email",null)},redirect:{return_url:this.params.return_url}}},e.prototype.updated_checkout=function(){this.mount_button(),this.maybe_hide_gateway()},e.prototype.mount_button=function(){var t="#wc_stripe_local_payment_"+this.gateway_id;o(t).length&&null!=this.elementType&&(o(t).empty(),this.element||(this.element=this.elements.create(this.elementType,this.params.element_params),this.element.on("change",this.handleElementChange.bind(this))),this.elementEmpty=!0,this.element.mount(t))},e.prototype.handleElementChange=function(t){this.elementEmpty=t.empty},e.prototype.load_external_script=function(t){var e=document.createElement("script");e.type="text/javascript",e.src=t,e.onload=function(){this.script_loaded=!0}.bind(this),document.body.appendChild(e)},e.prototype.hashChange=function(t){var e;!this.is_gateway_selected()||(e=window.location.hash.match(/response=(.*)/))&&(history.pushState({},"",window.location.pathname),e=JSON.parse(window.atob(decodeURIComponent(e[1]))),this.processConfirmation(e))},e.prototype.processConfirmation=function(e){this.stripe[this.confirmation_method](e.client_secret,this.get_confirmation_args(e)).then(function(t){if(t.error)return this.confirmation_obj=e,this.payment_token_received=!1,this.submit_error(t.error.message);window.location.href=decodeURI(e.order_received_url)}.bind(this))},e.prototype.get_confirmation_args=function(t){t={payment_method:{billing_details:this.get_billing_details()},return_url:t.return_url};return this.elementType&&(t.payment_method[this.params.local_payment_type]=this.element),t},e.prototype.isValidElement=function(){return!this.element||!this.elementEmpty},e.prototype.delete_order_source=function(){return new Promise(function(e,t){o.ajax({url:this.params.routes.delete_order_source,method:"DELETE",dataType:"json",beforeSend:this.ajax_before_send.bind(this)}).done(function(t){e(t)}.bind(this)).fail(function(){t()}.bind(this))}.bind(this))},e.prototype.update_source=function(i){return new Promise(function(e,t){this.updateSourceXhr&&this.updateSourceXhr.abort(),this.updateSourceXhr=o.ajax({url:this.params.routes.update_source,method:"POST",dataType:"json",data:{_wpnonce:this.params.rest_nonce,updates:i,source_id:this.source.id,client_secret:this.source.client_secret,payment_method:this.gateway_id}}).done(function(t){e(t.source)}.bind(this)).fail(function(){t()})}.bind(this))},h.prototype.updated_checkout=function(){!this.script_loaded&&o(this.container).length&&this.load_external_script(this.params.qr_script),e.prototype.updated_checkout.apply(this,arguments)},h.prototype.hashChange=function(t){var e;!this.is_gateway_selected()||(e=window.location.hash.match(/qrcode=(.*)/))&&(history.pushState({},"",window.location.pathname),this.qrcode=JSON.parse(window.atob(decodeURIComponent(e[1]))),this.get_form().unblock().removeClass("processing").addClass("wechat"),new QRCode("wc_stripe_local_payment_stripe_wechat",{text:this.qrcode.code,width:parseInt(this.params.qr_size),height:parseInt(this.params.qr_size),colorDark:"#424770",colorLight:"#f8fbfd",correctLevel:QRCode.CorrectLevel.H}),o("#wc_stripe_local_payment_stripe_wechat").append('<p class="qrcode-message">'+this.params.qr_message+"</p>"),this.payment_token_received=!0,this.show_place_order())},h.prototype.place_order=function(t){this.qrcode&&this.payment_token_received?(t.preventDefault(),window.location=this.qrcode.redirect):e.prototype.place_order.apply(this,arguments)},a.prototype.getSourceArgs=function(){var t=o.extend({},e.prototype.getSourceArgs.apply(this,arguments),{mandate:{notification_method:"email",interval:this.cart_contains_subscription()||this.is_change_payment_method()?"scheduled":"one_time"}});return"scheduled"===t.mandate.interval&&delete t.amount,t},_.prototype.is_currency_supported=function(){return-1<this.params.currencies.indexOf(this.get_currency())},_.prototype.updated_checkout=function(){this.maybe_hide_gateway(),this.has_gateway_data()&&this.is_currency_supported()&&(this.add_eligibility(this.container,parseFloat(this.get_total_price())),this.elements=this.stripe.elements(this.get_element_options()),this.initialize_messaging())},_.prototype.initialize=function(){this.has_gateway_data()&&this.is_currency_supported()&&(this.add_eligibility(this.container,parseFloat(this.get_total_price())),this.initialize_messaging())},_.prototype.initialize_messaging=function(){this.msgElement=this.elements.create("afterpayClearpayMessage",o.extend({},this.params.msg_options,{amount:this.get_total_price_cents(),currency:this.get_currency()})),this.mount_message()},_.prototype.mount_message=function(t){t&&this.msgElement.update({amount:this.get_total_price_cents(),currency:this.get_currency()}),o('label[for="payment_method_stripe_afterpay"]').find("#wc-stripe-afterpay-msg").length||o('label[for="payment_method_stripe_afterpay"]').append('<div id="wc-stripe-afterpay-msg"></div>'),this.msgElement.mount("#wc-stripe-afterpay-msg")},_.prototype.add_eligibility=function(t,e){i.Afterpay.prototype.add_eligibility.apply(this,arguments),this.is_eligible(e)||o(this.container).find(".wc-stripe-afterpay__offsite").addClass("afterpay-ineligible")},d.prototype.get_confirmation_args=function(t){t=e.prototype.get_confirmation_args.call(this,t);return t.payment_method.boleto={tax_id:this.get_tax_id()},t},d.prototype.createSource=function(){var t=this.get_tax_id();if(!t||!t.match(/^(\w{3}\.){2}\w{3}-\w{2}$|^(\w{11}|\w{14})$|^\w{2}\.\w{3}\.\w{3}\/\w{4}-\w{2}$/))return this.submit_error({code:"incomplete_boleto_tax_id"});this.payment_token_received=!0,this.get_form().submit()},d.prototype.get_tax_id=function(){return o("#wc_stripe_boleto_tax_id").val()},t.prototype=o.extend({},e.prototype,t.prototype),n.prototype=o.extend({},e.prototype,n.prototype),a.prototype=o.extend({},e.prototype,a.prototype),r.prototype=o.extend({},e.prototype,r.prototype),s.prototype=o.extend({},e.prototype,s.prototype),h.prototype=o.extend({},e.prototype,h.prototype),p.prototype=o.extend({},e.prototype,p.prototype),c.prototype=o.extend({},e.prototype,c.prototype),_.prototype=o.extend({},e.prototype,i.Afterpay.prototype,_.prototype),d.prototype=o.extend({},e.prototype,d.prototype),l.prototype=o.extend({},e.prototype,l.prototype);var m,y={ideal:t,p24:n,sepa_debit:a,klarna:r,fpx:s,wechat:h,au_becs_debit:p,grabpay:c,afterpay_clearpay:_,boleto:d,oxxo:l};for(m in wc_stripe_local_payment_params.gateways){var u=wc_stripe_local_payment_params.gateways[m];new(y[u.local_payment_type]||e)(u)}}(jQuery,window.wc_stripe);
1
+ !function(o,i){function e(t){i.BaseGateway.call(this,t),i.CheckoutGateway.call(this),o(document.body).on("click","#place_order",this.place_order.bind(this)),this.is_current_page("order_pay")&&o("#order_review").on("submit",this.process_order_pay.bind(this)),this.maybe_hide_gateway()}function t(t){this.elementType="idealBank",this.confirmation_method="confirmIdealPayment",e.call(this,t),window.addEventListener("hashchange",this.hashChange.bind(this))}function n(t){this.elementType="p24Bank",this.confirmation_method="confirmP24Payment",e.call(this,t),window.addEventListener("hashchange",this.hashChange.bind(this))}function a(t){this.elementType="iban",e.call(this,t)}function r(t){this.confirmation_method="confirmKlarnaPayment",e.call(this,t),window.addEventListener("hashchange",this.hashChange.bind(this))}function s(t){this.elementType="fpxBank",this.confirmation_method="confirmFpxPayment",e.call(this,t),window.addEventListener("hashchange",this.hashChange.bind(this))}function p(t){e.call(this,t),window.addEventListener("hashchange",this.hashChange.bind(this))}function h(t){this.elementType="auBankAccount",this.confirmation_method="confirmAuBecsDebitPayment",e.call(this,t),window.addEventListener("hashchange",this.hashChange.bind(this))}function c(t){this.confirmation_method="confirmGrabPayPayment",e.call(this,t),window.addEventListener("hashchange",this.hashChange.bind(this))}function _(t){this.confirmation_method="confirmAfterpayClearpayPayment",e.call(this,t),window.addEventListener("hashchange",this.hashChange.bind(this))}function d(t){this.confirmation_method="confirmBoletoPayment",e.call(this,t),window.addEventListener("hashchange",this.hashChange.bind(this))}function l(t){this.confirmation_method="confirmOxxoPayment",e.call(this,t),window.addEventListener("hashchange",this.hashChange.bind(this))}(e.prototype=o.extend({},i.BaseGateway.prototype,i.CheckoutGateway.prototype)).initialize=function(){this.mount_button()},e.prototype.elementType=null,e.prototype.is_active=function(){return o("#wc_stripe_local_payment_"+this.gateway_id).data("active")},e.prototype.maybe_hide_gateway=function(){this.is_active()?o(this.container).show():(o(this.container).hide(),this.is_gateway_selected()&&o('li[class*="payment_method_stripe_"]').filter(":visible").eq(0).find('[name="payment_method"]').prop("checked",!0).trigger("click"))},e.prototype.createSource=function(){return new Promise(function(e,t){var i=function(t){t.error?this.submit_error(t.error):(this.payment_token_received=!0,this.set_nonce(t.source.id),this.get_form().submit()),e()}.bind(this);if(null!=this.elementType)if(this.confirmation_method)if(this.confirmation_obj)this.processConfirmation(this.confirmation_obj);else{if(!this.isValidElement())return this.submit_error({code:"empty_element_"+this.params.local_payment_type,message:wc_stripe_messages.empty_element});this.payment_token_received=!0,this.get_form().submit()}else this.stripe.createSource(this.element,this.getSourceArgs()).then(i)["catch"](function(t){this.submit_error(t.message)}.bind(this));else this.payment_token_received=!0,this.get_form().submit()}.bind(this))},e.prototype.place_order=function(t){this.is_gateway_selected()&&(this.payment_token_received||this.is_saved_method_selected()||(t.preventDefault(),this.createSource()))},e.prototype.checkout_place_order=function(t){return this.is_saved_method_selected()||this.payment_token_received?i.CheckoutGateway.prototype.checkout_place_order.apply(this,arguments):(this.place_order.apply(this,arguments),!1)},e.prototype.process_order_pay=function(t){var e;this.is_gateway_selected()&&(t.preventDefault(),(e=this.get_form().serializeArray()).push({name:"_wpnonce",value:this.params.rest_nonce}),e.push({name:"order_id",value:this.params.order_id}),t=window.location.search,this.params.routes.order_pay.match(/\?/)&&(t="&"+t.substr(1)),o.ajax({url:this.params.routes.order_pay+t,method:"POST",dataType:"json",data:o.param(e)}).done(function(t){t.success?window.location.href=t.redirect:this.submit_error(t.message)}.bind(this)).fail(function(t,e,i){this.submit_error(i)}.bind(this)))},e.prototype.show_payment_button=function(){this.show_place_order()},e.prototype.hide_place_order=function(){},e.prototype.show_place_order=function(){i.CheckoutGateway.prototype.show_place_order.apply(this,arguments),this.payment_token_received&&o("#place_order").text(o("#place_order").data("value"))},e.prototype.getSourceArgs=function(){return{type:this.params.local_payment_type,amount:this.get_total_price_cents(),currency:this.get_currency(),owner:{name:this.get_customer_name(this.get_billing_prefix()),email:this.fields.get("billing_email",null)},redirect:{return_url:this.params.return_url}}},e.prototype.updated_checkout=function(){this.mount_button(),this.maybe_hide_gateway()},e.prototype.mount_button=function(){var t="#wc_stripe_local_payment_"+this.gateway_id;o(t).length&&null!=this.elementType&&(o(t).empty(),this.element||(this.element=this.elements.create(this.elementType,this.params.element_params),this.element.on("change",this.handleElementChange.bind(this))),this.elementEmpty=!0,this.element.mount(t))},e.prototype.handleElementChange=function(t){this.elementEmpty=t.empty},e.prototype.load_external_script=function(t){var e=document.createElement("script");e.type="text/javascript",e.src=t,e.onload=function(){this.script_loaded=!0}.bind(this),document.body.appendChild(e)},e.prototype.hashChange=function(t){var e;!this.is_gateway_selected()||(e=window.location.hash.match(/response=(.*)/))&&(history.pushState({},"",window.location.pathname),e=JSON.parse(window.atob(decodeURIComponent(e[1]))),this.processConfirmation(e))},e.prototype.processConfirmation=function(e){this.stripe[this.confirmation_method](e.client_secret,this.get_confirmation_args(e)).then(function(t){if(t.error)return this.confirmation_obj=e,this.payment_token_received=!1,this.submit_error(t.error.message);window.location.href=decodeURI(e.order_received_url)}.bind(this))},e.prototype.get_confirmation_args=function(t){t={payment_method:{billing_details:this.get_billing_details()},return_url:t.return_url};return this.elementType&&(t.payment_method[this.params.local_payment_type]=this.element),t},e.prototype.isValidElement=function(){return!this.element||!this.elementEmpty},e.prototype.delete_order_source=function(){return new Promise(function(e,t){o.ajax({url:this.params.routes.delete_order_source,method:"DELETE",dataType:"json",beforeSend:this.ajax_before_send.bind(this)}).done(function(t){e(t)}.bind(this)).fail(function(){t()}.bind(this))}.bind(this))},e.prototype.update_source=function(i){return new Promise(function(e,t){this.updateSourceXhr&&this.updateSourceXhr.abort(),this.updateSourceXhr=o.ajax({url:this.params.routes.update_source,method:"POST",dataType:"json",data:{_wpnonce:this.params.rest_nonce,updates:i,source_id:this.source.id,client_secret:this.source.client_secret,payment_method:this.gateway_id}}).done(function(t){e(t.source)}.bind(this)).fail(function(){t()})}.bind(this))},p.prototype.updated_checkout=function(){!this.script_loaded&&o(this.container).length&&this.load_external_script(this.params.qr_script),e.prototype.updated_checkout.apply(this,arguments)},p.prototype.hashChange=function(t){var e;!this.is_gateway_selected()||(e=window.location.hash.match(/qrcode=(.*)/))&&(history.pushState({},"",window.location.pathname),this.qrcode=JSON.parse(window.atob(decodeURIComponent(e[1]))),this.get_form().unblock().removeClass("processing").addClass("wechat"),new QRCode("wc_stripe_local_payment_stripe_wechat",{text:this.qrcode.code,width:parseInt(this.params.qr_size),height:parseInt(this.params.qr_size),colorDark:"#424770",colorLight:"#f8fbfd",correctLevel:QRCode.CorrectLevel.H}),o("#wc_stripe_local_payment_stripe_wechat").append('<p class="qrcode-message">'+this.params.qr_message+"</p>"),this.payment_token_received=!0,this.show_place_order())},p.prototype.place_order=function(t){this.qrcode&&this.payment_token_received?(t.preventDefault(),window.location=this.qrcode.redirect):e.prototype.place_order.apply(this,arguments)},a.prototype.getSourceArgs=function(){var t=o.extend({},e.prototype.getSourceArgs.apply(this,arguments),{mandate:{notification_method:"email",interval:this.cart_contains_subscription()||this.is_change_payment_method()?"scheduled":"one_time"}});return"scheduled"===t.mandate.interval&&delete t.amount,t},_.prototype.is_currency_supported=function(){return-1<this.params.currencies.indexOf(this.get_currency())},_.prototype.updated_checkout=function(){this.maybe_hide_gateway(),this.has_gateway_data()&&this.is_currency_supported()&&(this.add_eligibility(this.container,parseFloat(this.get_total_price())),this.elements=this.stripe.elements(this.get_element_options()),this.initialize_messaging())},_.prototype.initialize=function(){this.has_gateway_data()&&this.is_currency_supported()&&(this.add_eligibility(this.container,parseFloat(this.get_total_price())),this.initialize_messaging())},_.prototype.initialize_messaging=function(){this.msgElement=this.elements.create("afterpayClearpayMessage",o.extend({},this.params.msg_options,{amount:this.get_total_price_cents(),currency:this.get_currency()})),this.mount_message()},_.prototype.mount_message=function(t){t&&this.msgElement.update({amount:this.get_total_price_cents(),currency:this.get_currency()}),o('label[for="payment_method_stripe_afterpay"]').find("#wc-stripe-afterpay-msg").length||o('label[for="payment_method_stripe_afterpay"]').append('<div id="wc-stripe-afterpay-msg"></div>'),this.msgElement.mount("#wc-stripe-afterpay-msg")},_.prototype.add_eligibility=function(t,e){i.Afterpay.prototype.add_eligibility.apply(this,arguments),this.is_eligible(e)||o(this.container).find(".wc-stripe-afterpay__offsite").addClass("afterpay-ineligible")},d.prototype.get_confirmation_args=function(t){t=e.prototype.get_confirmation_args.call(this,t);return t.payment_method.boleto={tax_id:this.get_tax_id()},t},d.prototype.createSource=function(){var t=this.get_tax_id();if(!t||!t.match(/^(\w{3}\.){2}\w{3}-\w{2}$|^(\w{11}|\w{14})$|^\w{2}\.\w{3}\.\w{3}\/\w{4}-\w{2}$/))return this.submit_error({code:"incomplete_boleto_tax_id"});this.payment_token_received=!0,this.get_form().submit()},d.prototype.get_tax_id=function(){return o("#wc_stripe_boleto_tax_id").val()},t.prototype=o.extend({},e.prototype,t.prototype),n.prototype=o.extend({},e.prototype,n.prototype),a.prototype=o.extend({},e.prototype,a.prototype),r.prototype=o.extend({},e.prototype,r.prototype),s.prototype=o.extend({},e.prototype,s.prototype),p.prototype=o.extend({},e.prototype,p.prototype),h.prototype=o.extend({},e.prototype,h.prototype),c.prototype=o.extend({},e.prototype,c.prototype),_.prototype=o.extend({},e.prototype,i.Afterpay.prototype,_.prototype),d.prototype=o.extend({},e.prototype,d.prototype),l.prototype=o.extend({},e.prototype,l.prototype);var m,y={ideal:t,p24:n,sepa_debit:a,klarna:r,fpx:s,wechat:p,au_becs_debit:h,grabpay:c,afterpay_clearpay:_,boleto:d,oxxo:l};for(m in wc_stripe_local_payment_params.gateways){var u=wc_stripe_local_payment_params.gateways[m];new(y[u.local_payment_type]||e)(u)}}(jQuery,window.wc_stripe);
assets/js/frontend/payment-request.js CHANGED
@@ -51,14 +51,13 @@
51
  this.disable_payment_button();
52
  this.old_qty = this.get_quantity();
53
  var variation = this.get_product_data().variation;
54
- if (!this.is_variable_product() || this.variable_product_selected()) {
55
  this.cart_calculation(variation.variation_id).then(function () {
56
- if (this.is_variable_product() && $(this.container).is('.processingFoundVariation')) {
57
  this.createPaymentRequest();
58
  this.createPaymentRequestButton();
59
  wc_stripe.PaymentRequest.prototype.canMakePayment.apply(this, arguments).then(function () {
60
  this.enable_payment_button();
61
- $(this.container).removeClass('processingFoundVariation');
62
  }.bind(this));
63
  } else {
64
  this.enable_payment_button();
@@ -95,8 +94,10 @@
95
  }
96
 
97
  PaymentRequest.prototype.found_variation = function () {
98
- $(this.container).addClass('processingFoundVariation');
99
  wc_stripe.ProductGateway.prototype.found_variation.apply(this, arguments);
 
 
 
100
  }
101
 
102
  /**
@@ -197,7 +198,7 @@
197
  this.show_icons();
198
  if (this.banner_enabled()) {
199
  $(this.banner_container).empty().show().append('<div id="wc-stripe-payment-request-banner"></div>');
200
- $(this.banner_container).show().parent().parent().addClass('active');
201
  var elements = this.stripe.elements();
202
  var button = elements.create("paymentRequestButton", {
203
  paymentRequest: this.paymentRequest,
51
  this.disable_payment_button();
52
  this.old_qty = this.get_quantity();
53
  var variation = this.get_product_data().variation;
54
+ if (!this.processing_calculation && (!this.is_variable_product() || this.variable_product_selected())) {
55
  this.cart_calculation(variation.variation_id).then(function () {
56
+ if (this.is_variable_product()) {
57
  this.createPaymentRequest();
58
  this.createPaymentRequestButton();
59
  wc_stripe.PaymentRequest.prototype.canMakePayment.apply(this, arguments).then(function () {
60
  this.enable_payment_button();
 
61
  }.bind(this));
62
  } else {
63
  this.enable_payment_button();
94
  }
95
 
96
  PaymentRequest.prototype.found_variation = function () {
 
97
  wc_stripe.ProductGateway.prototype.found_variation.apply(this, arguments);
98
+ if (this.can_pay) {
99
+ this.add_to_cart();
100
+ }
101
  }
102
 
103
  /**
198
  this.show_icons();
199
  if (this.banner_enabled()) {
200
  $(this.banner_container).empty().show().append('<div id="wc-stripe-payment-request-banner"></div>');
201
+ $(this.banner_container).show().addClass('active').closest('.wc-stripe-banner-checkout').addClass('active');
202
  var elements = this.stripe.elements();
203
  var button = elements.create("paymentRequestButton", {
204
  paymentRequest: this.paymentRequest,
assets/js/frontend/payment-request.min.js CHANGED
@@ -1 +1 @@
1
- !function(i,n){var t;i(document.body).is(".single-product")&&((t=function(){n.BaseGateway.call(this,wc_stripe_payment_request_params),window.addEventListener("hashchange",this.hashchange.bind(this)),this.old_qty=this.get_quantity()}).prototype=i.extend({},n.BaseGateway.prototype,n.ProductGateway.prototype,n.PaymentRequest.prototype),t.prototype.initialize=function(){if(!i(this.container).length)return setTimeout(this.initialize.bind(this),1e3);n.ProductGateway.call(this),n.PaymentRequest.prototype.initialize.call(this)},t.prototype.canMakePayment=function(){n.PaymentRequest.prototype.canMakePayment.apply(this,arguments).then(function(){i(document.body).on("change",'[name="quantity"]',this.add_to_cart.bind(this)),i(this.container).parent().parent().addClass("active"),this.is_variable_product()?this.variable_product_selected()?(this.cart_calculation(this.get_product_data().variation.variation_id),i(this.container).removeClass("processingFoundVariation")):this.disable_payment_button():this.cart_calculation()}.bind(this))},t.prototype.add_to_cart=function(t){this.disable_payment_button(),this.old_qty=this.get_quantity();var e=this.get_product_data().variation;this.is_variable_product()&&!this.variable_product_selected()||this.cart_calculation(e.variation_id).then(function(){this.is_variable_product()&&i(this.container).is(".processingFoundVariation")?(this.createPaymentRequest(),this.createPaymentRequestButton(),n.PaymentRequest.prototype.canMakePayment.apply(this,arguments).then(function(){this.enable_payment_button(),i(this.container).removeClass("processingFoundVariation")}.bind(this))):this.enable_payment_button()}.bind(this))},t.prototype.cart_calculation=function(){return n.ProductGateway.prototype.cart_calculation.apply(this,arguments).then(function(){this.paymentRequest.update(this.get_payment_request_update({total:{pending:!1}}))}.bind(this))["catch"](function(){}.bind(this))},t.prototype.create_button=function(){i("#wc-stripe-payment-request-container").empty(),n.PaymentRequest.prototype.create_button.apply(this,arguments),this.$button=i("#wc-stripe-payment-request-container")},t.prototype.button_click=function(t){this.$button.is(".disabled")?t.preventDefault():0==this.get_quantity()&&(t.preventDefault(),this.submit_error(this.params.messages.invalid_amount))},t.prototype.found_variation=function(){i(this.container).addClass("processingFoundVariation"),n.ProductGateway.prototype.found_variation.apply(this,arguments)},t.prototype.block=function(){i.blockUI({message:this.adding_to_cart?this.params.messages.add_to_cart:null,overlayCSS:{background:"#fff",opacity:.6}})}),i(document.body).is(".woocommerce-cart")&&((t=function(){n.BaseGateway.call(this,wc_stripe_payment_request_params),window.addEventListener("hashchange",this.hashchange.bind(this))}).prototype=i.extend({},n.BaseGateway.prototype,n.CartGateway.prototype,n.PaymentRequest.prototype),t.prototype.initialize=function(){n.CartGateway.call(this),n.PaymentRequest.prototype.initialize.call(this)},t.prototype.canMakePayment=function(){n.PaymentRequest.prototype.canMakePayment.apply(this,arguments).then(function(){i(this.container).addClass("active").parent().addClass("active")}.bind(this))},t.prototype.updated_html=function(){i(this.container).length||(this.can_pay=!1),this.can_pay&&this.initialize()},t.prototype.button_click=function(t){this.paymentRequest.update(this.get_payment_request_update({total:{pending:!1}}))},t.prototype.cart_emptied=function(t){this.can_pay=!1}),i(document.body).is(".woocommerce-checkout")&&((t=function(){n.BaseGateway.call(this,wc_stripe_payment_request_params),window.addEventListener("hashchange",this.hashchange.bind(this))}).prototype=i.extend({},n.BaseGateway.prototype,n.CheckoutGateway.prototype,n.PaymentRequest.prototype),t.prototype.initialize=function(){n.CheckoutGateway.call(this),i("form.checkout").on("change",".form-row:not(.address-field) .input-text",this.update_payment_request.bind(this)),i(this.container).length&&n.PaymentRequest.prototype.initialize.call(this)},t.prototype.canMakePayment=function(){n.PaymentRequest.prototype.canMakePayment.apply(this,arguments).then(function(){var t;this.show_icons(),this.banner_enabled()&&(i(this.banner_container).empty().show().append('<div id="wc-stripe-payment-request-banner"></div>'),i(this.banner_container).show().parent().parent().addClass("active"),(t=this.stripe.elements().create("paymentRequestButton",{paymentRequest:this.paymentRequest,style:{paymentRequestButton:{type:this.params.button.type,theme:this.params.button.theme,height:this.params.button.height}}})).on("click",this.banner_checkout.bind(this)),t.mount("#wc-stripe-payment-request-banner"))}.bind(this))},t.prototype.create_button=function(){this.$button&&this.$button.remove(),this.$button=i('<div id="wc-stripe-payment-request-container"></div>'),i("#place_order").after(this.$button),n.PaymentRequest.prototype.create_button.call(this),this.trigger_payment_method_selected()},t.prototype.updated_checkout=function(){i(this.container).length&&n.PaymentRequest.prototype.initialize.call(this)},t.prototype.banner_checkout=function(t){this.set_payment_method(this.gateway_id),this.set_use_new_option(!0),i('[name="terms"]').prop("checked",!0)},t.prototype.on_token_received=function(){n.CheckoutGateway.prototype.on_token_received.apply(this,arguments),this.fields.toFormFields(),this.payment_request_options.requestShipping&&this.maybe_set_ship_to_different(),this.checkout_fields_valid()&&this.get_form().submit()},t.prototype.update_payment_request=function(){i(this.container).length&&n.PaymentRequest.prototype.initialize.call(this)},t.prototype.show_icons=function(){i(this.container).length&&i(this.container).find(".wc-stripe-paymentRequest-icon.gpay").show()}),new t}(jQuery,window.wc_stripe);
1
+ !function(e,a){var t;e(document.body).is(".single-product")&&((t=function(){a.BaseGateway.call(this,wc_stripe_payment_request_params),window.addEventListener("hashchange",this.hashchange.bind(this)),this.old_qty=this.get_quantity()}).prototype=e.extend({},a.BaseGateway.prototype,a.ProductGateway.prototype,a.PaymentRequest.prototype),t.prototype.initialize=function(){if(!e(this.container).length)return setTimeout(this.initialize.bind(this),1e3);a.ProductGateway.call(this),a.PaymentRequest.prototype.initialize.call(this)},t.prototype.canMakePayment=function(){a.PaymentRequest.prototype.canMakePayment.apply(this,arguments).then(function(){e(document.body).on("change",'[name="quantity"]',this.add_to_cart.bind(this)),e(this.container).parent().parent().addClass("active"),this.is_variable_product()?this.variable_product_selected()?(this.cart_calculation(this.get_product_data().variation.variation_id),e(this.container).removeClass("processingFoundVariation")):this.disable_payment_button():this.cart_calculation()}.bind(this))},t.prototype.add_to_cart=function(t){this.disable_payment_button(),this.old_qty=this.get_quantity();var e=this.get_product_data().variation;this.processing_calculation||this.is_variable_product()&&!this.variable_product_selected()||this.cart_calculation(e.variation_id).then(function(){this.is_variable_product()?(this.createPaymentRequest(),this.createPaymentRequestButton(),a.PaymentRequest.prototype.canMakePayment.apply(this,arguments).then(function(){this.enable_payment_button()}.bind(this))):this.enable_payment_button()}.bind(this))},t.prototype.cart_calculation=function(){return a.ProductGateway.prototype.cart_calculation.apply(this,arguments).then(function(){this.paymentRequest.update(this.get_payment_request_update({total:{pending:!1}}))}.bind(this))["catch"](function(){}.bind(this))},t.prototype.create_button=function(){e("#wc-stripe-payment-request-container").empty(),a.PaymentRequest.prototype.create_button.apply(this,arguments),this.$button=e("#wc-stripe-payment-request-container")},t.prototype.button_click=function(t){this.$button.is(".disabled")?t.preventDefault():0==this.get_quantity()&&(t.preventDefault(),this.submit_error(this.params.messages.invalid_amount))},t.prototype.found_variation=function(){a.ProductGateway.prototype.found_variation.apply(this,arguments),this.can_pay&&this.add_to_cart()},t.prototype.block=function(){e.blockUI({message:this.adding_to_cart?this.params.messages.add_to_cart:null,overlayCSS:{background:"#fff",opacity:.6}})}),e(document.body).is(".woocommerce-cart")&&((t=function(){a.BaseGateway.call(this,wc_stripe_payment_request_params),window.addEventListener("hashchange",this.hashchange.bind(this))}).prototype=e.extend({},a.BaseGateway.prototype,a.CartGateway.prototype,a.PaymentRequest.prototype),t.prototype.initialize=function(){a.CartGateway.call(this),a.PaymentRequest.prototype.initialize.call(this)},t.prototype.canMakePayment=function(){a.PaymentRequest.prototype.canMakePayment.apply(this,arguments).then(function(){e(this.container).addClass("active").parent().addClass("active")}.bind(this))},t.prototype.updated_html=function(){e(this.container).length||(this.can_pay=!1),this.can_pay&&this.initialize()},t.prototype.button_click=function(t){this.paymentRequest.update(this.get_payment_request_update({total:{pending:!1}}))},t.prototype.cart_emptied=function(t){this.can_pay=!1}),e(document.body).is(".woocommerce-checkout")&&((t=function(){a.BaseGateway.call(this,wc_stripe_payment_request_params),window.addEventListener("hashchange",this.hashchange.bind(this))}).prototype=e.extend({},a.BaseGateway.prototype,a.CheckoutGateway.prototype,a.PaymentRequest.prototype),t.prototype.initialize=function(){a.CheckoutGateway.call(this),e("form.checkout").on("change",".form-row:not(.address-field) .input-text",this.update_payment_request.bind(this)),e(this.container).length&&a.PaymentRequest.prototype.initialize.call(this)},t.prototype.canMakePayment=function(){a.PaymentRequest.prototype.canMakePayment.apply(this,arguments).then(function(){var t;this.show_icons(),this.banner_enabled()&&(e(this.banner_container).empty().show().append('<div id="wc-stripe-payment-request-banner"></div>'),e(this.banner_container).show().addClass("active").closest(".wc-stripe-banner-checkout").addClass("active"),(t=this.stripe.elements().create("paymentRequestButton",{paymentRequest:this.paymentRequest,style:{paymentRequestButton:{type:this.params.button.type,theme:this.params.button.theme,height:this.params.button.height}}})).on("click",this.banner_checkout.bind(this)),t.mount("#wc-stripe-payment-request-banner"))}.bind(this))},t.prototype.create_button=function(){this.$button&&this.$button.remove(),this.$button=e('<div id="wc-stripe-payment-request-container"></div>'),e("#place_order").after(this.$button),a.PaymentRequest.prototype.create_button.call(this),this.trigger_payment_method_selected()},t.prototype.updated_checkout=function(){e(this.container).length&&a.PaymentRequest.prototype.initialize.call(this)},t.prototype.banner_checkout=function(t){this.set_payment_method(this.gateway_id),this.set_use_new_option(!0),e('[name="terms"]').prop("checked",!0)},t.prototype.on_token_received=function(){a.CheckoutGateway.prototype.on_token_received.apply(this,arguments),this.fields.toFormFields(),this.payment_request_options.requestShipping&&this.maybe_set_ship_to_different(),this.checkout_fields_valid()&&this.get_form().submit()},t.prototype.update_payment_request=function(){e(this.container).length&&a.PaymentRequest.prototype.initialize.call(this)},t.prototype.show_icons=function(){e(this.container).length&&e(this.container).find(".wc-stripe-paymentRequest-icon.gpay").show()}),new t}(jQuery,window.wc_stripe);
assets/js/frontend/wc-stripe.js CHANGED
@@ -106,6 +106,9 @@
106
  var $container = $(this.message_container);
107
 
108
  if (!$container.length || (!skip_form && $container.closest('form').length)) {
 
 
 
109
  $container = $container.closest('form');
110
  }
111
 
@@ -166,20 +169,21 @@
166
  * Some 3rd party plugins give priority to the shipping address over the billing address
167
  */
168
  wc_stripe.BaseGateway.prototype.get_billing_prefix = function () {
 
169
  if ($('[name="billing_same_as_shipping"]').length && $('[name="billing_same_as_shipping"]').is(':checked')) {
170
- return 'shipping';
171
  }
172
  if ($('[name="bill_to_different_address"]').length) {
173
  if ($('[name="bill_to_different_address"]').length > 1) {
174
  if ($('[name="bill_to_different_address"]:checked').val() === 'same_as_shipping') {
175
- return 'shipping';
176
  }
177
  } else if (!$('[name="bill_to_different_address"]').is(':checked')) {
178
- return 'shipping';
179
  }
180
  }
181
-
182
- return 'billing';
183
  }
184
 
185
  wc_stripe.BaseGateway.prototype.should_save_method = function () {
@@ -1099,12 +1103,14 @@
1099
  };
1100
 
1101
  wc_stripe.ProductGateway.prototype.is_variable_product = function () {
1102
- return $('[name="variation_id"]').length > 0;
 
1103
  };
1104
 
1105
  wc_stripe.ProductGateway.prototype.variable_product_selected = function () {
 
1106
  var val = $('input[name="variation_id"]').val();
1107
- return !!val && "0" != val;
1108
  };
1109
 
1110
  wc_stripe.ProductGateway.prototype.get_product_data = function () {
@@ -1165,6 +1171,7 @@
1165
 
1166
  wc_stripe.ProductGateway.prototype.cart_calculation = function (variation_id) {
1167
  return new Promise(function (resolve, reject) {
 
1168
  $.ajax({
1169
  url: this.params.routes.cart_calculation,
1170
  method: 'POST',
@@ -1178,6 +1185,7 @@
1178
  }, this.get_product_variations()),
1179
  beforeSend: this.ajax_before_send.bind(this)
1180
  }).done(function (response) {
 
1181
  if (response.code) {
1182
  this.cart_calculation_error = true;
1183
  reject(response);
@@ -1188,6 +1196,7 @@
1188
  resolve(response.data);
1189
  }
1190
  }.bind(this)).fail(function () {
 
1191
  }.bind(this));
1192
  }.bind(this));
1193
  };
@@ -1647,7 +1656,8 @@
1647
 
1648
  if ('checkout' === page || ('cart' === page && $(document.body).is('.woocommerce-checkout')) || $('form.woocommerce-checkout').length > 0) {
1649
  $(document.body).on('updated_checkout', this.updated_checkout.bind(this));
1650
- $('form.checkout').on('change', '.input-text, select', this.onChange.bind(this));
 
1651
  $('form.checkout').on('change', '[name="ship_to_different_address"]', this.on_ship_to_address_change.bind(this));
1652
  this.init_i18n();
1653
  if ($('[name="ship_to_different_address"]').is(':checked')) {
106
  var $container = $(this.message_container);
107
 
108
  if (!$container.length || (!skip_form && $container.closest('form').length)) {
109
+ if (!$container.length) {
110
+ $container = $(this.container);
111
+ }
112
  $container = $container.closest('form');
113
  }
114
 
169
  * Some 3rd party plugins give priority to the shipping address over the billing address
170
  */
171
  wc_stripe.BaseGateway.prototype.get_billing_prefix = function () {
172
+ var prefix = 'billing';
173
  if ($('[name="billing_same_as_shipping"]').length && $('[name="billing_same_as_shipping"]').is(':checked')) {
174
+ prefix = 'shipping';
175
  }
176
  if ($('[name="bill_to_different_address"]').length) {
177
  if ($('[name="bill_to_different_address"]').length > 1) {
178
  if ($('[name="bill_to_different_address"]:checked').val() === 'same_as_shipping') {
179
+ prefix = 'shipping';
180
  }
181
  } else if (!$('[name="bill_to_different_address"]').is(':checked')) {
182
+ prefix = 'shipping';
183
  }
184
  }
185
+ var filtered_prefix = $(document.body).triggerHandler('wc_stripe_get_billing_prefix', [prefix]);
186
+ return typeof filtered_prefix === 'undefined' ? prefix : filtered_prefix;
187
  }
188
 
189
  wc_stripe.BaseGateway.prototype.should_save_method = function () {
1103
  };
1104
 
1105
  wc_stripe.ProductGateway.prototype.is_variable_product = function () {
1106
+ var variation = this.get_product_data().variation;
1107
+ return !!variation || $('[name="variation_id"]').length > 0;
1108
  };
1109
 
1110
  wc_stripe.ProductGateway.prototype.variable_product_selected = function () {
1111
+ var variation = this.get_product_data().variation
1112
  var val = $('input[name="variation_id"]').val();
1113
+ return !!variation || (!!val && "0" != val);
1114
  };
1115
 
1116
  wc_stripe.ProductGateway.prototype.get_product_data = function () {
1171
 
1172
  wc_stripe.ProductGateway.prototype.cart_calculation = function (variation_id) {
1173
  return new Promise(function (resolve, reject) {
1174
+ this.processing_calculation = true;
1175
  $.ajax({
1176
  url: this.params.routes.cart_calculation,
1177
  method: 'POST',
1185
  }, this.get_product_variations()),
1186
  beforeSend: this.ajax_before_send.bind(this)
1187
  }).done(function (response) {
1188
+ this.processing_calculation = false;
1189
  if (response.code) {
1190
  this.cart_calculation_error = true;
1191
  reject(response);
1196
  resolve(response.data);
1197
  }
1198
  }.bind(this)).fail(function () {
1199
+ this.processing_calculation = false;
1200
  }.bind(this));
1201
  }.bind(this));
1202
  };
1656
 
1657
  if ('checkout' === page || ('cart' === page && $(document.body).is('.woocommerce-checkout')) || $('form.woocommerce-checkout').length > 0) {
1658
  $(document.body).on('updated_checkout', this.updated_checkout.bind(this));
1659
+ $(document.body).on('change', '[name^="billing_"], [name^="shipping_"]', this.onChange.bind(this));
1660
+ $('form.checkout').on('change', '.input-text:not([name^="billing_"], [name^="shipping_"], [name="account_password"]), select:not([name^="billing_"], [name^="shipping_"])', this.onChange.bind(this));
1661
  $('form.checkout').on('change', '[name="ship_to_different_address"]', this.on_ship_to_address_change.bind(this));
1662
  this.init_i18n();
1663
  if ($('[name="ship_to_different_address"]').is(':checked')) {
assets/js/frontend/wc-stripe.min.js CHANGED
@@ -1 +1 @@
1
- !function(a,o){a.wc_stripe={};var i=null;"undefined"==typeof wc_stripe_checkout_fields&&(a.wc_stripe_checkout_fields=[]),wc_stripe.BaseGateway=function(t,e){this.params=t,this.gateway_id=this.params.gateway_id,this.container=void 0===e?"li.payment_method_".concat(this.gateway_id):e,o(this.container).length||(this.container=".payment_method_".concat(this.gateway_id)),this.token_selector=this.params.token_selector,this.saved_method_selector=this.params.saved_method_selector,this.payment_token_received=!1,this.stripe=i,this.fields=r,this.elements=i.elements(o.extend({},{locale:"auto"},this.get_element_options())),this.initialize()},wc_stripe.BaseGateway.prototype.get_page=function(){var t=wc_stripe_params_v3.page;return"cart"===t&&o(document.body).is(".woocommerce-checkout")&&(t="checkout"),t},wc_stripe.BaseGateway.prototype.set_nonce=function(t){this.fields.set(this.gateway_id+"_token_key",t),o(this.token_selector).val(t)},wc_stripe.BaseGateway.prototype.set_intent=function(t){this.fields.set(this.gateway_id+"_payment_intent_key",t),o("#"+this.gateway_id+"_payment_intent_key").val(t)},wc_stripe.BaseGateway.prototype.get_element_options=function(){return this.params.elementOptions},wc_stripe.BaseGateway.prototype.initialize=function(){},wc_stripe.BaseGateway.prototype.create_button=function(){},wc_stripe.BaseGateway.prototype.is_gateway_selected=function(){return o('[name="payment_method"]:checked').val()===this.gateway_id},wc_stripe.BaseGateway.prototype.is_saved_method_selected=function(){return this.is_gateway_selected()&&"saved"===o('[name="'+this.gateway_id+'_payment_type_key"]:checked').val()},wc_stripe.BaseGateway.prototype.has_checkout_error=function(){return 0<o("#wc_stripe_checkout_error").length&&this.is_gateway_selected()},wc_stripe.BaseGateway.prototype.submit_error=function(t,e){var i=this.get_error_message(t);i.indexOf("</ul>")<0&&(i='<div class="'+function(){var t="woocommerce-NoticeGroup";return this.is_current_page("checkout")&&(t+=" woocommerce-NoticeGroup-checkout"),t}.bind(this)()+'"><ul class="woocommerce-error"><li>'+i+"</li></ul></div>");t=o(document.body).triggerHandler("wc_stripe_submit_error",[i,t,this]);i=void 0===t?i:t,this.submit_message(i,e)},wc_stripe.BaseGateway.prototype.submit_error_code=function(t){console.log(t)},wc_stripe.BaseGateway.prototype.get_error_message=function(t){return"object"==typeof t&&(t=t.code&&wc_stripe_messages[t.code]?wc_stripe_messages[t.code]:t.message),t},wc_stripe.BaseGateway.prototype.submit_message=function(t,e){o(".woocommerce-NoticeGroup-checkout, .woocommerce-error, .woocommerce-message").remove();var i=o(this.message_container);i.length&&(e||!i.closest("form").length)||(i=i.closest("form")),i.prepend(t),i.removeClass("processing").unblock(),i.find(".input-text, select, input:checkbox").trigger("blur"),o.scroll_to_notices?o.scroll_to_notices(i):o("html, body").animate({scrollTop:i.offset().top-100},1e3)},wc_stripe.BaseGateway.prototype.get_billing_details=function(){var t=this.get_billing_prefix(),t={name:this.get_customer_name(t),address:{city:this.fields.get(t+"_city",null),country:this.fields.get(t+"_country",null),line1:this.fields.get(t+"_address_1",null),line2:this.fields.get(t+"_address_2",null),postal_code:this.fields.get(t+"_postcode",null),state:this.fields.get(t+"_state",null)}};return t.name&&" "!==t.name||delete t.name,""!=this.fields.get("billing_email")&&(t.email=this.fields.get("billing_email")),""!=this.fields.get("billing_phone")&&(t.phone=this.fields.get("billing_phone")),t},wc_stripe.BaseGateway.prototype.get_first_name=function(t){return o("#"+t+"_first_name").val()},wc_stripe.BaseGateway.prototype.get_last_name=function(t){return o("#"+t+"_last_name").val()},wc_stripe.BaseGateway.prototype.get_shipping_prefix=function(){return this.needs_shipping()&&0<o('[name="ship_to_different_address"]').length&&o('[name="ship_to_different_address"]').is(":checked")?"shipping":"billing"},wc_stripe.BaseGateway.prototype.get_billing_prefix=function(){if(o('[name="billing_same_as_shipping"]').length&&o('[name="billing_same_as_shipping"]').is(":checked"))return"shipping";if(o('[name="bill_to_different_address"]').length)if(1<o('[name="bill_to_different_address"]').length){if("same_as_shipping"===o('[name="bill_to_different_address"]:checked').val())return"shipping"}else if(!o('[name="bill_to_different_address"]').is(":checked"))return"shipping";return"billing"},wc_stripe.BaseGateway.prototype.should_save_method=function(){return o("#"+this.gateway_id+"_save_source_key").is(":checked")},wc_stripe.BaseGateway.prototype.is_add_payment_method_page=function(){return"add_payment_method"===this.get_page()||o(document.body).hasClass("woocommerce-add-payment-method")},wc_stripe.BaseGateway.prototype.is_change_payment_method=function(){return"change_payment_method"===this.get_page()},wc_stripe.BaseGateway.prototype.get_selected_payment_method=function(){return o(this.saved_method_selector).val()},wc_stripe.BaseGateway.prototype.needs_shipping=function(){return this.get_gateway_data().needs_shipping},wc_stripe.BaseGateway.prototype.get_currency=function(){return this.get_gateway_data().currency},wc_stripe.BaseGateway.prototype.get_gateway_data=function(){var t=o(this.container).find(".woocommerce_".concat(this.gateway_id,"_gateway_data")).data("gateway");return void 0===t&&this.is_current_page("checkout")&&void 0===(t=o("form.checkout").find(".woocommerce_".concat(this.gateway_id,"_gateway_data")).data("gateway"))&&(t=o(".woocommerce_"+this.gateway_id+"_gateway_data").data("gateway")),t},wc_stripe.BaseGateway.prototype.set_gateway_data=function(t){o(this.container).find(".woocommerce_".concat(this.gateway_id,"_gateway_data")).data("gateway",t)},wc_stripe.BaseGateway.prototype.has_gateway_data=function(){return void 0!==this.get_gateway_data()},wc_stripe.BaseGateway.prototype.get_customer_name=function(t){return this.fields.get(t+"_first_name")+" "+this.fields.get(t+"_last_name")},wc_stripe.BaseGateway.prototype.get_customer_email=function(){return this.fields.get("billing_email")},wc_stripe.BaseGateway.prototype.get_address_field_hash=function(t){for(var e=["_first_name","_last_name","_address_1","_address_2","_postcode","_city","_state","_country"],i="",s=0;s<e.length;s++)i+=this.fields.get(t+e[s])+"_";return i},wc_stripe.BaseGateway.prototype.block=function(){o().block&&o.blockUI({message:null,overlayCSS:{background:"#fff",opacity:.6}})},wc_stripe.BaseGateway.prototype.unblock=function(){o().block&&o.unblockUI()},wc_stripe.BaseGateway.prototype.get_form=function(){return o(this.token_selector).closest("form")},wc_stripe.BaseGateway.prototype.get_total_price=function(){return this.get_gateway_data().total},wc_stripe.BaseGateway.prototype.get_total_price_cents=function(){return this.get_gateway_data().total_cents},wc_stripe.BaseGateway.prototype.set_total_price=function(t){var e=this.get_gateway_data();e.total=t,this.set_gateway_data(e)},wc_stripe.BaseGateway.prototype.set_total_price_cents=function(t){var e=this.get_gateway_data();e.total_cents=t,this.set_gateway_data(e)},wc_stripe.BaseGateway.prototype.set_payment_method=function(t){o('[name="payment_method"][value="'+t+'"]').prop("checked",!0).trigger("click")},wc_stripe.BaseGateway.prototype.set_selected_shipping_methods=function(t){if(this.fields.set("shipping_method",t),t&&o('[name^="shipping_method"]').length)for(var e in t){var i=t[e];o('[name="shipping_method['+e+']"][value="'+i+'"]').prop("checked",!0).trigger("change")}},wc_stripe.BaseGateway.prototype.on_token_received=function(t){this.payment_token_received=!0,this.set_nonce(t.id),this.process_checkout()},wc_stripe.BaseGateway.prototype.createPaymentRequest=function(){try{this.payment_request_options=this.get_payment_request_options(),this.paymentRequest=i.paymentRequest(this.payment_request_options),this.payment_request_options.requestShipping&&(this.paymentRequest.on("shippingaddresschange",this.update_shipping_address.bind(this)),this.paymentRequest.on("shippingoptionchange",this.update_shipping_method.bind(this))),this.paymentRequest.on("paymentmethod",this.on_payment_method_received.bind(this))}catch(t){return void this.submit_error(t.message)}},wc_stripe.BaseGateway.prototype.get_payment_request_options=function(){var t={country:this.params.country_code,currency:this.get_currency().toLowerCase(),total:{amount:this.get_total_price_cents(),label:this.params.total_label,pending:!0},requestPayerName:function(){return!this.is_current_page("checkout")||!this.is_valid_address(this.get_address_object("billing"),"billing",["email","phone"])}.bind(this)(),requestPayerEmail:this.fields.requestFieldInWallet("billing_email"),requestPayerPhone:this.fields.requestFieldInWallet("billing_phone"),requestShipping:function(){if(this.needs_shipping()){var t=this.get_shipping_prefix();if(this.is_current_page("checkout")&&!this.is_valid_address(this.get_address_object(t),t,["email","phone"])||!this.is_current_page("checkout"))return!0}return!1}.bind(this)()},e=this.get_display_items(),i=this.get_shipping_options();return e&&(t.displayItems=e),t.requestShipping&&i&&(t.shippingOptions=i),t},wc_stripe.BaseGateway.prototype.get_payment_request_update=function(t){var e={currency:this.get_currency().toLowerCase(),total:{amount:parseInt(this.get_total_price_cents()),label:this.params.total_label,pending:!0}},i=this.get_display_items(),s=this.get_shipping_options();return i&&(e.displayItems=i),this.payment_request_options.requestShipping&&s&&(e.shippingOptions=s),t&&(e=o.extend(!0,{},e,t)),e},wc_stripe.BaseGateway.prototype.get_display_items=function(){return this.get_gateway_data().items},wc_stripe.BaseGateway.prototype.set_display_items=function(t){var e=this.get_gateway_data();e.items=t,this.set_gateway_data(e)},wc_stripe.BaseGateway.prototype.get_shipping_options=function(){return this.get_gateway_data().shipping_options},wc_stripe.BaseGateway.prototype.set_shipping_options=function(t){var e=this.get_gateway_data();e.shipping_options=t,this.set_gateway_data(e)},wc_stripe.BaseGateway.prototype.map_address=function(t){return{city:t.city,postcode:t.postalCode,state:t.region,country:t.country}},wc_stripe.BaseGateway.prototype.on_payment_method_received=function(t){try{this.payment_response=t,this.populate_checkout_fields(t),t.complete("success"),this.on_token_received(t.paymentMethod)}catch(e){a.alert(e)}},wc_stripe.BaseGateway.prototype.populate_checkout_fields=function(t){this.set_nonce(t.paymentMethod.id),this.update_addresses(t)},wc_stripe.BaseGateway.prototype.update_addresses=function(t){t.payerName&&this.fields.set("name",t.payerName,"billing"),t.payerEmail&&this.fields.set("email",t.payerEmail,"billing"),t.payerPhone&&(this.fields.set("phone",t.payerPhone,"billing"),this.fields.exists("shipping_phone")&&this.fields.isEmpty("shipping_phone")&&this.fields.set("shipping_phone",t.payerPhone)),t.shippingAddress&&this.populate_shipping_fields(t.shippingAddress),t.paymentMethod.billing_details.address&&this.populate_billing_fields(t.paymentMethod.billing_details.address)},wc_stripe.BaseGateway.prototype.populate_address_fields=function(t,e){for(var i in t)null!==t[i]&&this.fields.set(i,t[i],e)},wc_stripe.BaseGateway.prototype.populate_billing_fields=function(t){this.populate_address_fields(t,"billing")},wc_stripe.BaseGateway.prototype.populate_shipping_fields=function(t){this.populate_address_fields(t,"shipping")},wc_stripe.BaseGateway.prototype.get_address_fields=function(){return["first_name","last_name","country","address_1","address_2","city","state","postcode","phone","email"]},wc_stripe.BaseGateway.prototype.get_address_object=function(e){var i={};return this.get_address_fields().forEach(function(t){i[t]=this.fields.get(t,e)}.bind(this)),i},wc_stripe.BaseGateway.prototype.is_current_page=function(t){return Array.isArray(t)?-1<t.indexOf(this.get_page()):this.get_page()===t},wc_stripe.BaseGateway.prototype.is_valid_address=function(t,e,i){if(o.isEmptyObject(t))return!1;var s=this.get_address_fields();void 0!==i&&i.forEach(function(t){-1<s.indexOf(t)&&s.splice(s.indexOf(t),1)});for(var a=0;a<s.length;a++){var n=s[a];if(this.fields.required(e+"_"+n)&&(!t[n]||"undefined"==typeof t[n]||!this.fields.isValid(n,t[n],t)))return!1}return!0},wc_stripe.BaseGateway.prototype.ajax_before_send=function(t){0<this.params.user_id&&t.setRequestHeader("X-WP-Nonce",this.params.rest_nonce)},wc_stripe.BaseGateway.prototype.process_checkout=function(){return new Promise(function(){this.block(),o.ajax({url:this.params.routes.checkout,method:"POST",dataType:"json",data:o.extend({},this.serialize_fields(),{payment_method:this.gateway_id,page_id:this.get_page(),currency:this.get_currency()}),beforeSend:this.ajax_before_send.bind(this)}).done(function(t){t.reload?a.location.reload():"success"===t.result?a.location=t.redirect:(t.messages&&this.submit_error(t.messages),this.unblock())}.bind(this)).fail(function(t,e,i){this.unblock(),this.submit_error(i)}.bind(this))}.bind(this))},wc_stripe.BaseGateway.prototype.process_payment=function(t,e){o.ajax({method:"POST",url:this.params.routes.checkout_payment,dataType:"json",data:o.extend({},this.fields.toJson(),{order_id:t,order_key:e}),beforeSend:this.ajax_before_send.bind(this)}).done(function(t){if(t.result&&"success"===t.result)a.location=t.redirect;else{if(t.reload)return a.location.reload();t.messages?(this.payment_token_received=!1,this.submit_error(t.messages)):this.submit_error(wc_checkout_params.i18n_checkout_error)}}.bind(this)).fail(function(){}.bind(this))},wc_stripe.BaseGateway.prototype.handle_card_action=function(e){try{return this.stripe.handleCardAction(e.client_secret).then(function(t){if(t.error)return this.payment_token_received=!1,this.submit_error(t.error),void this.sync_payment_intent(e.order_id,e.client_secret)["catch"](function(t){this.submit_error(t.message)}.bind(this));this.is_current_page("order_pay")?this.get_form().submit():this.process_payment(e.order_id,e.order_key)}.bind(this))["catch"](function(t){this.submit_error(t.message)}.bind(this)),!1}catch(t){}},wc_stripe.BaseGateway.prototype.handle_card_setup=function(e){try{return this.stripe.confirmCardSetup(e.client_secret).then(function(t){if(t.error)return this.payment_token_received=!1,this.submit_error(t.error);this.is_current_page("order_pay")?this.get_form().submit():this.process_payment(e.order_id,e.order_key)}.bind(this))["catch"](function(t){this.submit_error(t.message)}.bind(this)),!1}catch(t){}},wc_stripe.BaseGateway.prototype.hashchange=function(t){var e=a.location.hash.match(/response=(.*)/);if(e)try{var i=JSON.parse(a.atob(decodeURIComponent(e[1])));i&&i.hasOwnProperty("client_secret")&&i.gateway_id===this.gateway_id&&(history.pushState({},"",a.location.pathname),"intent"===i.type?this.handle_card_action(i):this.handle_card_setup(i))}catch(s){}return!0},wc_stripe.BaseGateway.prototype.sync_payment_intent=function(t,s){return new Promise(function(e,i){o.when(o.ajax({method:"POST",dataType:"json",url:this.params.routes.sync_intent,data:{order_id:t,client_secret:s},beforeSend:this.ajax_before_send.bind(this)})).done(function(t){(t.code?i:e)(t)}).fail(function(t,e,i){this.submit_error(i)}.bind(this))}.bind(this))},wc_stripe.BaseGateway.prototype.serialize_form=function(t){var e,i=t.find("input").filter(function(t,e){return!o(e).is('[name^="add-to-cart"]')}.bind(this)).serializeArray(),s={};for(e in i){var a=i[e];s[a.name]=a.value}return s.payment_method=this.gateway_id,s},wc_stripe.BaseGateway.prototype.serialize_fields=function(){return o.extend({},this.fields.toJson(),o(document.body).triggerHandler("wc_stripe_process_checkout_data",[this,this.fields]))},wc_stripe.BaseGateway.prototype.map_shipping_methods=function(t){var e={};return"default"===t||1<(t=t.match(/^([\w+]):(.+)$/)).length&&(e[t[1]]=t[2]),e},wc_stripe.BaseGateway.prototype.maybe_set_ship_to_different=function(){o('[name="ship_to_different_address"]').length&&o('[name="ship_to_different_address"]').prop("checked",this.get_address_field_hash("billing")!==this.get_address_field_hash("shipping")).trigger("change")},wc_stripe.BaseGateway.prototype.update_shipping_address=function(s){return new Promise(function(e,i){o.ajax({url:this.params.routes.shipping_address,method:"POST",dataType:"json",data:{address:this.map_address(s.shippingAddress),payment_method:this.gateway_id,page_id:this.get_page(),currency:this.get_currency()},beforeSend:this.ajax_before_send.bind(this)}).done(function(t){t.code?(s.updateWith(t.data.newData),i(t.data)):(s.updateWith(t.data.newData),this.fields.set("shipping_method",t.data.shipping_method),e(t.data))}.bind(this)).fail(function(){}.bind(this))}.bind(this))},wc_stripe.BaseGateway.prototype.update_shipping_method=function(s){return new Promise(function(e,i){o.ajax({url:this.params.routes.shipping_method,method:"POST",dataType:"json",data:{shipping_method:s.shippingOption.id,payment_method:this.gateway_id,currency:this.get_currency(),page_id:this.get_page()},beforeSend:this.ajax_before_send.bind(this)}).done(function(t){t.code?(s.updateWith(t.data.newData),i(t.data)):(this.set_selected_shipping_methods(t.data.shipping_methods),s.updateWith(t.data.newData),e(t.data))}.bind(this)).fail(function(t,e,i){this.submit_error(i)}.bind(this))}.bind(this))},wc_stripe.CheckoutGateway=function(){this.message_container="li.payment_method_"+this.gateway_id,this.banner_container="li.banner_payment_method_"+this.gateway_id,o(document.body).on("update_checkout",this.update_checkout.bind(this)),o(document.body).on("updated_checkout",this.updated_checkout.bind(this)),o(document.body).on("updated_checkout",this.container_styles.bind(this)),o(document.body).on("checkout_error",this.checkout_error.bind(this)),o(this.token_selector).closest("form").on("checkout_place_order_"+this.gateway_id,this.checkout_place_order.bind(this)),o(document.body).on("wc_stripe_new_method_"+this.gateway_id,this.on_show_new_methods.bind(this)),o(document.body).on("wc_stripe_saved_method_"+this.gateway_id,this.on_show_saved_methods.bind(this)),o(document.body).on("wc_stripe_payment_method_selected",this.on_payment_method_selected.bind(this)),this.banner_enabled()&&o(".woocommerce-billing-fields").length&&o(".wc-stripe-banner-checkout").css("max-width",o(".woocommerce-billing-fields").outerWidth(!0)),this.container_styles(),this.hasOrderReviewParams()},wc_stripe.CheckoutGateway.prototype.container_styles=function(){this.params.description||o(this.container).addClass("wc-stripe-no-desc"),o(this.container).find(".wc-stripe-saved-methods").length||o(this.container).find(".payment_box").addClass("wc-stripe-no-methods")},wc_stripe.CheckoutGateway.prototype.hasOrderReviewParams=function(){var t=a.location.search.match(/_stripe_order_review=(.+)/);if(t&&1<t.length)try{var e=JSON.parse(a.atob(decodeURIComponent(t[1])));this.gateway_id===e.payment_method&&(o(function(){this.payment_token_received=!0,this.set_nonce(e.payment_nonce),this.set_use_new_option(!0)}.bind(this)),history.pushState({},"",a.location.pathname))}catch(i){}},wc_stripe.CheckoutGateway.prototype.has3DSecureParams=function(){if((this.is_current_page("order_pay")||this.is_change_payment_method())&&a.location.hash&&"string"==typeof a.location.hash){var t=a.location.hash.match(/response=(.*)/);if(t)try{var e=JSON.parse(a.atob(decodeURIComponent(t[1])));e&&e.hasOwnProperty("client_secret")&&e.gateway_id===this.gateway_id&&(o(function(){this.set_payment_method(this.gateway_id),this.set_use_new_option(!0),this.set_nonce(e.pm),!0===e.save_method&&this.set_save_payment_method(!0),o('[name="terms"]').prop("checked",!0)}.bind(this)),history.pushState({},"",a.location.pathname+a.location.search),this.handle_card_action(e))}catch(i){}}},wc_stripe.CheckoutGateway.prototype.update_shipping_address=function(){return wc_stripe.BaseGateway.prototype.update_shipping_address.apply(this,arguments).then(function(t){this.populate_address_fields(t.address,this.get_shipping_prefix()),this.fields.toFormFields({update_shipping_method:!1})}.bind(this))},wc_stripe.CheckoutGateway.prototype.updated_checkout=function(){},wc_stripe.CheckoutGateway.prototype.update_checkout=function(){},wc_stripe.CheckoutGateway.prototype.checkout_error=function(){this.has_checkout_error()&&(this.payment_token_received=!1,this.payment_response=null,this.show_payment_button(),this.hide_place_order())},wc_stripe.CheckoutGateway.prototype.is_valid_checkout=function(){return!(o('[name="terms"]').length&&o('[name="terms"]').is(":visible")&&!o('[name="terms"]').is(":checked"))},wc_stripe.CheckoutGateway.prototype.get_payment_method=function(){return o('[name="payment_method"]:checked').val()},wc_stripe.CheckoutGateway.prototype.set_use_new_option=function(t){o("#"+this.gateway_id+"_use_new").prop("checked",t).trigger("change")},wc_stripe.CheckoutGateway.prototype.checkout_place_order=function(){return this.is_valid_checkout()?!!this.is_saved_method_selected()||this.payment_token_received:(this.submit_error(this.params.messages.terms),!1)},wc_stripe.CheckoutGateway.prototype.on_token_received=function(t){this.payment_token_received=!0,this.set_nonce(t.id),this.hide_payment_button(),this.show_place_order()},wc_stripe.CheckoutGateway.prototype.block=function(){o().block&&o("form.checkout").block({message:null,overlayCSS:{background:"#fff",opacity:.6}})},wc_stripe.CheckoutGateway.prototype.unblock=function(){o().block&&o("form.checkout").unblock()},wc_stripe.CheckoutGateway.prototype.hide_place_order=function(){o("#place_order").addClass("wc-stripe-hide")},wc_stripe.CheckoutGateway.prototype.show_place_order=function(){o("#place_order").removeClass("wc-stripe-hide")},wc_stripe.CheckoutGateway.prototype.on_show_new_methods=function(){this.payment_token_received?(this.show_place_order(),this.hide_payment_button()):(this.hide_place_order(),this.show_payment_button())},wc_stripe.CheckoutGateway.prototype.on_show_saved_methods=function(){this.hide_payment_button(),this.show_place_order()},wc_stripe.CheckoutGateway.prototype.show_payment_button=function(){this.$button&&this.$button.show()},wc_stripe.CheckoutGateway.prototype.hide_payment_button=function(){this.$button&&this.$button.hide()},wc_stripe.CheckoutGateway.prototype.trigger_payment_method_selected=function(){this.on_payment_method_selected(null,o('[name="payment_method"]:checked').val())},wc_stripe.CheckoutGateway.prototype.on_payment_method_selected=function(t,e){e===this.gateway_id?this.payment_token_received||this.is_saved_method_selected()?(this.hide_payment_button(),this.show_place_order()):(this.show_payment_button(),this.hide_place_order()):(this.hide_payment_button(),e&&e.indexOf("stripe_")<0&&this.show_place_order())},wc_stripe.CheckoutGateway.prototype.banner_enabled=function(){return"1"===this.params.banner_enabled},wc_stripe.CheckoutGateway.prototype.checkout_fields_valid=function(){if(["checkout","order_pay"].indexOf(this.get_page())<0)return!0;var t=!0;return(t=this.fields.validateFields("billing"))?this.needs_shipping()&&o("#ship-to-different-address-checkbox").is(":checked")?(t=this.fields.validateFields("shipping"))||this.submit_error(this.params.messages.required_field):(t=this.is_valid_checkout())||this.submit_error(this.params.messages.terms):this.submit_error(this.params.messages.required_field),t},wc_stripe.CheckoutGateway.prototype.cart_contains_subscription=function(){return"undefined"!=typeof wc_stripe_cart_contains_subscription&&!0===wc_stripe_cart_contains_subscription},wc_stripe.CheckoutGateway.prototype.set_save_payment_method=function(t){o('[name="'+this.gateway_id+'_save_source_key"]').prop("checked",t)},wc_stripe.ProductGateway=function(){this.message_container="div.product",o("form.cart").on("found_variation",this.found_variation.bind(this)),o("form.cart").on("reset_data",this.reset_variation_data.bind(this)),this.buttonWidth=o("form.cart div.quantity").outerWidth(!0)+o(".single_add_to_cart_button").outerWidth();var t=o(".single_add_to_cart_button").css("marginLeft");t&&(this.buttonWidth+=parseInt(t.replace("px",""))),o(this.container).css("max-width",this.buttonWidth+"px")},wc_stripe.ProductGateway.prototype.get_quantity=function(){return parseInt(o('[name="quantity"]').val())},wc_stripe.ProductGateway.prototype.set_rest_nonce=function(t,e){this.params.rest_nonce=e},wc_stripe.ProductGateway.prototype.found_variation=function(t,e){var i=this.get_gateway_data();i.product.price=e.display_price,i.needs_shipping=!e.is_virtual,i.product.variation=e,this.set_gateway_data(i)},wc_stripe.ProductGateway.prototype.reset_variation_data=function(){var t=this.get_product_data();t.variation=!1,this.set_product_data(t),this.disable_payment_button()},wc_stripe.ProductGateway.prototype.disable_payment_button=function(){this.$button&&this.get_button().prop("disabled",!0).addClass("disabled")},wc_stripe.ProductGateway.prototype.enable_payment_button=function(){this.$button&&this.get_button().prop("disabled",!1).removeClass("disabled")},wc_stripe.ProductGateway.prototype.get_button=function(){return this.$button},wc_stripe.ProductGateway.prototype.is_variable_product=function(){return 0<o('[name="variation_id"]').length},wc_stripe.ProductGateway.prototype.variable_product_selected=function(){var t=o('input[name="variation_id"]').val();return!!t&&"0"!=t},wc_stripe.ProductGateway.prototype.get_product_data=function(){return this.get_gateway_data().product},wc_stripe.ProductGateway.prototype.set_product_data=function(t){var e=this.get_gateway_data();e.product=t,this.set_gateway_data(e)},wc_stripe.ProductGateway.prototype.get_form=function(){return o(this.container).closest("form")},wc_stripe.ProductGateway.prototype.add_to_cart=function(){return new Promise(function(e,i){this.block();var t={product_id:this.get_product_data().id,variation_id:this.is_variable_product()?o('[name="variation_id"]').val():0,qty:o('[name="quantity"]').val(),payment_method:this.gateway_id,currency:this.get_currency(),page_id:this.get_page()},s=this.get_form().find(':not([name="add-to-cart"],[name="quantity"],[name^="attribute_"],[name="variation_id"])').serializeArray();if(s)for(var a in s)t[s[a].name]=s[a].value;o.ajax({url:this.params.routes.add_to_cart,method:"POST",dataType:"json",data:o.extend({},t,this.get_product_variations()),beforeSend:this.ajax_before_send.bind(this)}).done(function(t){this.unblock(),t.code?(this.submit_error(t.message),i(t)):(this.set_total_price(t.data.total),this.set_total_price_cents(t.data.totalCents),this.set_display_items(t.data.displayItems),e(t.data))}.bind(this)).fail(function(t,e,i){this.unblock(),this.submit_error(i)}.bind(this))}.bind(this))},wc_stripe.ProductGateway.prototype.cart_calculation=function(t){return new Promise(function(e,i){o.ajax({url:this.params.routes.cart_calculation,method:"POST",dataType:"json",data:o.extend({},{product_id:this.get_product_data().id,variation_id:this.is_variable_product()&&t?t:0,qty:o('[name="quantity"]').val(),currency:this.get_currency(),payment_method:this.gateway_id},this.get_product_variations()),beforeSend:this.ajax_before_send.bind(this)}).done(function(t){t.code?(this.cart_calculation_error=!0,i(t)):(this.set_total_price(t.data.total),this.set_total_price_cents(t.data.totalCents),this.set_display_items(t.data.displayItems),e(t.data))}.bind(this)).fail(function(){}.bind(this))}.bind(this))},wc_stripe.ProductGateway.prototype.get_product_variations=function(){var s={};return this.is_variable_product()&&o('.variations [name^="attribute_"]').each(function(t,e){var i=o(e),e=i.data("attribute_name")||i.attr("name");s[e]=i.val()}),s},wc_stripe.CartGateway=function(){this.message_container="div.woocommerce",o(document.body).on("updated_wc_div",this.updated_html.bind(this)),o(document.body).on("updated_cart_totals",this.updated_html.bind(this)),o(document.body).on("wc_cart_emptied",this.cart_emptied.bind(this))},wc_stripe.CartGateway.prototype.submit_error=function(t){this.submit_message(this.get_error_message(t))},wc_stripe.CartGateway.prototype.updated_html=function(t){},wc_stripe.CartGateway.prototype.cart_emptied=function(t){},wc_stripe.CartGateway.prototype.add_cart_totals_class=function(){o(".cart_totals").addClass("stripe_cart_gateway_active")},wc_stripe.GooglePay=function(){};var s={apiVersion:2,apiVersionMinor:0},n={type:"CARD",parameters:{allowedAuthMethods:["PAN_ONLY"],allowedCardNetworks:["AMEX","DISCOVER","INTERAC","JCB","MASTERCARD","VISA"],assuranceDetailsRequired:!0}};wc_stripe.GooglePay.prototype.update_addresses=function(t){var e;t.paymentMethodData.info.billingAddress&&(e=t.paymentMethodData.info.billingAddress,this.is_current_page("checkout")&&this.is_valid_address(this.billing_address_object,"billing",["phone","email"])&&(e={phoneNumber:e.phoneNumber}),this.populate_billing_fields(e),e.phoneNumber&&this.fields.exists("shipping_phone")&&this.fields.isEmpty("shipping_phone")&&this.fields.set("shipping_phone",e.phoneNumber)),t.shippingAddress&&this.populate_shipping_fields(t.shippingAddress),t.email&&this.fields.set("email",t.email,"billing")},wc_stripe.GooglePay.prototype.map_address=function(t){return{city:t.locality,postcode:t.postalCode,state:t.administrativeArea,country:t.countryCode}},wc_stripe.GooglePay.prototype.update_payment_data=function(s){return new Promise(function(e,i){var t="default"==s.shippingOptionData.id?null:s.shippingOptionData.id;o.when(o.ajax({url:this.params.routes.payment_data,dataType:"json",method:"POST",data:{address:this.map_address(s.shippingAddress),shipping_method:t,page_id:this.get_page(),currency:this.get_currency()},beforeSend:this.ajax_before_send.bind(this)})).done(function(t){t.code?i(t.data.data):e(t.data)}.bind(this)).fail(function(){i()}.bind(this))}.bind(this))},wc_stripe.GooglePay.prototype.on_payment_data_changed=function(i){return new Promise(function(e){this.update_payment_data(i).then(function(t){e(t.paymentRequestUpdate),this.set_selected_shipping_methods(t.shipping_methods),this.payment_data_updated(t,i)}.bind(this))["catch"](function(t){e(t)}.bind(this))}.bind(this))},wc_stripe.GooglePay.prototype.payment_data_updated=function(t){},wc_stripe.GooglePay.prototype.get_merchant_info=function(){var t={merchantId:this.params.merchant_id,merchantName:this.params.merchant_name};return"TEST"===this.params.environment&&delete t.merchantId,t},wc_stripe.GooglePay.prototype.get_payment_options=function(){var t,e={environment:this.params.environment,merchantInfo:this.get_merchant_info(),paymentDataCallbacks:{onPaymentAuthorized:function(){return new Promise(function(t){t({transactionState:"SUCCESS"})}.bind(this))}}};return this.needs_shipping()&&(t=this.get_shipping_prefix(),(!this.is_current_page("checkout")||this.is_valid_address(this.get_address_object(t),t,["email","phone"]))&&this.is_current_page("checkout")||(e.paymentDataCallbacks.onPaymentDataChanged=this.on_payment_data_changed.bind(this))),e},wc_stripe.GooglePay.prototype.build_payment_request=function(){var t=o.extend({},s,{emailRequired:this.fields.requestFieldInWallet("billing_email"),merchantInfo:this.get_merchant_info(),allowedPaymentMethods:[o.extend({type:"CARD",tokenizationSpecification:{type:"PAYMENT_GATEWAY",parameters:{gateway:"stripe","stripe:version":"2018-10-31","stripe:publishableKey":this.params.api_key}}},n)],shippingAddressRequired:function(){if(this.needs_shipping()){var t=this.get_shipping_prefix();if(this.is_current_page("checkout")&&!this.is_valid_address(this.get_address_object(t),t,["email","phone"])||!this.is_current_page("checkout"))return!0}return!1}.bind(this)(),transactionInfo:{countryCode:this.params.processing_country,currencyCode:this.get_currency(),totalPriceStatus:"ESTIMATED",totalPrice:this.get_total_price().toString(),displayItems:this.get_display_items(),totalPriceLabel:this.params.total_price_label}});return t.allowedPaymentMethods[0].parameters.billingAddressRequired=function(){if(this.is_current_page("checkout")){var t=this.billing_address_object=this.get_address_object("billing");return this.fields.requestFieldInWallet("billing_phone")||!this.is_valid_address(t,"billing",["email"])?!0:!1}return!0}.bind(this)(),t.allowedPaymentMethods[0].parameters.billingAddressRequired&&(t.allowedPaymentMethods[0].parameters.billingAddressParameters={format:"FULL",phoneNumberRequired:this.fields.requestFieldInWallet("billing_phone")}),t.shippingAddressRequired?(t.shippingAddressParameters={},t.shippingOptionRequired=!0,t.shippingOptionParameters={shippingOptions:this.get_shipping_options()},t.callbackIntents=["SHIPPING_ADDRESS","SHIPPING_OPTION","PAYMENT_AUTHORIZATION"]):t.callbackIntents=["PAYMENT_AUTHORIZATION"],this.payment_request_options=t},wc_stripe.GooglePay.prototype.createPaymentsClient=function(){this.paymentsClient=new google.payments.api.PaymentsClient(this.get_payment_options())},wc_stripe.GooglePay.prototype.isReadyToPay=function(){return new Promise(function(t){var e=o.extend({},s);e.allowedPaymentMethods=[n],this.paymentsClient.isReadyToPay(e).then(function(){this.can_pay=!0,this.create_button(),t()}.bind(this))["catch"](function(t){t&&t.message&&-1<t.message.indexOf("ShadowRoot")?console.log("GPay is not supported on this browser."):this.submit_error(t)}.bind(this))}.bind(this))},wc_stripe.GooglePay.prototype.create_button=function(){this.$button&&this.$button.remove(),this.$button=o(this.paymentsClient.createButton(this.get_button_options())),this.$button.addClass("gpay-button-container")},wc_stripe.GooglePay.prototype.get_button_options=function(){var t={onClick:this.start.bind(this),buttonColor:this.params.button_color,buttonType:this.params.button_style,buttonSizeMode:this.params.button_size_mode};return null!==this.params.button_locale&&(t.buttonLocale=this.params.button_locale),t},wc_stripe.GooglePay.prototype.start=function(){this.createPaymentsClient(),this.paymentsClient.loadPaymentData(this.build_payment_request()).then(function(t){var e=JSON.parse(t.paymentMethodData.tokenizationData.token);this.update_addresses(t),this.stripe.createPaymentMethod({type:"card",card:{token:e.id},billing_details:this.get_billing_details()}).then(function(t){if(t.error)return this.submit_error(t.error);this.on_token_received(t.paymentMethod)}.bind(this))}.bind(this))["catch"](function(t){"CANCELED"!==t.statusCode&&(t.statusMessage&&-1<t.statusMessage.indexOf("paymentDataRequest.callbackIntent")?this.submit_error_code("DEVELOPER_ERROR_WHITELIST"):this.submit_error(t.statusMessage))}.bind(this))},wc_stripe.ApplePay=function(){},wc_stripe.ApplePay.prototype.initialize=function(){this.createPaymentRequest(),this.canMakePayment()},wc_stripe.ApplePay.prototype.get_payment_request_options=function(){return o.extend({},wc_stripe.BaseGateway.prototype.get_payment_request_options.apply(this,arguments),{disableWallets:["googlePay"]})},wc_stripe.ApplePay.prototype.create_button=function(){this.$button&&this.$button.remove(),this.$button=o(this.params.button),this.$button.on("click",this.start.bind(this)),this.append_button()},wc_stripe.ApplePay.prototype.canMakePayment=function(){return new Promise(function(e){this.paymentRequest.canMakePayment().then(function(t){t&&t.applePay&&(this.can_pay=!0,this.create_button(),o(this.container).show(),e(t))}.bind(this))}.bind(this))},wc_stripe.ApplePay.prototype.start=function(t){t.preventDefault(),this.paymentRequest.update(this.get_payment_request_update({total:{pending:!1}})),this.paymentRequest.show()},wc_stripe.PaymentRequest=function(){},wc_stripe.PaymentRequest.prototype.initialize=function(){this.createPaymentRequest(),this.createPaymentRequestButton(),this.canMakePayment(),this.paymentRequestButton.on("click",this.button_click.bind(this))},wc_stripe.PaymentRequest.prototype.button_click=function(t){},wc_stripe.PaymentRequest.prototype.createPaymentRequestButton=function(){this.paymentRequestButton&&this.paymentRequestButton.destroy(),this.paymentRequestButton=this.elements.create("paymentRequestButton",{paymentRequest:this.paymentRequest,style:{paymentRequestButton:{type:this.params.button.type,theme:this.params.button.theme,height:this.params.button.height}}})},wc_stripe.PaymentRequest.prototype.canMakePayment=function(){return new Promise(function(e){var i=this.paymentRequest;this.paymentRequest.canMakePayment().then(function(t){t&&!t.applePay&&i===this.paymentRequest&&(this.can_pay=!0,this.create_button(),o(this.container).show(),e(t))}.bind(this))}.bind(this))},wc_stripe.PaymentRequest.prototype.create_button=function(){this.paymentRequestButton.mount("#wc-stripe-payment-request-container")},wc_stripe.Afterpay=function(){},wc_stripe.Afterpay.prototype.is_eligible=function(t){return this.needs_shipping()&&t>this.get_min()&&t<this.get_max()},wc_stripe.Afterpay.prototype.get_min=function(){var t=this.get_currency(),t=this.params.requirements[t];return t?t[1]:0},wc_stripe.Afterpay.prototype.get_max=function(){var t=this.get_currency(),t=this.params.requirements[t];return t?t[2]:0},wc_stripe.Afterpay.prototype.add_eligibility=function(t,e){o(t).length&&(this.is_eligible(e)?o(t).removeClass("afterpay-ineligible"):this.hide_ineligible_active()&&o(t).addClass("afterpay-ineligible"))},wc_stripe.Afterpay.prototype.hide_ineligible_active=function(){return"yes"===this.params.hide_ineligible},wc_stripe.CheckoutFields=function(t,e){this.params=t,this.page=e,this.session_values=this.supportsSessionStorage()&&sessionStorage.getItem("wc_stripe_checkout_fields")?JSON.parse(sessionStorage.getItem("wc_stripe_checkout_fields")):{},this.fields=new Map(Object.keys(this.params).map(function(t){return null===this.params[t].value&&(t in this.session_values&&null!==this.session_values[t]?this.params[t].value=this.session_values[t]:this.params[t].value=""),[t,this.params[t].value]}.bind(this))),("checkout"===e||"cart"===e&&o(document.body).is(".woocommerce-checkout")||0<o("form.woocommerce-checkout").length)&&(o(document.body).on("updated_checkout",this.updated_checkout.bind(this)),o("form.checkout").on("change",".input-text, select",this.onChange.bind(this)),o("form.checkout").on("change",'[name="ship_to_different_address"]',this.on_ship_to_address_change.bind(this)),this.init_i18n(),o('[name="ship_to_different_address"]').is(":checked")?this.update_required_fields(o("#shipping_country").val(),"shipping_country"):this.update_required_fields(o("#billing_country").val(),"billing_country"))},wc_stripe.CheckoutFields.prototype.supportsSessionStorage=function(){return"sessionStorage"in a&&null!==a.sessionStorage&&["getItem","setItem"].reduce(function(t,e){return t&&e in sessionStorage}.bind(this),!0)},wc_stripe.CheckoutFields.prototype.init_i18n=function(){"undefined"!=typeof wc_address_i18n_params?this.locales=JSON.parse(wc_address_i18n_params.locale.replace(/&quot;/g,'"')):this.locales=null},wc_stripe.CheckoutFields.prototype.updated_checkout=function(){this.syncCheckoutFieldsWithDOM()},wc_stripe.CheckoutFields.prototype.syncCheckoutFieldsWithDOM=function(){for(var t in this.params)o("#"+t).length&&this.fields.set(t,o("#"+t).val())},wc_stripe.CheckoutFields.prototype.onChange=function(t){try{var e=t.currentTarget.name,i=t.currentTarget.value;this.fields.set(e,i),"billing_country"!==e&&"shipping_country"!==e||this.update_required_fields(i,e),this.supportsSessionStorage()&&sessionStorage.setItem("wc_stripe_checkout_fields",JSON.stringify(this.toJson()))}catch(s){console.log(s)}},wc_stripe.CheckoutFields.prototype.update_required_fields=function(t,e){if(this.locales){var i,s=-1<e.indexOf("billing_")?"billing_":"shipping_",t="undefined"!=typeof this.locales[t]?this.locales[t]:this.locales["default"],a=o.extend(!0,{},this.locales["default"],t);for(i in a){var n=s+i;this.params[n]&&(this.params[n]=o.extend(!0,{},this.params[n],a[i]))}}},wc_stripe.CheckoutFields.prototype.on_ship_to_address_change=function(t){o(t.currentTarget).is(":checked")&&this.update_required_fields(o("#shipping_country").val(),"shipping_country")},wc_stripe.CheckoutFields.prototype.requestFieldInWallet=function(t){return"checkout"===this.page?this.required(t)&&this.isEmpty(t):"order_pay"!==this.page&&this.required(t)},wc_stripe.CheckoutFields.prototype.set=function(t,e,i){this[t]&&"function"==typeof this[t]?this[t]().set.call(this,e,i):this.fields.set(t,e)},wc_stripe.CheckoutFields.prototype.get=function(t,e){var i;return this[t]&&"function"==typeof this[t]?i=this[t]().get.call(this,e):null!=(i=this.fields.get(t))&&""!==i||void 0!==e&&(i=e),void 0===i?"":i},wc_stripe.CheckoutFields.prototype.required=function(t){return!(!this.params[t]||"undefined"==typeof this.params[t].required)&&this.params[t].required},wc_stripe.CheckoutFields.prototype.exists=function(t){return t in this.params},wc_stripe.CheckoutFields.prototype.isEmpty=function(t){if(this.fields.has(t)){t=this.fields.get(t);return null==t||"string"==typeof t&&0===t.trim().length}return!0},wc_stripe.CheckoutFields.prototype.isValid=function(t){if(this[t]&&"function"==typeof this[t])return this[t]().isValid.apply(this,Array.prototype.slice.call(arguments,1))},wc_stripe.CheckoutFields.prototype.first_name=function(){return{set:function(t,e){this.fields.set(e+"_first_name",t)},get:function(t){return this.fields.get(t+"_first_name")},isValid:function(t){return"string"==typeof t&&0<t.length}}},wc_stripe.CheckoutFields.prototype.last_name=function(){return{set:function(t,e){this.fields.set(e+"_last_name",t)},get:function(t){return this.fields.get(t+"_last_name")},isValid:function(t){return"string"==typeof t&&0<t.length}}},wc_stripe.CheckoutFields.prototype.address_1=function(){return{set:function(t,e){this.fields.set(e+"_address_1",t)},get:function(t){return this.fields.get(t+"_address_1")},isValid:function(t){return"string"==typeof t&&0<t.length}}},wc_stripe.CheckoutFields.prototype.address_2=function(){return{set:function(t,e){this.fields.set(e+"_address_2",t)},get:function(t){return this.fields.get(t+"_address_2")},isValid:function(t){return"string"==typeof t&&0<t.length}}},wc_stripe.CheckoutFields.prototype.name=function(){return{set:function(t,e){this.fields.set(e+"_full_name",t);var i=t.split(" ");1<i.length?(t=i.pop(),this.fields.set(e+"_first_name",i.join(" ")),this.fields.set(e+"_last_name",t)):1==i.length&&this.fields.set(e+"_first_name",i[0])},get:function(t){return this.fields.get(t+"_first_name")+" "+this.fields.get(t+"_last_name")}}},wc_stripe.CheckoutFields.prototype.email=function(){return{set:function(t,e){this.fields.set(e+"_email",t)},get:function(t){return this.fields.get(t+"_email")},isValid:function(t){return"string"==typeof t&&0<t.length}}},wc_stripe.CheckoutFields.prototype.phone=function(){return{set:function(t,e){this.fields.set(e+"_phone",t)},get:function(t){return this.fields.get(t+"_phone")},isValid:function(t){return"string"==typeof t&&0<t.length}}},wc_stripe.CheckoutFields.prototype.country=function(){return{set:function(t,e){this.fields.set(e+"_country",t)},get:function(t){return this.fields.get(t+"_country")},isValid:function(t){return"string"==typeof t&&2===t.length}}},wc_stripe.CheckoutFields.prototype.state=function(){return{set:function(i,t){2<(i=i.toUpperCase()).length&&"checkout"===this.page&&o("#"+t+"_state option").each(function(){var t=o(this),e=t.text().toUpperCase();i===e&&(i=t.val())}),this.fields.set(t+"_state",i)},get:function(t){return this.fields.get(t+"_state")},isValid:function(t){return"string"==typeof t&&0<t.length}}},wc_stripe.CheckoutFields.prototype.city=function(){return{set:function(t,e){this.fields.set(e+"_city",t)},get:function(t){return this.fields.get(t+"_city")},isValid:function(t){return"string"==typeof t&&0<t.length}}},wc_stripe.CheckoutFields.prototype.postcode=function(){return{set:function(t,e){this.fields.set(e+"_postcode",t)},get:function(t){return this.fields.get(t+"_postcode")},isValid:function(t){return"string"==typeof t&&0<t.length}}},wc_stripe.CheckoutFields.prototype.recipient=function(){return wc_stripe.CheckoutFields.prototype.name.apply(this,arguments)},wc_stripe.CheckoutFields.prototype.payerName=function(){return wc_stripe.CheckoutFields.prototype.name.apply(this,arguments)},wc_stripe.CheckoutFields.prototype.payerEmail=function(){return wc_stripe.CheckoutFields.prototype.email.apply(this,arguments)},wc_stripe.CheckoutFields.prototype.payerPhone=function(){return wc_stripe.CheckoutFields.prototype.phone.apply(this,arguments)},wc_stripe.CheckoutFields.prototype.phoneNumber=function(){return wc_stripe.CheckoutFields.prototype.phone.apply(this,arguments)},wc_stripe.CheckoutFields.prototype.countryCode=function(){return wc_stripe.CheckoutFields.prototype.country.apply(this,arguments)},wc_stripe.CheckoutFields.prototype.address1=function(){return wc_stripe.CheckoutFields.prototype.address_1.apply(this,arguments)},wc_stripe.CheckoutFields.prototype.address2=function(){return wc_stripe.CheckoutFields.prototype.address_2.apply(this,arguments)},wc_stripe.CheckoutFields.prototype.line1=function(){return wc_stripe.CheckoutFields.prototype.address_1.apply(this,arguments)},wc_stripe.CheckoutFields.prototype.line2=function(){return wc_stripe.CheckoutFields.prototype.address_2.apply(this,arguments)},wc_stripe.CheckoutFields.prototype.addressLine=function(){return{set:function(t,e){0<t.length&&this.fields.set(e+"_address_1",t[0]),1<t.length&&this.fields.set(e+"_address_2",t[1])},get:function(t){return[this.fields.get(t+"_address_1"),this.fields.get(t+"_address_2")]},isValid:function(t){return 0<t.length&&("string"==typeof t[0]&&0<t[0].length)}}},wc_stripe.CheckoutFields.prototype.region=function(){return wc_stripe.CheckoutFields.prototype.state.apply(this,arguments)},wc_stripe.CheckoutFields.prototype.administrativeArea=function(){return wc_stripe.CheckoutFields.prototype.state.apply(this,arguments)},wc_stripe.CheckoutFields.prototype.locality=function(){return wc_stripe.CheckoutFields.prototype.city.apply(this,arguments)},wc_stripe.CheckoutFields.prototype.postal_code=function(){return wc_stripe.CheckoutFields.prototype.postcode.apply(this,arguments)},wc_stripe.CheckoutFields.prototype.postalCode=function(){return wc_stripe.CheckoutFields.prototype.postcode.apply(this,arguments)},wc_stripe.CheckoutFields.prototype.toJson=function(){var i={};return this.fields.forEach(function(t,e){i[e]=t}),i},wc_stripe.CheckoutFields.prototype.toFormFields=function(t){var i=[];this.fields.forEach(function(t,e){e='[name="'+e+'"]';o(e).length&&""!==t&&(o(e).val()!==t&&o(e).is("select")&&i.push(e),o(e).val(t))}),0<i.length&&o(i.join(",")).trigger("change"),void 0!==t&&o(document.body).trigger("update_checkout",t)},wc_stripe.CheckoutFields.prototype.validateFields=function(t){for(var e in this.params){var i=this.params[e];if(-1<e.indexOf(t)&&i.required&&o("#"+e).length&&o("#"+e).is(":visible")){i=o("#"+e).val();if(null==i||0===i.length)return!1}}return!0};try{i=Stripe(wc_stripe_params_v3.api_key,"test"===wc_stripe_params_v3.mode&&""===wc_stripe_params_v3.account?{}:{stripeAccount:wc_stripe_params_v3.account})}catch(t){return a.alert(t),console.log(t)}var r=new wc_stripe.CheckoutFields(wc_stripe_checkout_fields,wc_stripe_params_v3.page)}(window,jQuery);
1
+ !function(a,o){a.wc_stripe={};var i=null;"undefined"==typeof wc_stripe_checkout_fields&&(a.wc_stripe_checkout_fields=[]),wc_stripe.BaseGateway=function(t,e){this.params=t,this.gateway_id=this.params.gateway_id,this.container=void 0===e?"li.payment_method_".concat(this.gateway_id):e,o(this.container).length||(this.container=".payment_method_".concat(this.gateway_id)),this.token_selector=this.params.token_selector,this.saved_method_selector=this.params.saved_method_selector,this.payment_token_received=!1,this.stripe=i,this.fields=r,this.elements=i.elements(o.extend({},{locale:"auto"},this.get_element_options())),this.initialize()},wc_stripe.BaseGateway.prototype.get_page=function(){var t=wc_stripe_params_v3.page;return"cart"===t&&o(document.body).is(".woocommerce-checkout")&&(t="checkout"),t},wc_stripe.BaseGateway.prototype.set_nonce=function(t){this.fields.set(this.gateway_id+"_token_key",t),o(this.token_selector).val(t)},wc_stripe.BaseGateway.prototype.set_intent=function(t){this.fields.set(this.gateway_id+"_payment_intent_key",t),o("#"+this.gateway_id+"_payment_intent_key").val(t)},wc_stripe.BaseGateway.prototype.get_element_options=function(){return this.params.elementOptions},wc_stripe.BaseGateway.prototype.initialize=function(){},wc_stripe.BaseGateway.prototype.create_button=function(){},wc_stripe.BaseGateway.prototype.is_gateway_selected=function(){return o('[name="payment_method"]:checked').val()===this.gateway_id},wc_stripe.BaseGateway.prototype.is_saved_method_selected=function(){return this.is_gateway_selected()&&"saved"===o('[name="'+this.gateway_id+'_payment_type_key"]:checked').val()},wc_stripe.BaseGateway.prototype.has_checkout_error=function(){return 0<o("#wc_stripe_checkout_error").length&&this.is_gateway_selected()},wc_stripe.BaseGateway.prototype.submit_error=function(t,e){var i=this.get_error_message(t);i.indexOf("</ul>")<0&&(i='<div class="'+function(){var t="woocommerce-NoticeGroup";return this.is_current_page("checkout")&&(t+=" woocommerce-NoticeGroup-checkout"),t}.bind(this)()+'"><ul class="woocommerce-error"><li>'+i+"</li></ul></div>");t=o(document.body).triggerHandler("wc_stripe_submit_error",[i,t,this]);i=void 0===t?i:t,this.submit_message(i,e)},wc_stripe.BaseGateway.prototype.submit_error_code=function(t){console.log(t)},wc_stripe.BaseGateway.prototype.get_error_message=function(t){return"object"==typeof t&&(t=t.code&&wc_stripe_messages[t.code]?wc_stripe_messages[t.code]:t.message),t},wc_stripe.BaseGateway.prototype.submit_message=function(t,e){o(".woocommerce-NoticeGroup-checkout, .woocommerce-error, .woocommerce-message").remove();var i=o(this.message_container);i.length&&(e||!i.closest("form").length)||(i.length||(i=o(this.container)),i=i.closest("form")),i.prepend(t),i.removeClass("processing").unblock(),i.find(".input-text, select, input:checkbox").trigger("blur"),o.scroll_to_notices?o.scroll_to_notices(i):o("html, body").animate({scrollTop:i.offset().top-100},1e3)},wc_stripe.BaseGateway.prototype.get_billing_details=function(){var t=this.get_billing_prefix(),t={name:this.get_customer_name(t),address:{city:this.fields.get(t+"_city",null),country:this.fields.get(t+"_country",null),line1:this.fields.get(t+"_address_1",null),line2:this.fields.get(t+"_address_2",null),postal_code:this.fields.get(t+"_postcode",null),state:this.fields.get(t+"_state",null)}};return t.name&&" "!==t.name||delete t.name,""!=this.fields.get("billing_email")&&(t.email=this.fields.get("billing_email")),""!=this.fields.get("billing_phone")&&(t.phone=this.fields.get("billing_phone")),t},wc_stripe.BaseGateway.prototype.get_first_name=function(t){return o("#"+t+"_first_name").val()},wc_stripe.BaseGateway.prototype.get_last_name=function(t){return o("#"+t+"_last_name").val()},wc_stripe.BaseGateway.prototype.get_shipping_prefix=function(){return this.needs_shipping()&&0<o('[name="ship_to_different_address"]').length&&o('[name="ship_to_different_address"]').is(":checked")?"shipping":"billing"},wc_stripe.BaseGateway.prototype.get_billing_prefix=function(){var t="billing";o('[name="billing_same_as_shipping"]').length&&o('[name="billing_same_as_shipping"]').is(":checked")&&(t="shipping"),o('[name="bill_to_different_address"]').length&&(1<o('[name="bill_to_different_address"]').length?"same_as_shipping"===o('[name="bill_to_different_address"]:checked').val()&&(t="shipping"):o('[name="bill_to_different_address"]').is(":checked")||(t="shipping"));var e=o(document.body).triggerHandler("wc_stripe_get_billing_prefix",[t]);return void 0===e?t:e},wc_stripe.BaseGateway.prototype.should_save_method=function(){return o("#"+this.gateway_id+"_save_source_key").is(":checked")},wc_stripe.BaseGateway.prototype.is_add_payment_method_page=function(){return"add_payment_method"===this.get_page()||o(document.body).hasClass("woocommerce-add-payment-method")},wc_stripe.BaseGateway.prototype.is_change_payment_method=function(){return"change_payment_method"===this.get_page()},wc_stripe.BaseGateway.prototype.get_selected_payment_method=function(){return o(this.saved_method_selector).val()},wc_stripe.BaseGateway.prototype.needs_shipping=function(){return this.get_gateway_data().needs_shipping},wc_stripe.BaseGateway.prototype.get_currency=function(){return this.get_gateway_data().currency},wc_stripe.BaseGateway.prototype.get_gateway_data=function(){var t=o(this.container).find(".woocommerce_".concat(this.gateway_id,"_gateway_data")).data("gateway");return void 0===t&&this.is_current_page("checkout")&&void 0===(t=o("form.checkout").find(".woocommerce_".concat(this.gateway_id,"_gateway_data")).data("gateway"))&&(t=o(".woocommerce_"+this.gateway_id+"_gateway_data").data("gateway")),t},wc_stripe.BaseGateway.prototype.set_gateway_data=function(t){o(this.container).find(".woocommerce_".concat(this.gateway_id,"_gateway_data")).data("gateway",t)},wc_stripe.BaseGateway.prototype.has_gateway_data=function(){return void 0!==this.get_gateway_data()},wc_stripe.BaseGateway.prototype.get_customer_name=function(t){return this.fields.get(t+"_first_name")+" "+this.fields.get(t+"_last_name")},wc_stripe.BaseGateway.prototype.get_customer_email=function(){return this.fields.get("billing_email")},wc_stripe.BaseGateway.prototype.get_address_field_hash=function(t){for(var e=["_first_name","_last_name","_address_1","_address_2","_postcode","_city","_state","_country"],i="",s=0;s<e.length;s++)i+=this.fields.get(t+e[s])+"_";return i},wc_stripe.BaseGateway.prototype.block=function(){o().block&&o.blockUI({message:null,overlayCSS:{background:"#fff",opacity:.6}})},wc_stripe.BaseGateway.prototype.unblock=function(){o().block&&o.unblockUI()},wc_stripe.BaseGateway.prototype.get_form=function(){return o(this.token_selector).closest("form")},wc_stripe.BaseGateway.prototype.get_total_price=function(){return this.get_gateway_data().total},wc_stripe.BaseGateway.prototype.get_total_price_cents=function(){return this.get_gateway_data().total_cents},wc_stripe.BaseGateway.prototype.set_total_price=function(t){var e=this.get_gateway_data();e.total=t,this.set_gateway_data(e)},wc_stripe.BaseGateway.prototype.set_total_price_cents=function(t){var e=this.get_gateway_data();e.total_cents=t,this.set_gateway_data(e)},wc_stripe.BaseGateway.prototype.set_payment_method=function(t){o('[name="payment_method"][value="'+t+'"]').prop("checked",!0).trigger("click")},wc_stripe.BaseGateway.prototype.set_selected_shipping_methods=function(t){if(this.fields.set("shipping_method",t),t&&o('[name^="shipping_method"]').length)for(var e in t){var i=t[e];o('[name="shipping_method['+e+']"][value="'+i+'"]').prop("checked",!0).trigger("change")}},wc_stripe.BaseGateway.prototype.on_token_received=function(t){this.payment_token_received=!0,this.set_nonce(t.id),this.process_checkout()},wc_stripe.BaseGateway.prototype.createPaymentRequest=function(){try{this.payment_request_options=this.get_payment_request_options(),this.paymentRequest=i.paymentRequest(this.payment_request_options),this.payment_request_options.requestShipping&&(this.paymentRequest.on("shippingaddresschange",this.update_shipping_address.bind(this)),this.paymentRequest.on("shippingoptionchange",this.update_shipping_method.bind(this))),this.paymentRequest.on("paymentmethod",this.on_payment_method_received.bind(this))}catch(t){return void this.submit_error(t.message)}},wc_stripe.BaseGateway.prototype.get_payment_request_options=function(){var t={country:this.params.country_code,currency:this.get_currency().toLowerCase(),total:{amount:this.get_total_price_cents(),label:this.params.total_label,pending:!0},requestPayerName:function(){return!this.is_current_page("checkout")||!this.is_valid_address(this.get_address_object("billing"),"billing",["email","phone"])}.bind(this)(),requestPayerEmail:this.fields.requestFieldInWallet("billing_email"),requestPayerPhone:this.fields.requestFieldInWallet("billing_phone"),requestShipping:function(){if(this.needs_shipping()){var t=this.get_shipping_prefix();if(this.is_current_page("checkout")&&!this.is_valid_address(this.get_address_object(t),t,["email","phone"])||!this.is_current_page("checkout"))return!0}return!1}.bind(this)()},e=this.get_display_items(),i=this.get_shipping_options();return e&&(t.displayItems=e),t.requestShipping&&i&&(t.shippingOptions=i),t},wc_stripe.BaseGateway.prototype.get_payment_request_update=function(t){var e={currency:this.get_currency().toLowerCase(),total:{amount:parseInt(this.get_total_price_cents()),label:this.params.total_label,pending:!0}},i=this.get_display_items(),s=this.get_shipping_options();return i&&(e.displayItems=i),this.payment_request_options.requestShipping&&s&&(e.shippingOptions=s),t&&(e=o.extend(!0,{},e,t)),e},wc_stripe.BaseGateway.prototype.get_display_items=function(){return this.get_gateway_data().items},wc_stripe.BaseGateway.prototype.set_display_items=function(t){var e=this.get_gateway_data();e.items=t,this.set_gateway_data(e)},wc_stripe.BaseGateway.prototype.get_shipping_options=function(){return this.get_gateway_data().shipping_options},wc_stripe.BaseGateway.prototype.set_shipping_options=function(t){var e=this.get_gateway_data();e.shipping_options=t,this.set_gateway_data(e)},wc_stripe.BaseGateway.prototype.map_address=function(t){return{city:t.city,postcode:t.postalCode,state:t.region,country:t.country}},wc_stripe.BaseGateway.prototype.on_payment_method_received=function(t){try{this.payment_response=t,this.populate_checkout_fields(t),t.complete("success"),this.on_token_received(t.paymentMethod)}catch(e){a.alert(e)}},wc_stripe.BaseGateway.prototype.populate_checkout_fields=function(t){this.set_nonce(t.paymentMethod.id),this.update_addresses(t)},wc_stripe.BaseGateway.prototype.update_addresses=function(t){t.payerName&&this.fields.set("name",t.payerName,"billing"),t.payerEmail&&this.fields.set("email",t.payerEmail,"billing"),t.payerPhone&&(this.fields.set("phone",t.payerPhone,"billing"),this.fields.exists("shipping_phone")&&this.fields.isEmpty("shipping_phone")&&this.fields.set("shipping_phone",t.payerPhone)),t.shippingAddress&&this.populate_shipping_fields(t.shippingAddress),t.paymentMethod.billing_details.address&&this.populate_billing_fields(t.paymentMethod.billing_details.address)},wc_stripe.BaseGateway.prototype.populate_address_fields=function(t,e){for(var i in t)null!==t[i]&&this.fields.set(i,t[i],e)},wc_stripe.BaseGateway.prototype.populate_billing_fields=function(t){this.populate_address_fields(t,"billing")},wc_stripe.BaseGateway.prototype.populate_shipping_fields=function(t){this.populate_address_fields(t,"shipping")},wc_stripe.BaseGateway.prototype.get_address_fields=function(){return["first_name","last_name","country","address_1","address_2","city","state","postcode","phone","email"]},wc_stripe.BaseGateway.prototype.get_address_object=function(e){var i={};return this.get_address_fields().forEach(function(t){i[t]=this.fields.get(t,e)}.bind(this)),i},wc_stripe.BaseGateway.prototype.is_current_page=function(t){return Array.isArray(t)?-1<t.indexOf(this.get_page()):this.get_page()===t},wc_stripe.BaseGateway.prototype.is_valid_address=function(t,e,i){if(o.isEmptyObject(t))return!1;var s=this.get_address_fields();void 0!==i&&i.forEach(function(t){-1<s.indexOf(t)&&s.splice(s.indexOf(t),1)});for(var a=0;a<s.length;a++){var n=s[a];if(this.fields.required(e+"_"+n)&&(!t[n]||"undefined"==typeof t[n]||!this.fields.isValid(n,t[n],t)))return!1}return!0},wc_stripe.BaseGateway.prototype.ajax_before_send=function(t){0<this.params.user_id&&t.setRequestHeader("X-WP-Nonce",this.params.rest_nonce)},wc_stripe.BaseGateway.prototype.process_checkout=function(){return new Promise(function(){this.block(),o.ajax({url:this.params.routes.checkout,method:"POST",dataType:"json",data:o.extend({},this.serialize_fields(),{payment_method:this.gateway_id,page_id:this.get_page(),currency:this.get_currency()}),beforeSend:this.ajax_before_send.bind(this)}).done(function(t){t.reload?a.location.reload():"success"===t.result?a.location=t.redirect:(t.messages&&this.submit_error(t.messages),this.unblock())}.bind(this)).fail(function(t,e,i){this.unblock(),this.submit_error(i)}.bind(this))}.bind(this))},wc_stripe.BaseGateway.prototype.process_payment=function(t,e){o.ajax({method:"POST",url:this.params.routes.checkout_payment,dataType:"json",data:o.extend({},this.fields.toJson(),{order_id:t,order_key:e}),beforeSend:this.ajax_before_send.bind(this)}).done(function(t){if(t.result&&"success"===t.result)a.location=t.redirect;else{if(t.reload)return a.location.reload();t.messages?(this.payment_token_received=!1,this.submit_error(t.messages)):this.submit_error(wc_checkout_params.i18n_checkout_error)}}.bind(this)).fail(function(){}.bind(this))},wc_stripe.BaseGateway.prototype.handle_card_action=function(e){try{return this.stripe.handleCardAction(e.client_secret).then(function(t){if(t.error)return this.payment_token_received=!1,this.submit_error(t.error),void this.sync_payment_intent(e.order_id,e.client_secret)["catch"](function(t){this.submit_error(t.message)}.bind(this));this.is_current_page("order_pay")?this.get_form().submit():this.process_payment(e.order_id,e.order_key)}.bind(this))["catch"](function(t){this.submit_error(t.message)}.bind(this)),!1}catch(t){}},wc_stripe.BaseGateway.prototype.handle_card_setup=function(e){try{return this.stripe.confirmCardSetup(e.client_secret).then(function(t){if(t.error)return this.payment_token_received=!1,this.submit_error(t.error);this.is_current_page("order_pay")?this.get_form().submit():this.process_payment(e.order_id,e.order_key)}.bind(this))["catch"](function(t){this.submit_error(t.message)}.bind(this)),!1}catch(t){}},wc_stripe.BaseGateway.prototype.hashchange=function(t){var e=a.location.hash.match(/response=(.*)/);if(e)try{var i=JSON.parse(a.atob(decodeURIComponent(e[1])));i&&i.hasOwnProperty("client_secret")&&i.gateway_id===this.gateway_id&&(history.pushState({},"",a.location.pathname),"intent"===i.type?this.handle_card_action(i):this.handle_card_setup(i))}catch(s){}return!0},wc_stripe.BaseGateway.prototype.sync_payment_intent=function(t,s){return new Promise(function(e,i){o.when(o.ajax({method:"POST",dataType:"json",url:this.params.routes.sync_intent,data:{order_id:t,client_secret:s},beforeSend:this.ajax_before_send.bind(this)})).done(function(t){(t.code?i:e)(t)}).fail(function(t,e,i){this.submit_error(i)}.bind(this))}.bind(this))},wc_stripe.BaseGateway.prototype.serialize_form=function(t){var e,i=t.find("input").filter(function(t,e){return!o(e).is('[name^="add-to-cart"]')}.bind(this)).serializeArray(),s={};for(e in i){var a=i[e];s[a.name]=a.value}return s.payment_method=this.gateway_id,s},wc_stripe.BaseGateway.prototype.serialize_fields=function(){return o.extend({},this.fields.toJson(),o(document.body).triggerHandler("wc_stripe_process_checkout_data",[this,this.fields]))},wc_stripe.BaseGateway.prototype.map_shipping_methods=function(t){var e={};return"default"===t||1<(t=t.match(/^([\w+]):(.+)$/)).length&&(e[t[1]]=t[2]),e},wc_stripe.BaseGateway.prototype.maybe_set_ship_to_different=function(){o('[name="ship_to_different_address"]').length&&o('[name="ship_to_different_address"]').prop("checked",this.get_address_field_hash("billing")!==this.get_address_field_hash("shipping")).trigger("change")},wc_stripe.BaseGateway.prototype.update_shipping_address=function(s){return new Promise(function(e,i){o.ajax({url:this.params.routes.shipping_address,method:"POST",dataType:"json",data:{address:this.map_address(s.shippingAddress),payment_method:this.gateway_id,page_id:this.get_page(),currency:this.get_currency()},beforeSend:this.ajax_before_send.bind(this)}).done(function(t){t.code?(s.updateWith(t.data.newData),i(t.data)):(s.updateWith(t.data.newData),this.fields.set("shipping_method",t.data.shipping_method),e(t.data))}.bind(this)).fail(function(){}.bind(this))}.bind(this))},wc_stripe.BaseGateway.prototype.update_shipping_method=function(s){return new Promise(function(e,i){o.ajax({url:this.params.routes.shipping_method,method:"POST",dataType:"json",data:{shipping_method:s.shippingOption.id,payment_method:this.gateway_id,currency:this.get_currency(),page_id:this.get_page()},beforeSend:this.ajax_before_send.bind(this)}).done(function(t){t.code?(s.updateWith(t.data.newData),i(t.data)):(this.set_selected_shipping_methods(t.data.shipping_methods),s.updateWith(t.data.newData),e(t.data))}.bind(this)).fail(function(t,e,i){this.submit_error(i)}.bind(this))}.bind(this))},wc_stripe.CheckoutGateway=function(){this.message_container="li.payment_method_"+this.gateway_id,this.banner_container="li.banner_payment_method_"+this.gateway_id,o(document.body).on("update_checkout",this.update_checkout.bind(this)),o(document.body).on("updated_checkout",this.updated_checkout.bind(this)),o(document.body).on("updated_checkout",this.container_styles.bind(this)),o(document.body).on("checkout_error",this.checkout_error.bind(this)),o(this.token_selector).closest("form").on("checkout_place_order_"+this.gateway_id,this.checkout_place_order.bind(this)),o(document.body).on("wc_stripe_new_method_"+this.gateway_id,this.on_show_new_methods.bind(this)),o(document.body).on("wc_stripe_saved_method_"+this.gateway_id,this.on_show_saved_methods.bind(this)),o(document.body).on("wc_stripe_payment_method_selected",this.on_payment_method_selected.bind(this)),this.banner_enabled()&&o(".woocommerce-billing-fields").length&&o(".wc-stripe-banner-checkout").css("max-width",o(".woocommerce-billing-fields").outerWidth(!0)),this.container_styles(),this.hasOrderReviewParams()},wc_stripe.CheckoutGateway.prototype.container_styles=function(){this.params.description||o(this.container).addClass("wc-stripe-no-desc"),o(this.container).find(".wc-stripe-saved-methods").length||o(this.container).find(".payment_box").addClass("wc-stripe-no-methods")},wc_stripe.CheckoutGateway.prototype.hasOrderReviewParams=function(){var t=a.location.search.match(/_stripe_order_review=(.+)/);if(t&&1<t.length)try{var e=JSON.parse(a.atob(decodeURIComponent(t[1])));this.gateway_id===e.payment_method&&(o(function(){this.payment_token_received=!0,this.set_nonce(e.payment_nonce),this.set_use_new_option(!0)}.bind(this)),history.pushState({},"",a.location.pathname))}catch(i){}},wc_stripe.CheckoutGateway.prototype.has3DSecureParams=function(){if((this.is_current_page("order_pay")||this.is_change_payment_method())&&a.location.hash&&"string"==typeof a.location.hash){var t=a.location.hash.match(/response=(.*)/);if(t)try{var e=JSON.parse(a.atob(decodeURIComponent(t[1])));e&&e.hasOwnProperty("client_secret")&&e.gateway_id===this.gateway_id&&(o(function(){this.set_payment_method(this.gateway_id),this.set_use_new_option(!0),this.set_nonce(e.pm),!0===e.save_method&&this.set_save_payment_method(!0),o('[name="terms"]').prop("checked",!0)}.bind(this)),history.pushState({},"",a.location.pathname+a.location.search),this.handle_card_action(e))}catch(i){}}},wc_stripe.CheckoutGateway.prototype.update_shipping_address=function(){return wc_stripe.BaseGateway.prototype.update_shipping_address.apply(this,arguments).then(function(t){this.populate_address_fields(t.address,this.get_shipping_prefix()),this.fields.toFormFields({update_shipping_method:!1})}.bind(this))},wc_stripe.CheckoutGateway.prototype.updated_checkout=function(){},wc_stripe.CheckoutGateway.prototype.update_checkout=function(){},wc_stripe.CheckoutGateway.prototype.checkout_error=function(){this.has_checkout_error()&&(this.payment_token_received=!1,this.payment_response=null,this.show_payment_button(),this.hide_place_order())},wc_stripe.CheckoutGateway.prototype.is_valid_checkout=function(){return!(o('[name="terms"]').length&&o('[name="terms"]').is(":visible")&&!o('[name="terms"]').is(":checked"))},wc_stripe.CheckoutGateway.prototype.get_payment_method=function(){return o('[name="payment_method"]:checked').val()},wc_stripe.CheckoutGateway.prototype.set_use_new_option=function(t){o("#"+this.gateway_id+"_use_new").prop("checked",t).trigger("change")},wc_stripe.CheckoutGateway.prototype.checkout_place_order=function(){return this.is_valid_checkout()?!!this.is_saved_method_selected()||this.payment_token_received:(this.submit_error(this.params.messages.terms),!1)},wc_stripe.CheckoutGateway.prototype.on_token_received=function(t){this.payment_token_received=!0,this.set_nonce(t.id),this.hide_payment_button(),this.show_place_order()},wc_stripe.CheckoutGateway.prototype.block=function(){o().block&&o("form.checkout").block({message:null,overlayCSS:{background:"#fff",opacity:.6}})},wc_stripe.CheckoutGateway.prototype.unblock=function(){o().block&&o("form.checkout").unblock()},wc_stripe.CheckoutGateway.prototype.hide_place_order=function(){o("#place_order").addClass("wc-stripe-hide")},wc_stripe.CheckoutGateway.prototype.show_place_order=function(){o("#place_order").removeClass("wc-stripe-hide")},wc_stripe.CheckoutGateway.prototype.on_show_new_methods=function(){this.payment_token_received?(this.show_place_order(),this.hide_payment_button()):(this.hide_place_order(),this.show_payment_button())},wc_stripe.CheckoutGateway.prototype.on_show_saved_methods=function(){this.hide_payment_button(),this.show_place_order()},wc_stripe.CheckoutGateway.prototype.show_payment_button=function(){this.$button&&this.$button.show()},wc_stripe.CheckoutGateway.prototype.hide_payment_button=function(){this.$button&&this.$button.hide()},wc_stripe.CheckoutGateway.prototype.trigger_payment_method_selected=function(){this.on_payment_method_selected(null,o('[name="payment_method"]:checked').val())},wc_stripe.CheckoutGateway.prototype.on_payment_method_selected=function(t,e){e===this.gateway_id?this.payment_token_received||this.is_saved_method_selected()?(this.hide_payment_button(),this.show_place_order()):(this.show_payment_button(),this.hide_place_order()):(this.hide_payment_button(),e&&e.indexOf("stripe_")<0&&this.show_place_order())},wc_stripe.CheckoutGateway.prototype.banner_enabled=function(){return"1"===this.params.banner_enabled},wc_stripe.CheckoutGateway.prototype.checkout_fields_valid=function(){if(["checkout","order_pay"].indexOf(this.get_page())<0)return!0;var t=!0;return(t=this.fields.validateFields("billing"))?this.needs_shipping()&&o("#ship-to-different-address-checkbox").is(":checked")?(t=this.fields.validateFields("shipping"))||this.submit_error(this.params.messages.required_field):(t=this.is_valid_checkout())||this.submit_error(this.params.messages.terms):this.submit_error(this.params.messages.required_field),t},wc_stripe.CheckoutGateway.prototype.cart_contains_subscription=function(){return"undefined"!=typeof wc_stripe_cart_contains_subscription&&!0===wc_stripe_cart_contains_subscription},wc_stripe.CheckoutGateway.prototype.set_save_payment_method=function(t){o('[name="'+this.gateway_id+'_save_source_key"]').prop("checked",t)},wc_stripe.ProductGateway=function(){this.message_container="div.product",o("form.cart").on("found_variation",this.found_variation.bind(this)),o("form.cart").on("reset_data",this.reset_variation_data.bind(this)),this.buttonWidth=o("form.cart div.quantity").outerWidth(!0)+o(".single_add_to_cart_button").outerWidth();var t=o(".single_add_to_cart_button").css("marginLeft");t&&(this.buttonWidth+=parseInt(t.replace("px",""))),o(this.container).css("max-width",this.buttonWidth+"px")},wc_stripe.ProductGateway.prototype.get_quantity=function(){return parseInt(o('[name="quantity"]').val())},wc_stripe.ProductGateway.prototype.set_rest_nonce=function(t,e){this.params.rest_nonce=e},wc_stripe.ProductGateway.prototype.found_variation=function(t,e){var i=this.get_gateway_data();i.product.price=e.display_price,i.needs_shipping=!e.is_virtual,i.product.variation=e,this.set_gateway_data(i)},wc_stripe.ProductGateway.prototype.reset_variation_data=function(){var t=this.get_product_data();t.variation=!1,this.set_product_data(t),this.disable_payment_button()},wc_stripe.ProductGateway.prototype.disable_payment_button=function(){this.$button&&this.get_button().prop("disabled",!0).addClass("disabled")},wc_stripe.ProductGateway.prototype.enable_payment_button=function(){this.$button&&this.get_button().prop("disabled",!1).removeClass("disabled")},wc_stripe.ProductGateway.prototype.get_button=function(){return this.$button},wc_stripe.ProductGateway.prototype.is_variable_product=function(){return!!this.get_product_data().variation||0<o('[name="variation_id"]').length},wc_stripe.ProductGateway.prototype.variable_product_selected=function(){var t=this.get_product_data().variation,e=o('input[name="variation_id"]').val();return!!t||!!e&&"0"!=e},wc_stripe.ProductGateway.prototype.get_product_data=function(){return this.get_gateway_data().product},wc_stripe.ProductGateway.prototype.set_product_data=function(t){var e=this.get_gateway_data();e.product=t,this.set_gateway_data(e)},wc_stripe.ProductGateway.prototype.get_form=function(){return o(this.container).closest("form")},wc_stripe.ProductGateway.prototype.add_to_cart=function(){return new Promise(function(e,i){this.block();var t={product_id:this.get_product_data().id,variation_id:this.is_variable_product()?o('[name="variation_id"]').val():0,qty:o('[name="quantity"]').val(),payment_method:this.gateway_id,currency:this.get_currency(),page_id:this.get_page()},s=this.get_form().find(':not([name="add-to-cart"],[name="quantity"],[name^="attribute_"],[name="variation_id"])').serializeArray();if(s)for(var a in s)t[s[a].name]=s[a].value;o.ajax({url:this.params.routes.add_to_cart,method:"POST",dataType:"json",data:o.extend({},t,this.get_product_variations()),beforeSend:this.ajax_before_send.bind(this)}).done(function(t){this.unblock(),t.code?(this.submit_error(t.message),i(t)):(this.set_total_price(t.data.total),this.set_total_price_cents(t.data.totalCents),this.set_display_items(t.data.displayItems),e(t.data))}.bind(this)).fail(function(t,e,i){this.unblock(),this.submit_error(i)}.bind(this))}.bind(this))},wc_stripe.ProductGateway.prototype.cart_calculation=function(t){return new Promise(function(e,i){this.processing_calculation=!0,o.ajax({url:this.params.routes.cart_calculation,method:"POST",dataType:"json",data:o.extend({},{product_id:this.get_product_data().id,variation_id:this.is_variable_product()&&t?t:0,qty:o('[name="quantity"]').val(),currency:this.get_currency(),payment_method:this.gateway_id},this.get_product_variations()),beforeSend:this.ajax_before_send.bind(this)}).done(function(t){this.processing_calculation=!1,t.code?(this.cart_calculation_error=!0,i(t)):(this.set_total_price(t.data.total),this.set_total_price_cents(t.data.totalCents),this.set_display_items(t.data.displayItems),e(t.data))}.bind(this)).fail(function(){this.processing_calculation=!1}.bind(this))}.bind(this))},wc_stripe.ProductGateway.prototype.get_product_variations=function(){var s={};return this.is_variable_product()&&o('.variations [name^="attribute_"]').each(function(t,e){var i=o(e),e=i.data("attribute_name")||i.attr("name");s[e]=i.val()}),s},wc_stripe.CartGateway=function(){this.message_container="div.woocommerce",o(document.body).on("updated_wc_div",this.updated_html.bind(this)),o(document.body).on("updated_cart_totals",this.updated_html.bind(this)),o(document.body).on("wc_cart_emptied",this.cart_emptied.bind(this))},wc_stripe.CartGateway.prototype.submit_error=function(t){this.submit_message(this.get_error_message(t))},wc_stripe.CartGateway.prototype.updated_html=function(t){},wc_stripe.CartGateway.prototype.cart_emptied=function(t){},wc_stripe.CartGateway.prototype.add_cart_totals_class=function(){o(".cart_totals").addClass("stripe_cart_gateway_active")},wc_stripe.GooglePay=function(){};var s={apiVersion:2,apiVersionMinor:0},n={type:"CARD",parameters:{allowedAuthMethods:["PAN_ONLY"],allowedCardNetworks:["AMEX","DISCOVER","INTERAC","JCB","MASTERCARD","VISA"],assuranceDetailsRequired:!0}};wc_stripe.GooglePay.prototype.update_addresses=function(t){var e;t.paymentMethodData.info.billingAddress&&(e=t.paymentMethodData.info.billingAddress,this.is_current_page("checkout")&&this.is_valid_address(this.billing_address_object,"billing",["phone","email"])&&(e={phoneNumber:e.phoneNumber}),this.populate_billing_fields(e),e.phoneNumber&&this.fields.exists("shipping_phone")&&this.fields.isEmpty("shipping_phone")&&this.fields.set("shipping_phone",e.phoneNumber)),t.shippingAddress&&this.populate_shipping_fields(t.shippingAddress),t.email&&this.fields.set("email",t.email,"billing")},wc_stripe.GooglePay.prototype.map_address=function(t){return{city:t.locality,postcode:t.postalCode,state:t.administrativeArea,country:t.countryCode}},wc_stripe.GooglePay.prototype.update_payment_data=function(s){return new Promise(function(e,i){var t="default"==s.shippingOptionData.id?null:s.shippingOptionData.id;o.when(o.ajax({url:this.params.routes.payment_data,dataType:"json",method:"POST",data:{address:this.map_address(s.shippingAddress),shipping_method:t,page_id:this.get_page(),currency:this.get_currency()},beforeSend:this.ajax_before_send.bind(this)})).done(function(t){t.code?i(t.data.data):e(t.data)}.bind(this)).fail(function(){i()}.bind(this))}.bind(this))},wc_stripe.GooglePay.prototype.on_payment_data_changed=function(i){return new Promise(function(e){this.update_payment_data(i).then(function(t){e(t.paymentRequestUpdate),this.set_selected_shipping_methods(t.shipping_methods),this.payment_data_updated(t,i)}.bind(this))["catch"](function(t){e(t)}.bind(this))}.bind(this))},wc_stripe.GooglePay.prototype.payment_data_updated=function(t){},wc_stripe.GooglePay.prototype.get_merchant_info=function(){var t={merchantId:this.params.merchant_id,merchantName:this.params.merchant_name};return"TEST"===this.params.environment&&delete t.merchantId,t},wc_stripe.GooglePay.prototype.get_payment_options=function(){var t,e={environment:this.params.environment,merchantInfo:this.get_merchant_info(),paymentDataCallbacks:{onPaymentAuthorized:function(){return new Promise(function(t){t({transactionState:"SUCCESS"})}.bind(this))}}};return this.needs_shipping()&&(t=this.get_shipping_prefix(),(!this.is_current_page("checkout")||this.is_valid_address(this.get_address_object(t),t,["email","phone"]))&&this.is_current_page("checkout")||(e.paymentDataCallbacks.onPaymentDataChanged=this.on_payment_data_changed.bind(this))),e},wc_stripe.GooglePay.prototype.build_payment_request=function(){var t=o.extend({},s,{emailRequired:this.fields.requestFieldInWallet("billing_email"),merchantInfo:this.get_merchant_info(),allowedPaymentMethods:[o.extend({type:"CARD",tokenizationSpecification:{type:"PAYMENT_GATEWAY",parameters:{gateway:"stripe","stripe:version":"2018-10-31","stripe:publishableKey":this.params.api_key}}},n)],shippingAddressRequired:function(){if(this.needs_shipping()){var t=this.get_shipping_prefix();if(this.is_current_page("checkout")&&!this.is_valid_address(this.get_address_object(t),t,["email","phone"])||!this.is_current_page("checkout"))return!0}return!1}.bind(this)(),transactionInfo:{countryCode:this.params.processing_country,currencyCode:this.get_currency(),totalPriceStatus:"ESTIMATED",totalPrice:this.get_total_price().toString(),displayItems:this.get_display_items(),totalPriceLabel:this.params.total_price_label}});return t.allowedPaymentMethods[0].parameters.billingAddressRequired=function(){if(this.is_current_page("checkout")){var t=this.billing_address_object=this.get_address_object("billing");return this.fields.requestFieldInWallet("billing_phone")||!this.is_valid_address(t,"billing",["email"])?!0:!1}return!0}.bind(this)(),t.allowedPaymentMethods[0].parameters.billingAddressRequired&&(t.allowedPaymentMethods[0].parameters.billingAddressParameters={format:"FULL",phoneNumberRequired:this.fields.requestFieldInWallet("billing_phone")}),t.shippingAddressRequired?(t.shippingAddressParameters={},t.shippingOptionRequired=!0,t.shippingOptionParameters={shippingOptions:this.get_shipping_options()},t.callbackIntents=["SHIPPING_ADDRESS","SHIPPING_OPTION","PAYMENT_AUTHORIZATION"]):t.callbackIntents=["PAYMENT_AUTHORIZATION"],this.payment_request_options=t},wc_stripe.GooglePay.prototype.createPaymentsClient=function(){this.paymentsClient=new google.payments.api.PaymentsClient(this.get_payment_options())},wc_stripe.GooglePay.prototype.isReadyToPay=function(){return new Promise(function(t){var e=o.extend({},s);e.allowedPaymentMethods=[n],this.paymentsClient.isReadyToPay(e).then(function(){this.can_pay=!0,this.create_button(),t()}.bind(this))["catch"](function(t){t&&t.message&&-1<t.message.indexOf("ShadowRoot")?console.log("GPay is not supported on this browser."):this.submit_error(t)}.bind(this))}.bind(this))},wc_stripe.GooglePay.prototype.create_button=function(){this.$button&&this.$button.remove(),this.$button=o(this.paymentsClient.createButton(this.get_button_options())),this.$button.addClass("gpay-button-container")},wc_stripe.GooglePay.prototype.get_button_options=function(){var t={onClick:this.start.bind(this),buttonColor:this.params.button_color,buttonType:this.params.button_style,buttonSizeMode:this.params.button_size_mode};return null!==this.params.button_locale&&(t.buttonLocale=this.params.button_locale),t},wc_stripe.GooglePay.prototype.start=function(){this.createPaymentsClient(),this.paymentsClient.loadPaymentData(this.build_payment_request()).then(function(t){var e=JSON.parse(t.paymentMethodData.tokenizationData.token);this.update_addresses(t),this.stripe.createPaymentMethod({type:"card",card:{token:e.id},billing_details:this.get_billing_details()}).then(function(t){if(t.error)return this.submit_error(t.error);this.on_token_received(t.paymentMethod)}.bind(this))}.bind(this))["catch"](function(t){"CANCELED"!==t.statusCode&&(t.statusMessage&&-1<t.statusMessage.indexOf("paymentDataRequest.callbackIntent")?this.submit_error_code("DEVELOPER_ERROR_WHITELIST"):this.submit_error(t.statusMessage))}.bind(this))},wc_stripe.ApplePay=function(){},wc_stripe.ApplePay.prototype.initialize=function(){this.createPaymentRequest(),this.canMakePayment()},wc_stripe.ApplePay.prototype.get_payment_request_options=function(){return o.extend({},wc_stripe.BaseGateway.prototype.get_payment_request_options.apply(this,arguments),{disableWallets:["googlePay"]})},wc_stripe.ApplePay.prototype.create_button=function(){this.$button&&this.$button.remove(),this.$button=o(this.params.button),this.$button.on("click",this.start.bind(this)),this.append_button()},wc_stripe.ApplePay.prototype.canMakePayment=function(){return new Promise(function(e){this.paymentRequest.canMakePayment().then(function(t){t&&t.applePay&&(this.can_pay=!0,this.create_button(),o(this.container).show(),e(t))}.bind(this))}.bind(this))},wc_stripe.ApplePay.prototype.start=function(t){t.preventDefault(),this.paymentRequest.update(this.get_payment_request_update({total:{pending:!1}})),this.paymentRequest.show()},wc_stripe.PaymentRequest=function(){},wc_stripe.PaymentRequest.prototype.initialize=function(){this.createPaymentRequest(),this.createPaymentRequestButton(),this.canMakePayment(),this.paymentRequestButton.on("click",this.button_click.bind(this))},wc_stripe.PaymentRequest.prototype.button_click=function(t){},wc_stripe.PaymentRequest.prototype.createPaymentRequestButton=function(){this.paymentRequestButton&&this.paymentRequestButton.destroy(),this.paymentRequestButton=this.elements.create("paymentRequestButton",{paymentRequest:this.paymentRequest,style:{paymentRequestButton:{type:this.params.button.type,theme:this.params.button.theme,height:this.params.button.height}}})},wc_stripe.PaymentRequest.prototype.canMakePayment=function(){return new Promise(function(e){var i=this.paymentRequest;this.paymentRequest.canMakePayment().then(function(t){t&&!t.applePay&&i===this.paymentRequest&&(this.can_pay=!0,this.create_button(),o(this.container).show(),e(t))}.bind(this))}.bind(this))},wc_stripe.PaymentRequest.prototype.create_button=function(){this.paymentRequestButton.mount("#wc-stripe-payment-request-container")},wc_stripe.Afterpay=function(){},wc_stripe.Afterpay.prototype.is_eligible=function(t){return this.needs_shipping()&&t>this.get_min()&&t<this.get_max()},wc_stripe.Afterpay.prototype.get_min=function(){var t=this.get_currency(),t=this.params.requirements[t];return t?t[1]:0},wc_stripe.Afterpay.prototype.get_max=function(){var t=this.get_currency(),t=this.params.requirements[t];return t?t[2]:0},wc_stripe.Afterpay.prototype.add_eligibility=function(t,e){o(t).length&&(this.is_eligible(e)?o(t).removeClass("afterpay-ineligible"):this.hide_ineligible_active()&&o(t).addClass("afterpay-ineligible"))},wc_stripe.Afterpay.prototype.hide_ineligible_active=function(){return"yes"===this.params.hide_ineligible},wc_stripe.CheckoutFields=function(t,e){this.params=t,this.page=e,this.session_values=this.supportsSessionStorage()&&sessionStorage.getItem("wc_stripe_checkout_fields")?JSON.parse(sessionStorage.getItem("wc_stripe_checkout_fields")):{},this.fields=new Map(Object.keys(this.params).map(function(t){return null===this.params[t].value&&(t in this.session_values&&null!==this.session_values[t]?this.params[t].value=this.session_values[t]:this.params[t].value=""),[t,this.params[t].value]}.bind(this))),("checkout"===e||"cart"===e&&o(document.body).is(".woocommerce-checkout")||0<o("form.woocommerce-checkout").length)&&(o(document.body).on("updated_checkout",this.updated_checkout.bind(this)),o(document.body).on("change",'[name^="billing_"], [name^="shipping_"]',this.onChange.bind(this)),o("form.checkout").on("change",'.input-text:not([name^="billing_"], [name^="shipping_"], [name="account_password"]), select:not([name^="billing_"], [name^="shipping_"])',this.onChange.bind(this)),o("form.checkout").on("change",'[name="ship_to_different_address"]',this.on_ship_to_address_change.bind(this)),this.init_i18n(),o('[name="ship_to_different_address"]').is(":checked")?this.update_required_fields(o("#shipping_country").val(),"shipping_country"):this.update_required_fields(o("#billing_country").val(),"billing_country"))},wc_stripe.CheckoutFields.prototype.supportsSessionStorage=function(){return"sessionStorage"in a&&null!==a.sessionStorage&&["getItem","setItem"].reduce(function(t,e){return t&&e in sessionStorage}.bind(this),!0)},wc_stripe.CheckoutFields.prototype.init_i18n=function(){"undefined"!=typeof wc_address_i18n_params?this.locales=JSON.parse(wc_address_i18n_params.locale.replace(/&quot;/g,'"')):this.locales=null},wc_stripe.CheckoutFields.prototype.updated_checkout=function(){this.syncCheckoutFieldsWithDOM()},wc_stripe.CheckoutFields.prototype.syncCheckoutFieldsWithDOM=function(){for(var t in this.params)o("#"+t).length&&this.fields.set(t,o("#"+t).val())},wc_stripe.CheckoutFields.prototype.onChange=function(t){try{var e=t.currentTarget.name,i=t.currentTarget.value;this.fields.set(e,i),"billing_country"!==e&&"shipping_country"!==e||this.update_required_fields(i,e),this.supportsSessionStorage()&&sessionStorage.setItem("wc_stripe_checkout_fields",JSON.stringify(this.toJson()))}catch(s){console.log(s)}},wc_stripe.CheckoutFields.prototype.update_required_fields=function(t,e){if(this.locales){var i,s=-1<e.indexOf("billing_")?"billing_":"shipping_",t="undefined"!=typeof this.locales[t]?this.locales[t]:this.locales["default"],a=o.extend(!0,{},this.locales["default"],t);for(i in a){var n=s+i;this.params[n]&&(this.params[n]=o.extend(!0,{},this.params[n],a[i]))}}},wc_stripe.CheckoutFields.prototype.on_ship_to_address_change=function(t){o(t.currentTarget).is(":checked")&&this.update_required_fields(o("#shipping_country").val(),"shipping_country")},wc_stripe.CheckoutFields.prototype.requestFieldInWallet=function(t){return"checkout"===this.page?this.required(t)&&this.isEmpty(t):"order_pay"!==this.page&&this.required(t)},wc_stripe.CheckoutFields.prototype.set=function(t,e,i){this[t]&&"function"==typeof this[t]?this[t]().set.call(this,e,i):this.fields.set(t,e)},wc_stripe.CheckoutFields.prototype.get=function(t,e){var i;return this[t]&&"function"==typeof this[t]?i=this[t]().get.call(this,e):null!=(i=this.fields.get(t))&&""!==i||void 0!==e&&(i=e),void 0===i?"":i},wc_stripe.CheckoutFields.prototype.required=function(t){return!(!this.params[t]||"undefined"==typeof this.params[t].required)&&this.params[t].required},wc_stripe.CheckoutFields.prototype.exists=function(t){return t in this.params},wc_stripe.CheckoutFields.prototype.isEmpty=function(t){if(this.fields.has(t)){t=this.fields.get(t);return null==t||"string"==typeof t&&0===t.trim().length}return!0},wc_stripe.CheckoutFields.prototype.isValid=function(t){if(this[t]&&"function"==typeof this[t])return this[t]().isValid.apply(this,Array.prototype.slice.call(arguments,1))},wc_stripe.CheckoutFields.prototype.first_name=function(){return{set:function(t,e){this.fields.set(e+"_first_name",t)},get:function(t){return this.fields.get(t+"_first_name")},isValid:function(t){return"string"==typeof t&&0<t.length}}},wc_stripe.CheckoutFields.prototype.last_name=function(){return{set:function(t,e){this.fields.set(e+"_last_name",t)},get:function(t){return this.fields.get(t+"_last_name")},isValid:function(t){return"string"==typeof t&&0<t.length}}},wc_stripe.CheckoutFields.prototype.address_1=function(){return{set:function(t,e){this.fields.set(e+"_address_1",t)},get:function(t){return this.fields.get(t+"_address_1")},isValid:function(t){return"string"==typeof t&&0<t.length}}},wc_stripe.CheckoutFields.prototype.address_2=function(){return{set:function(t,e){this.fields.set(e+"_address_2",t)},get:function(t){return this.fields.get(t+"_address_2")},isValid:function(t){return"string"==typeof t&&0<t.length}}},wc_stripe.CheckoutFields.prototype.name=function(){return{set:function(t,e){this.fields.set(e+"_full_name",t);var i=t.split(" ");1<i.length?(t=i.pop(),this.fields.set(e+"_first_name",i.join(" ")),this.fields.set(e+"_last_name",t)):1==i.length&&this.fields.set(e+"_first_name",i[0])},get:function(t){return this.fields.get(t+"_first_name")+" "+this.fields.get(t+"_last_name")}}},wc_stripe.CheckoutFields.prototype.email=function(){return{set:function(t,e){this.fields.set(e+"_email",t)},get:function(t){return this.fields.get(t+"_email")},isValid:function(t){return"string"==typeof t&&0<t.length}}},wc_stripe.CheckoutFields.prototype.phone=function(){return{set:function(t,e){this.fields.set(e+"_phone",t)},get:function(t){return this.fields.get(t+"_phone")},isValid:function(t){return"string"==typeof t&&0<t.length}}},wc_stripe.CheckoutFields.prototype.country=function(){return{set:function(t,e){this.fields.set(e+"_country",t)},get:function(t){return this.fields.get(t+"_country")},isValid:function(t){return"string"==typeof t&&2===t.length}}},wc_stripe.CheckoutFields.prototype.state=function(){return{set:function(i,t){2<(i=i.toUpperCase()).length&&"checkout"===this.page&&o("#"+t+"_state option").each(function(){var t=o(this),e=t.text().toUpperCase();i===e&&(i=t.val())}),this.fields.set(t+"_state",i)},get:function(t){return this.fields.get(t+"_state")},isValid:function(t){return"string"==typeof t&&0<t.length}}},wc_stripe.CheckoutFields.prototype.city=function(){return{set:function(t,e){this.fields.set(e+"_city",t)},get:function(t){return this.fields.get(t+"_city")},isValid:function(t){return"string"==typeof t&&0<t.length}}},wc_stripe.CheckoutFields.prototype.postcode=function(){return{set:function(t,e){this.fields.set(e+"_postcode",t)},get:function(t){return this.fields.get(t+"_postcode")},isValid:function(t){return"string"==typeof t&&0<t.length}}},wc_stripe.CheckoutFields.prototype.recipient=function(){return wc_stripe.CheckoutFields.prototype.name.apply(this,arguments)},wc_stripe.CheckoutFields.prototype.payerName=function(){return wc_stripe.CheckoutFields.prototype.name.apply(this,arguments)},wc_stripe.CheckoutFields.prototype.payerEmail=function(){return wc_stripe.CheckoutFields.prototype.email.apply(this,arguments)},wc_stripe.CheckoutFields.prototype.payerPhone=function(){return wc_stripe.CheckoutFields.prototype.phone.apply(this,arguments)},wc_stripe.CheckoutFields.prototype.phoneNumber=function(){return wc_stripe.CheckoutFields.prototype.phone.apply(this,arguments)},wc_stripe.CheckoutFields.prototype.countryCode=function(){return wc_stripe.CheckoutFields.prototype.country.apply(this,arguments)},wc_stripe.CheckoutFields.prototype.address1=function(){return wc_stripe.CheckoutFields.prototype.address_1.apply(this,arguments)},wc_stripe.CheckoutFields.prototype.address2=function(){return wc_stripe.CheckoutFields.prototype.address_2.apply(this,arguments)},wc_stripe.CheckoutFields.prototype.line1=function(){return wc_stripe.CheckoutFields.prototype.address_1.apply(this,arguments)},wc_stripe.CheckoutFields.prototype.line2=function(){return wc_stripe.CheckoutFields.prototype.address_2.apply(this,arguments)},wc_stripe.CheckoutFields.prototype.addressLine=function(){return{set:function(t,e){0<t.length&&this.fields.set(e+"_address_1",t[0]),1<t.length&&this.fields.set(e+"_address_2",t[1])},get:function(t){return[this.fields.get(t+"_address_1"),this.fields.get(t+"_address_2")]},isValid:function(t){return 0<t.length&&("string"==typeof t[0]&&0<t[0].length)}}},wc_stripe.CheckoutFields.prototype.region=function(){return wc_stripe.CheckoutFields.prototype.state.apply(this,arguments)},wc_stripe.CheckoutFields.prototype.administrativeArea=function(){return wc_stripe.CheckoutFields.prototype.state.apply(this,arguments)},wc_stripe.CheckoutFields.prototype.locality=function(){return wc_stripe.CheckoutFields.prototype.city.apply(this,arguments)},wc_stripe.CheckoutFields.prototype.postal_code=function(){return wc_stripe.CheckoutFields.prototype.postcode.apply(this,arguments)},wc_stripe.CheckoutFields.prototype.postalCode=function(){return wc_stripe.CheckoutFields.prototype.postcode.apply(this,arguments)},wc_stripe.CheckoutFields.prototype.toJson=function(){var i={};return this.fields.forEach(function(t,e){i[e]=t}),i},wc_stripe.CheckoutFields.prototype.toFormFields=function(t){var i=[];this.fields.forEach(function(t,e){e='[name="'+e+'"]';o(e).length&&""!==t&&(o(e).val()!==t&&o(e).is("select")&&i.push(e),o(e).val(t))}),0<i.length&&o(i.join(",")).trigger("change"),void 0!==t&&o(document.body).trigger("update_checkout",t)},wc_stripe.CheckoutFields.prototype.validateFields=function(t){for(var e in this.params){var i=this.params[e];if(-1<e.indexOf(t)&&i.required&&o("#"+e).length&&o("#"+e).is(":visible")){i=o("#"+e).val();if(null==i||0===i.length)return!1}}return!0};try{i=Stripe(wc_stripe_params_v3.api_key,"test"===wc_stripe_params_v3.mode&&""===wc_stripe_params_v3.account?{}:{stripeAccount:wc_stripe_params_v3.account})}catch(t){return a.alert(t),console.log(t)}var r=new wc_stripe.CheckoutFields(wc_stripe_checkout_fields,wc_stripe_params_v3.page)}(window,jQuery);
i18n/languages/woo-stripe-payment.pot CHANGED
@@ -2,14 +2,14 @@
2
  # This file is distributed under the same license as the Payment Plugins for Stripe WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Payment Plugins for Stripe WooCommerce 3.3.16\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woo-stripe-payment\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2022-02-08T03:08:36+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.4.0\n"
15
  "X-Domain: woo-stripe-payment\n"
@@ -193,67 +193,71 @@ msgstr ""
193
  msgid "Payment Method Token"
194
  msgstr ""
195
 
196
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1096
 
 
 
 
197
  msgid "Recurring payment for order failed. Reason: %s"
198
  msgstr ""
199
 
200
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1110
201
  msgid "Recurring payment captured in Stripe. Payment method: %s"
202
  msgstr ""
203
 
204
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1113
205
  msgid "Recurring payment authorized in Stripe. Payment method: %s"
206
  msgstr ""
207
 
208
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1116
209
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1349
210
  msgid "Customer must manually complete payment for payment method %s"
211
  msgstr ""
212
 
213
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1150
214
  #: includes/abstract/abstract-wc-stripe-payment.php:268
215
  msgid "Order %1$s from %2$s"
216
  msgstr ""
217
 
218
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1335
219
  msgid "Pre-order payment for order failed. Reason: %s"
220
  msgstr ""
221
 
222
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1343
223
  msgid "Pre-order payment captured in Stripe. Payment method: %s"
224
  msgstr ""
225
 
226
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1346
227
  msgid "Pre-order payment authorized in Stripe. Payment method: %s"
228
  msgstr ""
229
 
230
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1418
231
  msgid "Cannot process payment"
232
  msgstr ""
233
 
234
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1426
235
  msgid "Increase your conversion rate by offering %1$s on your Product and Cart pages, or at the top of the checkout page. <br/><strong>Note:</strong> you can control which products display %s by going to the product edit page."
236
  msgstr ""
237
 
238
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1542
239
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1573
240
  msgid "Shipping"
241
  msgstr ""
242
 
243
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1550
244
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1576
245
  msgid "Discount"
246
  msgstr ""
247
 
248
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1553
249
  msgid "Tax"
250
  msgstr ""
251
 
252
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1583
253
  msgid "Fees"
254
  msgstr ""
255
 
256
- #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1777
257
  msgid "Error saving payment method for subscription. Reason: %s"
258
  msgstr ""
259
 
@@ -289,23 +293,12 @@ msgstr ""
289
  msgid "You do not have permissions to access this resource."
290
  msgstr ""
291
 
292
- #: includes/admin/class-wc-stripe-admin-menus.php:20
293
  msgid "Stripe Gateway"
294
  msgstr ""
295
 
296
- #: includes/admin/class-wc-stripe-admin-menus.php:24
297
- #: includes/class-wc-stripe-install.php:32
298
- msgid "Settings"
299
- msgstr ""
300
-
301
- #: includes/admin/class-wc-stripe-admin-menus.php:25
302
- msgid "Logs"
303
- msgstr ""
304
-
305
- #: includes/admin/class-wc-stripe-admin-menus.php:26
306
- #: includes/admin/views/html-settings-nav.php:24
307
- #: includes/class-wc-stripe-install.php:33
308
- msgid "Documentation"
309
  msgstr ""
310
 
311
  #: includes/admin/class-wc-stripe-admin-notices.php:52
@@ -639,7 +632,7 @@ msgid "Dispute Closed"
639
  msgstr ""
640
 
641
  #: includes/admin/settings/class-wc-stripe-advanced-settings.php:116
642
- msgid "If enabled, the plugin will listen for the <strong>charge.dispute.closed</strong> webhook event and set the order's status back to status before the dispute was opened."
643
  msgstr ""
644
 
645
  #: includes/admin/settings/class-wc-stripe-advanced-settings.php:120
@@ -792,6 +785,55 @@ msgstr ""
792
  msgid "Value"
793
  msgstr ""
794
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
795
  #: includes/admin/views/html-user-profile.php:7
796
  msgid "Stripe Customer ID's"
797
  msgstr ""
@@ -844,12 +886,56 @@ msgstr ""
844
  msgid "%1$snote:%2$s payment methods will be deleted in Stripe if you use the delete action."
845
  msgstr ""
846
 
847
- #: includes/class-wc-stripe-customer-manager.php:41
848
- #: includes/class-wc-stripe-customer-manager.php:50
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
849
  msgid "Error saving customer. Reason: %s"
850
  msgstr ""
851
 
852
- #: includes/class-wc-stripe-frontend-scripts.php:87
853
  msgid "No matches found"
854
  msgstr ""
855
 
@@ -869,7 +955,7 @@ msgstr ""
869
  msgid "Payment authorization failed."
870
  msgstr ""
871
 
872
- #: includes/class-wc-stripe-rest-api.php:45
873
  msgid "%1$s is an invalid controller name."
874
  msgstr ""
875
 
@@ -968,6 +1054,10 @@ msgstr ""
968
  msgid "You are not authorized to update this order."
969
  msgstr ""
970
 
 
 
 
 
971
  #: includes/controllers/class-wc-stripe-controller-source.php:51
972
  #: includes/controllers/class-wc-stripe-controller-source.php:71
973
  msgid "Error updating source."
@@ -1300,7 +1390,7 @@ msgstr ""
1300
 
1301
  #: includes/gateways/class-wc-payment-gateway-stripe-cc.php:20
1302
  #: includes/gateways/settings/cc-settings.php:23
1303
- msgid "Credit Cards"
1304
  msgstr ""
1305
 
1306
  #: includes/gateways/class-wc-payment-gateway-stripe-cc.php:23
@@ -2494,10 +2584,14 @@ msgstr ""
2494
  msgid "XX.XXX.XXX/XXXX-XX or XXXXXXXXXXXXXX"
2495
  msgstr ""
2496
 
2497
- #: templates/checkout/checkout-banner.php:9
2498
  msgid "Express Checkout"
2499
  msgstr ""
2500
 
 
 
 
 
2501
  #: templates/checkout/klarna-v2.php:12
2502
  #: packages/blocks/assets/js/payment-methods/local-payment/klarna.js:15
2503
  #: packages/blocks/build/commons.js:3770
2
  # This file is distributed under the same license as the Payment Plugins for Stripe WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Payment Plugins for Stripe WooCommerce 3.3.17\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woo-stripe-payment\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2022-03-11T22:48:40+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.4.0\n"
15
  "X-Domain: woo-stripe-payment\n"
193
  msgid "Payment Method Token"
194
  msgstr ""
195
 
196
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1080
197
+ msgid "Stripe Customer ID"
198
+ msgstr ""
199
+
200
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1100
201
  msgid "Recurring payment for order failed. Reason: %s"
202
  msgstr ""
203
 
204
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1114
205
  msgid "Recurring payment captured in Stripe. Payment method: %s"
206
  msgstr ""
207
 
208
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1117
209
  msgid "Recurring payment authorized in Stripe. Payment method: %s"
210
  msgstr ""
211
 
212
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1120
213
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1353
214
  msgid "Customer must manually complete payment for payment method %s"
215
  msgstr ""
216
 
217
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1154
218
  #: includes/abstract/abstract-wc-stripe-payment.php:268
219
  msgid "Order %1$s from %2$s"
220
  msgstr ""
221
 
222
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1339
223
  msgid "Pre-order payment for order failed. Reason: %s"
224
  msgstr ""
225
 
226
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1347
227
  msgid "Pre-order payment captured in Stripe. Payment method: %s"
228
  msgstr ""
229
 
230
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1350
231
  msgid "Pre-order payment authorized in Stripe. Payment method: %s"
232
  msgstr ""
233
 
234
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1422
235
  msgid "Cannot process payment"
236
  msgstr ""
237
 
238
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1430
239
  msgid "Increase your conversion rate by offering %1$s on your Product and Cart pages, or at the top of the checkout page. <br/><strong>Note:</strong> you can control which products display %s by going to the product edit page."
240
  msgstr ""
241
 
242
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1546
243
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1577
244
  msgid "Shipping"
245
  msgstr ""
246
 
247
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1554
248
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1580
249
  msgid "Discount"
250
  msgstr ""
251
 
252
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1557
253
  msgid "Tax"
254
  msgstr ""
255
 
256
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1587
257
  msgid "Fees"
258
  msgstr ""
259
 
260
+ #: includes/abstract/abstract-wc-payment-gateway-stripe.php:1781
261
  msgid "Error saving payment method for subscription. Reason: %s"
262
  msgstr ""
263
 
293
  msgid "You do not have permissions to access this resource."
294
  msgstr ""
295
 
296
+ #: includes/admin/class-wc-stripe-admin-menus.php:19
297
  msgid "Stripe Gateway"
298
  msgstr ""
299
 
300
+ #: includes/admin/class-wc-stripe-admin-menus.php:23
301
+ msgid "Stripe by Payment Plugins"
 
 
 
 
 
 
 
 
 
 
 
302
  msgstr ""
303
 
304
  #: includes/admin/class-wc-stripe-admin-notices.php:52
632
  msgstr ""
633
 
634
  #: includes/admin/settings/class-wc-stripe-advanced-settings.php:116
635
+ msgid "If enabled, the plugin will listen for the <strong>charge.dispute.closed</strong> webhook event and set the order's status back to the status before the dispute was opened."
636
  msgstr ""
637
 
638
  #: includes/admin/settings/class-wc-stripe-advanced-settings.php:120
785
  msgid "Value"
786
  msgstr ""
787
 
788
+ #: includes/admin/views/html-main-navigation.php:12
789
+ msgid "Main Page"
790
+ msgstr ""
791
+
792
+ #: includes/admin/views/html-main-navigation.php:15
793
+ #: includes/admin/views/html-welcome-page.php:45
794
+ #: includes/class-wc-stripe-install.php:32
795
+ msgid "Settings"
796
+ msgstr ""
797
+
798
+ #: includes/admin/views/html-main-navigation.php:18
799
+ #: includes/admin/views/html-welcome-page.php:59
800
+ #: includes/class-wc-stripe-install.php:33
801
+ msgid "Documentation"
802
+ msgstr ""
803
+
804
+ #: includes/admin/views/html-main-navigation.php:21
805
+ #: includes/admin/views/html-welcome-page.php:77
806
+ msgid "Support"
807
+ msgstr ""
808
+
809
+ #: includes/admin/views/html-settings-nav.php:11
810
+ msgid "for"
811
+ msgstr ""
812
+
813
+ #: includes/admin/views/html-support-page.php:12
814
+ msgid "We're here to help you."
815
+ msgstr ""
816
+
817
+ #: includes/admin/views/html-support-page.php:14
818
+ msgid "Have a question? Need some help? Please submit a ticket and one of our support specialists will get back to you."
819
+ msgstr ""
820
+
821
+ #: includes/admin/views/html-support-page.php:16
822
+ msgid "Note: we commit to a 3 day turnaround with free support."
823
+ msgstr ""
824
+
825
+ #: includes/admin/views/html-support-page.php:31
826
+ msgid "While we commit to a 3 day turnaround, most tickets receive a response within 24 hrs."
827
+ msgstr ""
828
+
829
+ #: includes/admin/views/html-support-page.php:34
830
+ msgid "Click the Create Ticket button and enter all the required information."
831
+ msgstr ""
832
+
833
+ #: includes/admin/views/html-support-page.php:37
834
+ msgid "Create Ticket"
835
+ msgstr ""
836
+
837
  #: includes/admin/views/html-user-profile.php:7
838
  msgid "Stripe Customer ID's"
839
  msgstr ""
886
  msgid "%1$snote:%2$s payment methods will be deleted in Stripe if you use the delete action."
887
  msgstr ""
888
 
889
+ #: includes/admin/views/html-welcome-page.php:14
890
+ msgid "Want to get started more quickly?"
891
+ msgstr ""
892
+
893
+ #: includes/admin/views/html-welcome-page.php:18
894
+ msgid "We have a ton of great documentation that you can reference by following the link below. But if you're like me you rarely want to read an entire website to figure out how to get started quickly. Want our quick start guide instead?"
895
+ msgstr ""
896
+
897
+ #: includes/admin/views/html-welcome-page.php:20
898
+ msgid "Fill out the form and we'll send it right away."
899
+ msgstr ""
900
+
901
+ #: includes/admin/views/html-welcome-page.php:28
902
+ msgid "First name"
903
+ msgstr ""
904
+
905
+ #: includes/admin/views/html-welcome-page.php:31
906
+ msgid "Email"
907
+ msgstr ""
908
+
909
+ #: includes/admin/views/html-welcome-page.php:34
910
+ msgid "Send Me Your Quick Start Guide"
911
+ msgstr ""
912
+
913
+ #: includes/admin/views/html-welcome-page.php:51
914
+ msgid "Connect your Stripe account, enable payment methods, and customize the plugin settings to fit your business needs."
915
+ msgstr ""
916
+
917
+ #: includes/admin/views/html-welcome-page.php:66
918
+ msgid "Want in depth documentation?"
919
+ msgstr ""
920
+
921
+ #: includes/admin/views/html-welcome-page.php:68
922
+ msgid "Our config guide and API docs are a great place to start."
923
+ msgstr ""
924
+
925
+ #: includes/admin/views/html-welcome-page.php:83
926
+ msgid "Have a question?"
927
+ msgstr ""
928
+
929
+ #: includes/admin/views/html-welcome-page.php:85
930
+ msgid "Our support team is ready to assist you."
931
+ msgstr ""
932
+
933
+ #: includes/class-wc-stripe-customer-manager.php:42
934
+ #: includes/class-wc-stripe-customer-manager.php:51
935
  msgid "Error saving customer. Reason: %s"
936
  msgstr ""
937
 
938
+ #: includes/class-wc-stripe-frontend-scripts.php:89
939
  msgid "No matches found"
940
  msgstr ""
941
 
955
  msgid "Payment authorization failed."
956
  msgstr ""
957
 
958
+ #: includes/class-wc-stripe-rest-api.php:46
959
  msgid "%1$s is an invalid controller name."
960
  msgstr ""
961
 
1054
  msgid "You are not authorized to update this order."
1055
  msgstr ""
1056
 
1057
+ #: includes/controllers/class-wc-stripe-controller-signup.php:67
1058
+ msgid "It's on its way! Please check your emails."
1059
+ msgstr ""
1060
+
1061
  #: includes/controllers/class-wc-stripe-controller-source.php:51
1062
  #: includes/controllers/class-wc-stripe-controller-source.php:71
1063
  msgid "Error updating source."
1390
 
1391
  #: includes/gateways/class-wc-payment-gateway-stripe-cc.php:20
1392
  #: includes/gateways/settings/cc-settings.php:23
1393
+ msgid "Credit/Debit Cards"
1394
  msgstr ""
1395
 
1396
  #: includes/gateways/class-wc-payment-gateway-stripe-cc.php:23
2584
  msgid "XX.XXX.XXX/XXXX-XX or XXXXXXXXXXXXXX"
2585
  msgstr ""
2586
 
2587
+ #: templates/checkout/checkout-banner.php:10
2588
  msgid "Express Checkout"
2589
  msgstr ""
2590
 
2591
+ #: templates/checkout/checkout-banner.php:19
2592
+ msgid "OR"
2593
+ msgstr ""
2594
+
2595
  #: templates/checkout/klarna-v2.php:12
2596
  #: packages/blocks/assets/js/payment-methods/local-payment/klarna.js:15
2597
  #: packages/blocks/build/commons.js:3770
includes/abstract/abstract-wc-payment-gateway-stripe.php CHANGED
@@ -1075,6 +1075,10 @@ abstract class WC_Payment_Gateway_Stripe extends WC_Payment_Gateway {
1075
  'value' => $this->get_order_meta_data( WC_Stripe_Constants::PAYMENT_METHOD_TOKEN, $subscription ),
1076
  'label' => __( 'Payment Method Token', 'woo-stripe-payment' ),
1077
  ),
 
 
 
 
1078
  ),
1079
  );
1080
 
1075
  'value' => $this->get_order_meta_data( WC_Stripe_Constants::PAYMENT_METHOD_TOKEN, $subscription ),
1076
  'label' => __( 'Payment Method Token', 'woo-stripe-payment' ),
1077
  ),
1078
+ WC_Stripe_Constants::CUSTOMER_ID => array(
1079
+ 'value' => $this->get_order_meta_data( WC_Stripe_Constants::CUSTOMER_ID, $subscription ),
1080
+ 'label' => __( 'Stripe Customer ID', 'woo-stripe-payment' ),
1081
+ ),
1082
  ),
1083
  );
1084
 
includes/admin/class-wc-stripe-admin-assets.php CHANGED
@@ -18,12 +18,13 @@ class WC_Stripe_Admin_Assets {
18
  }
19
 
20
  public function enqueue_scripts() {
21
- global $current_section, $wc_stripe_subsection;
22
  $screen = get_current_screen();
23
  $screen_id = $screen ? $screen->id : '';
24
  $js_path = stripe_wc()->assets_url() . 'js/';
25
  $css_path = stripe_wc()->assets_url() . 'css/';
26
 
 
 
27
  wp_register_script( 'wc-stripe-admin-settings', $js_path . 'admin/admin-settings.js', array(
28
  'jquery',
29
  'jquery-blockui'
@@ -47,13 +48,13 @@ class WC_Stripe_Admin_Assets {
47
  true
48
  );
49
  wp_register_style( 'wc-stripe-admin-style', $css_path . 'admin/admin.css', array(), stripe_wc()->version );
 
50
 
51
  if ( strpos( $screen_id, 'wc-settings' ) !== false ) {
52
  if ( isset( $_REQUEST['section'] ) && preg_match( '/stripe_[\w]*/', $_REQUEST['section'] ) ) {
53
  wp_enqueue_script( 'wc-stripe-admin-settings' );
54
  wp_enqueue_style( 'wc-stripe-admin-style' );
55
  wp_style_add_data( 'wc-stripe-admin-style', 'rtl', 'replace' );
56
- wp_enqueue_script( 'stripe-help-widget', $js_path . 'admin/help-widget.js', array(), stripe_wc()->version(), true );
57
  wp_localize_script(
58
  'wc-stripe-admin-settings',
59
  'wc_stripe_setting_params',
@@ -87,6 +88,15 @@ class WC_Stripe_Admin_Assets {
87
  )
88
  );
89
  }
 
 
 
 
 
 
 
 
 
90
  }
91
 
92
  public static function localize_scripts() {
18
  }
19
 
20
  public function enqueue_scripts() {
 
21
  $screen = get_current_screen();
22
  $screen_id = $screen ? $screen->id : '';
23
  $js_path = stripe_wc()->assets_url() . 'js/';
24
  $css_path = stripe_wc()->assets_url() . 'css/';
25
 
26
+ wp_register_script( 'wc-stripe-help-widget', $js_path . 'admin/help-widget.js', array( 'jquery' ), stripe_wc()->version(), true );
27
+
28
  wp_register_script( 'wc-stripe-admin-settings', $js_path . 'admin/admin-settings.js', array(
29
  'jquery',
30
  'jquery-blockui'
48
  true
49
  );
50
  wp_register_style( 'wc-stripe-admin-style', $css_path . 'admin/admin.css', array(), stripe_wc()->version );
51
+ wp_register_style( 'wc-stripe-admin-main-style', $css_path . 'admin/main.css', array( 'woocommerce_admin_styles' ), stripe_wc()->version );
52
 
53
  if ( strpos( $screen_id, 'wc-settings' ) !== false ) {
54
  if ( isset( $_REQUEST['section'] ) && preg_match( '/stripe_[\w]*/', $_REQUEST['section'] ) ) {
55
  wp_enqueue_script( 'wc-stripe-admin-settings' );
56
  wp_enqueue_style( 'wc-stripe-admin-style' );
57
  wp_style_add_data( 'wc-stripe-admin-style', 'rtl', 'replace' );
 
58
  wp_localize_script(
59
  'wc-stripe-admin-settings',
60
  'wc_stripe_setting_params',
88
  )
89
  );
90
  }
91
+ if ( $screen_id === 'woocommerce_page_wc-stripe-main' ) {
92
+ wp_enqueue_style( 'wc-stripe-admin-main-style' );
93
+ wp_enqueue_script( 'wc-stripe-main-script', $js_path . 'admin/main.js', array( 'jquery' ), stripe_wc()->version, true );
94
+ if ( isset( $_GET['section'] ) ) {
95
+ if ( $_GET['section'] === 'support' ) {
96
+ wp_enqueue_script( 'wc-stripe-help-widget' );
97
+ }
98
+ }
99
+ }
100
  }
101
 
102
  public static function localize_scripts() {
includes/admin/class-wc-stripe-admin-menus.php CHANGED
@@ -11,9 +11,8 @@ defined( 'ABSPATH' ) || exit();
11
  class WC_Stripe_Admin_Menus {
12
 
13
  public static function init() {
14
- add_action( 'admin_menu', array( __CLASS__, 'admin_menu' ), 10 );
15
  add_action( 'admin_menu', array( __CLASS__, 'sub_menu' ), 20 );
16
- add_action( 'admin_menu', array( __CLASS__, 'remove_submenu' ), 30 );
17
  }
18
 
19
  public static function admin_menu() {
@@ -21,15 +20,15 @@ class WC_Stripe_Admin_Menus {
21
  }
22
 
23
  public static function sub_menu() {
24
- add_submenu_page( 'wc_stripe', __( 'Settings', 'woo-stripe-payment' ), __( 'Settings', 'woo-stripe-payment' ), 'manage_woocommerce', 'admin.php?page=wc-settings&tab=checkout&section=stripe_api' );
25
- add_submenu_page( 'wc_stripe', __( 'Logs', 'woo-stripe-payment' ), __( 'Logs', 'woo-stripe-payment' ), 'manage_woocommerce', 'admin.php?page=wc-status&tab=logs' );
26
- add_submenu_page( 'wc_stripe', __( 'Documentation', 'woo-stripe-payment' ), __( 'Documentation', 'woo-stripe-payment' ), 'manage_woocommerce', 'https://docs.paymentplugins.com/wc-stripe/config' );
27
  }
28
 
29
- public static function remove_submenu() {
30
- global $submenu;
31
- if ( isset( $submenu['wc_stripe'] ) ) {
32
- unset( $submenu['wc_stripe'][0] );
 
 
33
  }
34
  }
35
 
11
  class WC_Stripe_Admin_Menus {
12
 
13
  public static function init() {
14
+ //add_action( 'admin_menu', array( __CLASS__, 'admin_menu' ), 10 );
15
  add_action( 'admin_menu', array( __CLASS__, 'sub_menu' ), 20 );
 
16
  }
17
 
18
  public static function admin_menu() {
20
  }
21
 
22
  public static function sub_menu() {
23
+ add_submenu_page( 'woocommerce', __( 'Stripe by Payment Plugins', 'woo-stripe-payment' ), __( 'Stripe by Payment Plugins', 'woo-stripe-payment' ), 'manage_woocommerce', 'wc-stripe-main', array( __CLASS__, 'main_page' ) );
 
 
24
  }
25
 
26
+ public static function main_page() {
27
+ if ( isset( $_GET['section'] ) ) {
28
+ $section = sanitize_text_field( $_GET['section'] );
29
+ do_action( 'wc_stripe_admin_section_' . $section );
30
+ } else {
31
+ WC_Stripe_Admin_Welcome::output();
32
  }
33
  }
34
 
includes/admin/class-wc-stripe-admin-support.php ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class WC_Stripe_Admin_Support {
4
+
5
+ public static function init() {
6
+ add_action( 'wc_stripe_admin_section_support', array( __CLASS__, 'output' ) );
7
+ }
8
+
9
+ public static function output() {
10
+ $report = self::get_status_report();
11
+ $user = wp_get_current_user();
12
+ $data = rawurlencode( wp_json_encode( array(
13
+ 'report' => $report,
14
+ 'name' => $user->get( 'first_name' ) . ' ' . $user->get( 'last_name' ),
15
+ 'email' => $user->get( 'user_email' )
16
+ ) ) );
17
+ wp_add_inline_script(
18
+ 'wc-stripe-help-widget',
19
+ "var wcStripeSupportParams = wcStripeSupportParams || JSON.parse( decodeURIComponent( '"
20
+ . esc_js( $data )
21
+ . "' ) );",
22
+ 'before'
23
+ );
24
+ include_once dirname( __FILE__ ) . '/views/html-support-page.php';
25
+ }
26
+
27
+ private static function get_status_report() {
28
+ $report = wc()->api->get_endpoint_data( '/wc/v3/system_status' );
29
+ if ( ! is_wp_error( $report ) ) {
30
+ unset( $report['subscriptions']['payment_gateway_feature_support'] );
31
+ } else {
32
+ $report = array();
33
+ }
34
+
35
+ return $report;
36
+ }
37
+
38
+ }
39
+
40
+ WC_Stripe_Admin_Support::init();
includes/admin/class-wc-stripe-admin-welcome.php ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class WC_Stripe_Admin_Welcome {
4
+
5
+ public static function output() {
6
+ $data = rawurlencode( wp_json_encode( array(
7
+ 'routes' => array(
8
+ 'signup' => WC_Stripe_Rest_API::get_admin_endpoint( stripe_wc()->rest_api->signup->rest_uri( 'contact' ) )
9
+ )
10
+ ) ) );
11
+ wp_add_inline_script(
12
+ 'wc-stripe-main-script',
13
+ "var wcStripeSignupParams = wcStripeSignupParams || JSON.parse( decodeURIComponent( '"
14
+ . esc_js( $data )
15
+ . "' ) );",
16
+ 'before'
17
+ );
18
+ include_once dirname( __FILE__ ) . '/views/html-welcome-page.php';
19
+ }
20
+
21
+ }
includes/admin/settings/class-wc-stripe-advanced-settings.php CHANGED
@@ -113,7 +113,7 @@ class WC_Stripe_Advanced_Settings extends WC_Stripe_Settings_API {
113
  'title' => __( 'Dispute Closed', 'woo-stripe-payment' ),
114
  'type' => 'checkbox',
115
  'default' => 'yes',
116
- 'description' => __( 'If enabled, the plugin will listen for the <strong>charge.dispute.closed</strong> webhook event and set the order\'s status back to status before the dispute was opened.',
117
  'woo-stripe-payment' )
118
  ),
119
  'reviews' => array(
113
  'title' => __( 'Dispute Closed', 'woo-stripe-payment' ),
114
  'type' => 'checkbox',
115
  'default' => 'yes',
116
+ 'description' => __( 'If enabled, the plugin will listen for the <strong>charge.dispute.closed</strong> webhook event and set the order\'s status back to the status before the dispute was opened.',
117
  'woo-stripe-payment' )
118
  ),
119
  'reviews' => array(
includes/admin/views/html-main-navigation.php ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ $page = isset( $_GET['page'] ) ? $_GET['page'] : '';
4
+ $section = isset( $_GET['section'] ) ? $_GET['section'] : '';
5
+ ?>
6
+ <div class="navigation">
7
+ <div class="wc-stripe-main__logo">
8
+ <img src="<?php echo stripe_wc()->assets_url( 'img/paymentplugins.svg' ) ?>"/>
9
+ </div>
10
+ <div class="navigation-tabs">
11
+ <a class="<?php if ( $page === 'wc-stripe-main' && ! $section ) { ?>active<?php } ?>" href="<?php echo admin_url( 'admin.php?page=wc-stripe-main' ) ?>">
12
+ <?php esc_html_e( 'Main Page', 'woo-stripe-payment' ) ?>
13
+ </a>
14
+ <a href="<?php echo admin_url( 'admin.php?page=wc-settings&tab=checkout&section=stripe_api' ) ?>">
15
+ <?php esc_html_e( 'Settings', 'woo-stripe-payment' ) ?>
16
+ </a>
17
+ <a target="_blank" href="https://docs.paymentplugins.com/wc-stripe/config">
18
+ <?php esc_html_e( 'Documentation', 'woo-stripe-payment' ) ?>
19
+ </a>
20
+ <a class="<?php if ( $section === 'support' ) { ?>active<?php } ?>" href="<?php echo admin_url( 'admin.php?page=wc-stripe-main&section=support' ) ?>">
21
+ <?php esc_html_e( 'Support', 'woo-stripe-payment' ) ?>
22
+ </a>
23
+ </div>
24
+ <div class="stripe-logo">
25
+ <a target="_blank" href="https://stripe.com">
26
+ <img src="<?php echo stripe_wc()->assets_url( 'img/stripe_logo.svg' ) ?>"/>
27
+ </a>
28
+ </div>
29
+ </div>
includes/admin/views/html-settings-nav.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  global $current_section;
3
  $tabs = apply_filters( 'wc_stripe_settings_nav_tabs', array() );
4
  $last = count( $tabs );
@@ -6,8 +7,9 @@ $idx = 0;
6
  $tab_active = false;
7
  ?>
8
  <div class="wc-stripe-settings-logo">
9
- <img
10
- src="<?php echo stripe_wc()->assets_url() . 'img/stripe_logo.svg'; ?>"/>
 
11
  </div>
12
  <div class="stripe-settings-nav">
13
  <?php foreach ( $tabs as $id => $tab ) : $idx ++ ?>
@@ -19,7 +21,7 @@ $tab_active = false;
19
  <?php endforeach; ?>
20
  </div>
21
  <div class="clear"></div>
22
- <div class="wc-stripe-docs">
23
  <a target="_blank" class="button button-secondary"
24
- href="<?php echo $this->get_stripe_documentation_url(); ?>"><?php esc_html_e( 'Documentation', 'woo-stripe-payment' ); ?></a>
25
- </div>
1
  <?php
2
+
3
  global $current_section;
4
  $tabs = apply_filters( 'wc_stripe_settings_nav_tabs', array() );
5
  $last = count( $tabs );
7
  $tab_active = false;
8
  ?>
9
  <div class="wc-stripe-settings-logo">
10
+ <img class="paymentplugins-logo" src="<?php echo stripe_wc()->assets_url() . 'img/paymentplugins.svg'; ?>"/>
11
+ <span><?php esc_html_e( 'for', 'woo-stripe-payment' ) ?></span>
12
+ <img src="<?php echo stripe_wc()->assets_url() . 'img/stripe_logo.svg'; ?>"/>
13
  </div>
14
  <div class="stripe-settings-nav">
15
  <?php foreach ( $tabs as $id => $tab ) : $idx ++ ?>
21
  <?php endforeach; ?>
22
  </div>
23
  <div class="clear"></div>
24
+ <!--<div class="wc-stripe-docs">
25
  <a target="_blank" class="button button-secondary"
26
+ href="<?php /*echo $this->get_stripe_documentation_url(); */ ?>"><?php /*esc_html_e( 'Documentation', 'woo-stripe-payment' ); */ ?></a>
27
+ </div>-->
includes/admin/views/html-support-page.php ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ */
5
+
6
+ ?>
7
+ <div class="wc-stripe-support__page">
8
+ <div class="wc-stripe-main__container">
9
+ <?php include dirname( __FILE__ ) . '/html-main-navigation.php' ?>
10
+ <div class="wc-stripe-main__header">
11
+ <div class="description">
12
+ <h1><?php esc_html_e( 'We\'re here to help you.', 'woo-stripe-payment' ) ?></h1>
13
+ <p>
14
+ <?php esc_html_e( 'Have a question? Need some help? Please submit a ticket and one of our support specialists will get back to you.', 'woo-stripe-payment' ) ?>
15
+ <br/>
16
+ <?php esc_html_e( 'Note: we commit to a 3 day turnaround with free support.', 'woo-stripe-payment' ) ?>
17
+ </p>
18
+ </div>
19
+ <!--<div class="wc-stripe-welcome-header__design"></div>-->
20
+ </div>
21
+ <div class="wc-stripe-support__content">
22
+ <div class="wc-stripe-main__row justify-content-start">
23
+ <div class="wc-stripe-main__card">
24
+ <div class="wc-stripe-main-card__content support">
25
+ <div class="icon-container support">
26
+ <!--<span class="dashicons dashicons-admin-users"></span>-->
27
+ <img class="icon" src="<?php echo stripe_wc()->assets_url( 'img/support.svg' ) ?>"/>
28
+ </div>
29
+ <div class="card-header">
30
+ <p>
31
+ <?php esc_html_e( 'While we commit to a 3 day turnaround, most tickets receive a response within 24 hrs.', 'woo-stripe-payment' ) ?>
32
+ </p>
33
+ <p>
34
+ <?php esc_html_e( 'Click the Create Ticket button and enter all the required information.', 'woo-stripe-payment' ) ?>
35
+ <br/><br/>
36
+ </p>
37
+ <button id="stripeSupportButton" class="wc-stripe-card-button"><?php _e( 'Create Ticket', 'woo-stripe-payment' ) ?></button>
38
+ </div>
39
+ </div>
40
+ </div>
41
+ </div>
42
+ </div>
43
+ </div>
44
+ </div>
includes/admin/views/html-welcome-page.php ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ *
5
+ */
6
+ $user = wp_get_current_user();
7
+ $signed_up = get_option( 'wc_stripe_admin_signup', false );
8
+ ?>
9
+ <div class="wc-stripe-main__page">
10
+ <div class="wc-stripe-main__container">
11
+ <?php include dirname( __FILE__ ) . '/html-main-navigation.php' ?>
12
+ <?php if ( ! $signed_up ): ?>
13
+ <div class="wc-stripe-signup-container">
14
+ <h3><?php esc_html_e( 'Want to get started more quickly?', 'woo-stripe-payment' ) ?></h3>
15
+ <div class="wc-stripe-signup__section">
16
+ <div>
17
+ <p>
18
+ <?php esc_html_e( 'We have a ton of great documentation that you can reference by following the link below. But if you\'re like me you rarely want to read an entire website to figure out how to get started quickly. Want our quick start guide instead?',
19
+ 'woo-stripe-payment' ) ?>
20
+ <p><?php esc_html_e( 'Fill out the form and we\'ll send it right away.', 'woo-stripe-payment' ) ?></p>
21
+ </p>
22
+ </div>
23
+ </div>
24
+ <div class="wc-stripe-signup__section signup-form">
25
+ <form>
26
+ <?php echo wp_nonce_field( 'wp_rest' ) ?>
27
+ <div class="entry-row">
28
+ <input type="text" name="firstname" placeholder="<?php esc_html_e( 'First name', 'woo-stripe-payment' ) ?>" value="<?php echo $user->get( 'first_name' ) ?>"/>
29
+ </div>
30
+ <div class="entry-row">
31
+ <input type="text" name="email" placeholder="<?php esc_html_e( 'Email', 'woo-stripe-payment' ) ?>" value="<?php echo get_option( 'admin_email', $user->get( 'email' ) ) ?>"/>
32
+ </div class="entry-row">
33
+ <div class="entry-row">
34
+ <button id="wc-stripe-signup" class="primary-button"><?php esc_html_e( 'Send Me Your Quick Start Guide', 'woo-stripe-payment' ) ?></button>
35
+ </div>
36
+ </form>
37
+ </div>
38
+ </div>
39
+ <?php endif; ?>
40
+ <div class="wc-stripe-welcome__content">
41
+ <div class="wc-stripe-main__row cards-container">
42
+ <div class="wc-stripe-main__card">
43
+ <a href="<?php echo admin_url( 'admin.php?page=wc-settings&tab=checkout&section=stripe_api' ) ?>">
44
+ <div class="wc-stripe-main-card__content">
45
+ <h3><?php esc_html_e( 'Settings', 'woo-stripe-payment' ) ?></h3>
46
+ <div class="icon-container">
47
+ <!--<span class="dashicons dashicons-admin-generic"></span>-->
48
+ <img class="icon" src="<?php echo stripe_wc()->assets_url( 'img/settings.svg' ) ?>"/>
49
+ </div>
50
+ <div class="card-header">
51
+ <p><?php esc_html_e( 'Connect your Stripe account, enable payment methods, and customize the plugin settings to fit your business needs.', 'woo-stripe-payment' ) ?></p>
52
+ </div>
53
+ </div>
54
+ </a>
55
+ </div>
56
+ <div class="wc-stripe-main__card">
57
+ <a target="_blank" href="https://docs.paymentplugins.com/wc-stripe/config">
58
+ <div class="wc-stripe-main-card__content">
59
+ <h3><?php esc_html_e( 'Documentation', 'woo-stripe-payment' ) ?></h3>
60
+ <div class="icon-container documentation">
61
+ <!--<span class="dashicons dashicons-admin-users"></span>-->
62
+ <img class="icon" src="<?php echo stripe_wc()->assets_url( 'img/documentation.svg' ) ?>"/>
63
+ </div>
64
+ <div class="card-header">
65
+ <p>
66
+ <?php esc_html_e( 'Want in depth documentation?', 'woo-stripe-payment' ) ?>
67
+ <br/>
68
+ <?php esc_html_e( 'Our config guide and API docs are a great place to start.', 'woo-stripe-payment' ) ?>
69
+ </p>
70
+ </div>
71
+ </div>
72
+ </a>
73
+ </div>
74
+ <div class="wc-stripe-main__card">
75
+ <a href="<?php echo admin_url( 'admin.php?page=wc-stripe-main&section=support' ) ?>">
76
+ <div class="wc-stripe-main-card__content">
77
+ <h3><?php esc_html_e( 'Support', 'woo-stripe-payment' ) ?></h3>
78
+ <div class="icon-container support">
79
+ <!--<span class="dashicons dashicons-admin-users"></span>-->
80
+ <img class="icon" src="<?php echo stripe_wc()->assets_url( 'img/support.svg' ) ?>"/>
81
+ </div>
82
+ <div class="card-header">
83
+ <p><?php esc_html_e( 'Have a question?', 'woo-stripe-payment' ) ?>
84
+ <br/>
85
+ <?php esc_html_e( 'Our support team is ready to assist you.', 'woo-stripe-payment' ) ?>
86
+ </p>
87
+ </div>
88
+ </div>
89
+ </a>
90
+ </div>
91
+ </div>
92
+ </div>
93
+ </div>
94
+ </div>
includes/class-stripe.php CHANGED
@@ -26,7 +26,7 @@ class WC_Stripe_Manager {
26
  *
27
  * @var string
28
  */
29
- public $version = '3.3.16';
30
 
31
  /**
32
  *
@@ -130,7 +130,8 @@ class WC_Stripe_Manager {
130
  || ! in_array( 'woocommerce-gateway-stripe/woocommerce-gateway-stripe.php',
131
  (array) get_option( 'active_plugins', array() ),
132
  true )
133
- && ! ( is_admin() && ! isset( $_GET['activate'], $_GET['plugin'] ) ) ) {
 
134
  /**
135
  * Returns the global instance of the WC_Stripe_Manager.
136
  *
@@ -150,6 +151,7 @@ class WC_Stripe_Manager {
150
 
151
  \PaymentPlugins\CartFlows\Stripe\Main::init();
152
  \PaymentPlugins\WooFunnels\Stripe\Main::init();
 
153
  }
154
 
155
  /**
@@ -168,6 +170,8 @@ class WC_Stripe_Manager {
168
 
169
  if ( is_admin() ) {
170
  include_once WC_STRIPE_PLUGIN_FILE_PATH . 'includes/admin/class-wc-stripe-admin-menus.php';
 
 
171
  include_once WC_STRIPE_PLUGIN_FILE_PATH . 'includes/admin/class-wc-stripe-admin-assets.php';
172
  include_once WC_STRIPE_PLUGIN_FILE_PATH . 'includes/admin/class-wc-stripe-admin-settings.php';
173
  include_once WC_STRIPE_PLUGIN_FILE_PATH . 'includes/admin/meta-boxes/class-wc-stripe-admin-order-metaboxes.php';
26
  *
27
  * @var string
28
  */
29
+ public $version = '3.3.17';
30
 
31
  /**
32
  *
130
  || ! in_array( 'woocommerce-gateway-stripe/woocommerce-gateway-stripe.php',
131
  (array) get_option( 'active_plugins', array() ),
132
  true )
133
+ && ! ( is_admin() && ! isset( $_GET['activate'], $_GET['plugin'] ) )
134
+ ) {
135
  /**
136
  * Returns the global instance of the WC_Stripe_Manager.
137
  *
151
 
152
  \PaymentPlugins\CartFlows\Stripe\Main::init();
153
  \PaymentPlugins\WooFunnels\Stripe\Main::init();
154
+ \PaymentPlugins\CheckoutWC\Stripe\Main::init();
155
  }
156
 
157
  /**
170
 
171
  if ( is_admin() ) {
172
  include_once WC_STRIPE_PLUGIN_FILE_PATH . 'includes/admin/class-wc-stripe-admin-menus.php';
173
+ include_once WC_STRIPE_PLUGIN_FILE_PATH . 'includes/admin/class-wc-stripe-admin-welcome.php';
174
+ include_once WC_STRIPE_PLUGIN_FILE_PATH . 'includes/admin/class-wc-stripe-admin-support.php';
175
  include_once WC_STRIPE_PLUGIN_FILE_PATH . 'includes/admin/class-wc-stripe-admin-assets.php';
176
  include_once WC_STRIPE_PLUGIN_FILE_PATH . 'includes/admin/class-wc-stripe-admin-settings.php';
177
  include_once WC_STRIPE_PLUGIN_FILE_PATH . 'includes/admin/meta-boxes/class-wc-stripe-admin-order-metaboxes.php';
includes/class-wc-stripe-customer-manager.php CHANGED
@@ -1,12 +1,13 @@
1
  <?php
 
2
  defined( 'ABSPATH' ) || exit();
3
 
4
  /**
5
  * Class that manages customer creation and custom updates.
6
  *
7
- * @since 3.0.0
8
  * @package Stripe/Classes
9
- * @author PaymentPlugins
10
  *
11
  */
12
  class WC_Stripe_Customer_Manager {
@@ -29,7 +30,7 @@ class WC_Stripe_Customer_Manager {
29
  /**
30
  *
31
  * @param WC_Customer $customer
32
- * @param array $data
33
  */
34
  public function checkout_update_customer( $customer, $data ) {
35
  if ( $this->user_has_id( $customer ) ) {
@@ -99,7 +100,7 @@ class WC_Stripe_Customer_Manager {
99
 
100
  // this customer may have an ID from another plugin. Check that too.
101
  if ( empty( $id ) ) {
102
- $id = get_user_option( '_stripe_customer_id', $customer->get_id() );
103
  if ( ! empty( $id ) ) {
104
  // validate that this customer exists in the Stripe gateway
105
  $response = WC_Stripe_Gateway::load()->customers->retrieve( $id );
@@ -122,7 +123,7 @@ class WC_Stripe_Customer_Manager {
122
  * Syncs the WC database payment methods with the payment methods stored in Stripe.
123
  *
124
  * @param string $customer_id
125
- * @param int $user_id
126
  *
127
  * @since 3.1.0
128
  */
@@ -206,10 +207,10 @@ class WC_Stripe_Customer_Manager {
206
  * Return an array of args used to create or update a customer.
207
  *
208
  * @param WC_Customer $customer
209
- * @param string $context
210
  *
211
- * @return array
212
  * @since 3.2.12
 
213
  */
214
  private function get_customer_args( $customer, $context = 'create' ) {
215
  $args = array(
@@ -235,6 +236,7 @@ class WC_Stripe_Customer_Manager {
235
 
236
  return $args;
237
  }
 
238
  }
239
 
240
  WC_Stripe_Customer_Manager::instance();
1
  <?php
2
+
3
  defined( 'ABSPATH' ) || exit();
4
 
5
  /**
6
  * Class that manages customer creation and custom updates.
7
  *
8
+ * @since 3.0.0
9
  * @package Stripe/Classes
10
+ * @author PaymentPlugins
11
  *
12
  */
13
  class WC_Stripe_Customer_Manager {
30
  /**
31
  *
32
  * @param WC_Customer $customer
33
+ * @param array $data
34
  */
35
  public function checkout_update_customer( $customer, $data ) {
36
  if ( $this->user_has_id( $customer ) ) {
100
 
101
  // this customer may have an ID from another plugin. Check that too.
102
  if ( empty( $id ) ) {
103
+ $id = get_user_option( WC_Stripe_Constants::STRIPE_CUSTOMER_ID, $customer->get_id() );
104
  if ( ! empty( $id ) ) {
105
  // validate that this customer exists in the Stripe gateway
106
  $response = WC_Stripe_Gateway::load()->customers->retrieve( $id );
123
  * Syncs the WC database payment methods with the payment methods stored in Stripe.
124
  *
125
  * @param string $customer_id
126
+ * @param int $user_id
127
  *
128
  * @since 3.1.0
129
  */
207
  * Return an array of args used to create or update a customer.
208
  *
209
  * @param WC_Customer $customer
210
+ * @param string $context
211
  *
 
212
  * @since 3.2.12
213
+ * @return array
214
  */
215
  private function get_customer_args( $customer, $context = 'create' ) {
216
  $args = array(
236
 
237
  return $args;
238
  }
239
+
240
  }
241
 
242
  WC_Stripe_Customer_Manager::instance();
includes/class-wc-stripe-frontend-scripts.php CHANGED
@@ -1,11 +1,12 @@
1
  <?php
 
2
  defined( 'ABSPATH' ) || exit();
3
 
4
  /**
5
  * Handles scrip enqueuement and output of params needed by the plugin.
6
  *
7
  * @package Stripe/Classes
8
- * @author PaymentPlugins
9
  */
10
  class WC_Stripe_Frontend_Scripts {
11
 
@@ -19,10 +20,11 @@ class WC_Stripe_Frontend_Scripts {
19
 
20
  public $localized_data = array();
21
 
22
- public $global_scripts = array(
23
- 'external' => 'https://js.stripe.com/v3/',
24
- 'gpay' => 'https://pay.google.com/gp/p/js/pay.js'
25
- );
 
26
 
27
  public function __construct() {
28
  add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
@@ -140,7 +142,7 @@ class WC_Stripe_Frontend_Scripts {
140
  /**
141
  *
142
  * @param string $handle
143
- * @param array $data
144
  * @param string $object_name
145
  */
146
  public function localize_script( $handle, $data, $object_name = '' ) {
@@ -177,7 +179,7 @@ class WC_Stripe_Frontend_Scripts {
177
  }
178
 
179
  public function get_min() {
180
- return $suffix = SCRIPT_DEBUG ? '' : '.min';
181
  }
182
 
183
  private function get_page_id() {
@@ -200,4 +202,5 @@ class WC_Stripe_Frontend_Scripts {
200
  }
201
  }
202
  }
 
203
  }
1
  <?php
2
+
3
  defined( 'ABSPATH' ) || exit();
4
 
5
  /**
6
  * Handles scrip enqueuement and output of params needed by the plugin.
7
  *
8
  * @package Stripe/Classes
9
+ * @author PaymentPlugins
10
  */
11
  class WC_Stripe_Frontend_Scripts {
12
 
20
 
21
  public $localized_data = array();
22
 
23
+ public $global_scripts
24
+ = array(
25
+ 'external' => 'https://js.stripe.com/v3/',
26
+ 'gpay' => 'https://pay.google.com/gp/p/js/pay.js'
27
+ );
28
 
29
  public function __construct() {
30
  add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
142
  /**
143
  *
144
  * @param string $handle
145
+ * @param array $data
146
  * @param string $object_name
147
  */
148
  public function localize_script( $handle, $data, $object_name = '' ) {
179
  }
180
 
181
  public function get_min() {
182
+ return defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
183
  }
184
 
185
  private function get_page_id() {
202
  }
203
  }
204
  }
205
+
206
  }
includes/class-wc-stripe-payment-charge.php CHANGED
@@ -1,14 +1,15 @@
1
  <?php
 
2
  defined( 'ABSPATH' ) || exit();
3
 
4
  require_once( WC_STRIPE_PLUGIN_FILE_PATH . 'includes/abstract/abstract-wc-stripe-payment.php' );
5
 
6
  /**
7
  *
8
- * @package Stripe/Classes
9
- * @author Payment Plugins
10
- * @since 3.1.0
11
  *
 
 
12
  */
13
  class WC_Stripe_Payment_Charge extends WC_Stripe_Payment {
14
 
@@ -77,9 +78,9 @@ class WC_Stripe_Payment_Charge extends WC_Stripe_Payment {
77
  public function scheduled_subscription_payment( $amount, $order ) {
78
  $this->get_order_charge_args( $args, $order );
79
 
80
- $args['source'] = $order->get_meta( WC_Stripe_Constants::PAYMENT_METHOD_TOKEN );
81
 
82
- if ( ( $customer_id = $order->get_meta( WC_Stripe_Constants::CUSTOMER_ID ) ) ) {
83
  $args['customer'] = $customer_id;
84
  } elseif ( ( $customer_id = wc_stripe_get_customer_id( $order->get_customer_id(), wc_stripe_order_mode( $order ) ) ) ) {
85
  $args['customer'] = $customer_id;
@@ -128,7 +129,7 @@ class WC_Stripe_Payment_Charge extends WC_Stripe_Payment {
128
 
129
  /**
130
  *
131
- * @param array $args
132
  * @param WC_Order $order
133
  */
134
  public function get_order_charge_args( &$args, $order ) {
@@ -180,4 +181,5 @@ class WC_Stripe_Payment_Charge extends WC_Stripe_Payment {
180
  public function can_void_order( $order ) {
181
  return $order->get_transaction_id();
182
  }
 
183
  }
1
  <?php
2
+
3
  defined( 'ABSPATH' ) || exit();
4
 
5
  require_once( WC_STRIPE_PLUGIN_FILE_PATH . 'includes/abstract/abstract-wc-stripe-payment.php' );
6
 
7
  /**
8
  *
9
+ * @since 3.1.0
 
 
10
  *
11
+ * @author Payment Plugins
12
+ * @package Stripe/Classes
13
  */
14
  class WC_Stripe_Payment_Charge extends WC_Stripe_Payment {
15
 
78
  public function scheduled_subscription_payment( $amount, $order ) {
79
  $this->get_order_charge_args( $args, $order );
80
 
81
+ $args['source'] = $this->payment_method->get_order_meta_data( WC_Stripe_Constants::PAYMENT_METHOD_TOKEN, $order );
82
 
83
+ if ( ( $customer_id = $this->payment_method->get_order_meta_data( WC_Stripe_Constants::CUSTOMER_ID, $order ) ) ) {
84
  $args['customer'] = $customer_id;
85
  } elseif ( ( $customer_id = wc_stripe_get_customer_id( $order->get_customer_id(), wc_stripe_order_mode( $order ) ) ) ) {
86
  $args['customer'] = $customer_id;
129
 
130
  /**
131
  *
132
+ * @param array $args
133
  * @param WC_Order $order
134
  */
135
  public function get_order_charge_args( &$args, $order ) {
181
  public function can_void_order( $order ) {
182
  return $order->get_transaction_id();
183
  }
184
+
185
  }
includes/class-wc-stripe-rest-api.php CHANGED
@@ -4,18 +4,19 @@ defined( 'ABSPATH' ) || exit();
4
 
5
  /**
6
  *
7
- * @author PaymentPlugins
8
  * @package Stripe/Classes
9
- * @property WC_Stripe_Rest_Controller $order_actions
10
- * @property WC_Stripe_Rest_Controller $cart
11
- * @property WC_Stripe_Rest_Controller $checkout
12
- * @property WC_Stripe_Rest_Controller $payment_intent
13
- * @property WC_Stripe_Rest_Controller $googlepay
14
- * @property WC_Stripe_Rest_Controller $settings
15
- * @property WC_Stripe_Rest_Controller $webhook
16
- * @property WC_Stripe_Rest_Controller $product_data
17
- * @property WC_Stripe_Rest_Controller $plaid
18
- * @property WC_Stripe_Rest_Controller $source
 
19
  */
20
  class WC_Stripe_Rest_API {
21
 
@@ -66,6 +67,7 @@ class WC_Stripe_Rest_API {
66
  include_once WC_STRIPE_PLUGIN_FILE_PATH . 'includes/controllers/class-wc-stripe-controller-product-data.php';
67
  include_once WC_STRIPE_PLUGIN_FILE_PATH . 'includes/controllers/class-wc-stripe-controller-plaid.php';
68
  include_once WC_STRIPE_PLUGIN_FILE_PATH . 'includes/controllers/class-wc-stripe-controller-source.php';
 
69
 
70
  foreach ( $this->get_controllers() as $key => $class_name ) {
71
  if ( class_exists( $class_name ) ) {
@@ -96,7 +98,8 @@ class WC_Stripe_Rest_API {
96
  'webhook' => 'WC_Stripe_Controller_Webhook',
97
  'product_data' => 'WC_Stripe_Controller_Product_Data',
98
  'plaid' => 'WC_Stripe_Controller_Plaid',
99
- 'source' => 'WC_Stripe_Controller_Source'
 
100
  );
101
 
102
  /**
4
 
5
  /**
6
  *
7
+ * @author PaymentPlugins
8
  * @package Stripe/Classes
9
+ * @property WC_Stripe_Rest_Controller $order_actions
10
+ * @property WC_Stripe_Rest_Controller $cart
11
+ * @property WC_Stripe_Rest_Controller $checkout
12
+ * @property WC_Stripe_Rest_Controller $payment_intent
13
+ * @property WC_Stripe_Rest_Controller $googlepay
14
+ * @property WC_Stripe_Rest_Controller $settings
15
+ * @property WC_Stripe_Rest_Controller $webhook
16
+ * @property WC_Stripe_Rest_Controller $product_data
17
+ * @property WC_Stripe_Rest_Controller $plaid
18
+ * @property WC_Stripe_Rest_Controller $source
19
+ * @property \WC_Stripe_Rest_Controller $signup
20
  */
21
  class WC_Stripe_Rest_API {
22
 
67
  include_once WC_STRIPE_PLUGIN_FILE_PATH . 'includes/controllers/class-wc-stripe-controller-product-data.php';
68
  include_once WC_STRIPE_PLUGIN_FILE_PATH . 'includes/controllers/class-wc-stripe-controller-plaid.php';
69
  include_once WC_STRIPE_PLUGIN_FILE_PATH . 'includes/controllers/class-wc-stripe-controller-source.php';
70
+ include_once WC_STRIPE_PLUGIN_FILE_PATH . 'includes/controllers/class-wc-stripe-controller-signup.php';
71
 
72
  foreach ( $this->get_controllers() as $key => $class_name ) {
73
  if ( class_exists( $class_name ) ) {
98
  'webhook' => 'WC_Stripe_Controller_Webhook',
99
  'product_data' => 'WC_Stripe_Controller_Product_Data',
100
  'plaid' => 'WC_Stripe_Controller_Plaid',
101
+ 'source' => 'WC_Stripe_Controller_Source',
102
+ 'signup' => 'WC_Stripe_Controller_SignUp'
103
  );
104
 
105
  /**
includes/controllers/class-wc-stripe-controller-signup.php ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class WC_Stripe_Controller_SignUp extends WC_Stripe_Rest_Controller {
4
+
5
+ protected $namespace = 'admin/signup';
6
+
7
+ private $api_url = 'https://crm.paymentplugins.com/v1/contacts';
8
+
9
+ public function register_routes() {
10
+ register_rest_route(
11
+ $this->rest_uri(), 'contact', array(
12
+ 'methods' => WP_REST_Server::CREATABLE,
13
+ 'callback' => array( $this, 'register_contact' ),
14
+ 'permission_callback' => array( $this, 'admin_permission_check' ),
15
+ 'args' => array(
16
+ 'firstname' => array(
17
+ 'required',
18
+ 'validate_callback' => function ( $value ) {
19
+ return strlen( $value ) > 0;
20
+ }
21
+ ),
22
+ 'email' => array(
23
+ 'required',
24
+ 'validate_callback' => function ( $value ) {
25
+ return strlen( $value ) > 0 && is_email( $value );
26
+ }
27
+ )
28
+ )
29
+ )
30
+ );
31
+ }
32
+
33
+ /**
34
+ * @param \WP_REST_Request $request
35
+ */
36
+ public function register_contact( $request ) {
37
+ $data = array(
38
+ 'email' => $request['email'],
39
+ 'attributes' => array(
40
+ 'firstname' => $request['firstname'],
41
+ 'website' => get_site_url(),
42
+ 'plugin' => 'stripe',
43
+ 'account_active' => false
44
+ )
45
+ );
46
+ $result = wp_safe_remote_post( $this->api_url, array(
47
+ 'method' => 'POST',
48
+ 'timeout' => 30,
49
+ 'httpversion' => 1,
50
+ 'blocking' => true,
51
+ 'headers' => array(
52
+ 'Content-Type' => 'application/json'
53
+ ),
54
+ 'body' => wp_json_encode( $data ),
55
+ 'cookies' => array()
56
+ ) );
57
+ if ( is_wp_error( $result ) ) {
58
+ return new WP_Error( 'contact-error', $result->get_error_message(), array( 'status' => 200 ) );
59
+ }
60
+ if ( wp_remote_retrieve_response_code( $result ) !== 200 ) {
61
+ $body = json_decode( wp_remote_retrieve_body( $result ), true );
62
+
63
+ return new WP_Error( 'contact-error', $body['message'], array( 'status' => 200 ) );
64
+ }
65
+ update_option( 'wc_stripe_admin_signup', true, false );
66
+
67
+ return rest_ensure_response( array( 'success' => true, 'message' => __( 'It\'s on its way! Please check your emails.', 'woo-stripe-payment' ) ) );
68
+ }
69
+
70
+ }
includes/gateways/class-wc-payment-gateway-stripe-afterpay.php CHANGED
@@ -296,7 +296,7 @@ class WC_Payment_Gateway_Stripe_Afterpay extends WC_Payment_Gateway_Stripe_Local
296
  'AUD' => array( 'AU', 1, 2000 ),
297
  'CAD' => array( 'CA', 1, 2000 ),
298
  'NZD' => array( 'NZ', 1, 2000 ),
299
- 'GBP' => array( 'GB', 1, 800 ),
300
  'USD' => array( 'US', 1, 2000 )
301
  ), $this );
302
  }
296
  'AUD' => array( 'AU', 1, 2000 ),
297
  'CAD' => array( 'CA', 1, 2000 ),
298
  'NZD' => array( 'NZ', 1, 2000 ),
299
+ 'GBP' => array( 'GB', 1, 1000 ),
300
  'USD' => array( 'US', 1, 2000 )
301
  ), $this );
302
  }
includes/gateways/class-wc-payment-gateway-stripe-cc.php CHANGED
@@ -17,7 +17,7 @@ class WC_Payment_Gateway_Stripe_CC extends WC_Payment_Gateway_Stripe {
17
 
18
  public function __construct() {
19
  $this->id = 'stripe_cc';
20
- $this->tab_title = __( 'Credit Cards', 'woo-stripe-payment' );
21
  $this->template_name = 'credit-card.php';
22
  $this->token_type = 'Stripe_CC';
23
  $this->method_title = __( 'Stripe Credit Cards', 'woo-stripe-payment' );
17
 
18
  public function __construct() {
19
  $this->id = 'stripe_cc';
20
+ $this->tab_title = __( 'Credit/Debit Cards', 'woo-stripe-payment' );
21
  $this->template_name = 'credit-card.php';
22
  $this->token_type = 'Stripe_CC';
23
  $this->method_title = __( 'Stripe Credit Cards', 'woo-stripe-payment' );
includes/gateways/settings/cc-settings.php CHANGED
@@ -20,7 +20,7 @@ return array(
20
  'title_text' => array(
21
  'type' => 'text',
22
  'title' => __( 'Title', 'woo-stripe-payment' ),
23
- 'default' => __( 'Credit Cards', 'woo-stripe-payment' ),
24
  'desc_tip' => true,
25
  'description' => __( 'Title of the credit card gateway' ),
26
  ),
20
  'title_text' => array(
21
  'type' => 'text',
22
  'title' => __( 'Title', 'woo-stripe-payment' ),
23
+ 'default' => __( 'Credit/Debit Cards', 'woo-stripe-payment' ),
24
  'desc_tip' => true,
25
  'description' => __( 'Title of the credit card gateway' ),
26
  ),
packages/checkoutwc/assets/css/styles.scss ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #cfw-payment-request-buttons {
2
+ .wc-stripe-banner-checkout {
3
+ overflow: visible;
4
+ max-height: none;
5
+
6
+ fieldset {
7
+ border: none;
8
+ padding: 0;
9
+ margin: 0;
10
+
11
+ legend {
12
+ display: none;
13
+ }
14
+
15
+ .wc_stripe_checkout_banner_gateways {
16
+ display: flex;
17
+ flex-wrap: wrap;
18
+
19
+ .banner_payment_method_stripe_googlepay {
20
+ button {
21
+ padding: 0;
22
+ }
23
+ }
24
+
25
+ .banner_payment_method_stripe_applepay {
26
+ min-width: 140px !important;
27
+
28
+ button {
29
+ width: 100% !important;
30
+ }
31
+ }
32
+
33
+ .wc-stripe-checkout-banner-gateway {
34
+ margin: 0;
35
+ }
36
+ }
37
+ }
38
+
39
+ .banner-divider {
40
+ display: none;
41
+ }
42
+ }
43
+ }
packages/checkoutwc/build/styles-rtl.css ADDED
@@ -0,0 +1 @@
 
1
+ #cfw-payment-request-buttons .wc-stripe-banner-checkout{max-height:none;overflow:visible}#cfw-payment-request-buttons .wc-stripe-banner-checkout fieldset{border:none;margin:0;padding:0}#cfw-payment-request-buttons .wc-stripe-banner-checkout fieldset legend{display:none}#cfw-payment-request-buttons .wc-stripe-banner-checkout fieldset .wc_stripe_checkout_banner_gateways{display:flex;flex-wrap:wrap}#cfw-payment-request-buttons .wc-stripe-banner-checkout fieldset .wc_stripe_checkout_banner_gateways .banner_payment_method_stripe_googlepay button{padding:0}#cfw-payment-request-buttons .wc-stripe-banner-checkout fieldset .wc_stripe_checkout_banner_gateways .banner_payment_method_stripe_applepay{min-width:140px!important}#cfw-payment-request-buttons .wc-stripe-banner-checkout fieldset .wc_stripe_checkout_banner_gateways .banner_payment_method_stripe_applepay button{width:100%!important}#cfw-payment-request-buttons .wc-stripe-banner-checkout fieldset .wc_stripe_checkout_banner_gateways .wc-stripe-checkout-banner-gateway{margin:0}#cfw-payment-request-buttons .wc-stripe-banner-checkout .banner-divider{display:none}
packages/checkoutwc/build/styles.css ADDED
@@ -0,0 +1 @@
 
1
+ #cfw-payment-request-buttons .wc-stripe-banner-checkout{max-height:none;overflow:visible}#cfw-payment-request-buttons .wc-stripe-banner-checkout fieldset{border:none;margin:0;padding:0}#cfw-payment-request-buttons .wc-stripe-banner-checkout fieldset legend{display:none}#cfw-payment-request-buttons .wc-stripe-banner-checkout fieldset .wc_stripe_checkout_banner_gateways{display:flex;flex-wrap:wrap}#cfw-payment-request-buttons .wc-stripe-banner-checkout fieldset .wc_stripe_checkout_banner_gateways .banner_payment_method_stripe_googlepay button{padding:0}#cfw-payment-request-buttons .wc-stripe-banner-checkout fieldset .wc_stripe_checkout_banner_gateways .banner_payment_method_stripe_applepay{min-width:140px!important}#cfw-payment-request-buttons .wc-stripe-banner-checkout fieldset .wc_stripe_checkout_banner_gateways .banner_payment_method_stripe_applepay button{width:100%!important}#cfw-payment-request-buttons .wc-stripe-banner-checkout fieldset .wc_stripe_checkout_banner_gateways .wc-stripe-checkout-banner-gateway{margin:0}#cfw-payment-request-buttons .wc-stripe-banner-checkout .banner-divider{display:none}
packages/checkoutwc/build/styles.js.map ADDED
@@ -0,0 +1 @@
 
1
+ {"version":3,"sources":["webpack://woo-stripe-payment/./packages/checkoutwc/assets/css/styles.scss"],"names":[],"mappings":";;;AAAA","file":"styles.js","sourcesContent":["// extracted by mini-css-extract-plugin\nexport {};"],"sourceRoot":""}
packages/checkoutwc/src/AssetsController.php ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace PaymentPlugins\CheckoutWC\Stripe;
4
+
5
+ class AssetsController {
6
+
7
+ private $version;
8
+
9
+ private $path;
10
+
11
+ private $assets_path;
12
+
13
+ public function __construct( $version, $assets_path ) {
14
+ $this->version = $version;
15
+ $this->assets_path = $assets_path;
16
+ $this->initialize();
17
+ }
18
+
19
+ private function initialize() {
20
+ add_action( 'cfw_payment_request_buttons', [ $this, 'enqueue_styles' ] );
21
+ }
22
+
23
+ public function enqueue_styles() {
24
+ foreach ( WC()->payment_gateways()->payment_gateways() as $gateway ) {
25
+ if ( $gateway instanceof \WC_Payment_Gateway_Stripe ) {
26
+ if ( $gateway->supports( 'wc_stripe_banner_checkout' ) && $gateway->banner_checkout_enabled() ) {
27
+ wp_enqueue_style( 'wc-stripe-checkoutwc-style', $this->assets_path . 'build/styles.css', [], $this->version );
28
+ break;
29
+ }
30
+ }
31
+ }
32
+ }
33
+
34
+ }
packages/checkoutwc/src/Main.php ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace PaymentPlugins\CheckoutWC\Stripe;
4
+
5
+ class Main {
6
+
7
+ public static function init() {
8
+ if ( self::is_active() ) {
9
+ new AssetsController( stripe_wc()->version(), plugin_dir_url( __DIR__ ) );
10
+ }
11
+ }
12
+
13
+ private static function is_active() {
14
+ return defined( 'CFW_NAME' );
15
+ }
16
+
17
+ }
packages/woofunnels/assets/css/checkout/styles.scss ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .wc-stripe-wfacp-express-buttons {
2
+ .wc-stripe-checkout-banner-gateway {
3
+ &:nth-child(n+2) {
4
+ margin: 10px 0 0 0;
5
+ }
6
+ }
7
+
8
+ li{
9
+ &.banner_payment_method_stripe_payment_request{
10
+ #wc-stripe-payment-request-banner{
11
+ margin: 0 auto;
12
+ width: 240px;
13
+ }
14
+ }
15
+ }
16
+ }
packages/woofunnels/assets/js/checkout/index.js ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ import $ from 'jquery';
2
+
3
+ $(document.body).on('wc_stripe_get_billing_prefix', (e, prefix) => {
4
+ if (!$('[name="billing_same_as_shipping"]').is(':checked')) {
5
+ prefix = 'shipping';
6
+ } else {
7
+ prefix = 'billing';
8
+ }
9
+ return prefix;
10
+ });
packages/woofunnels/assets/js/{index.js → upsell/index.js} RENAMED
File without changes
packages/woofunnels/build/wc-stripe-woofunnels-checkout-styles-rtl.css ADDED
@@ -0,0 +1 @@
 
1
+ .wc-stripe-wfacp-express-buttons .wc-stripe-checkout-banner-gateway:nth-child(n+2){margin:10px 0 0}.wc-stripe-wfacp-express-buttons li.banner_payment_method_stripe_payment_request #wc-stripe-payment-request-banner{margin:0 auto;width:240px}
packages/woofunnels/build/wc-stripe-woofunnels-checkout-styles.css ADDED
@@ -0,0 +1 @@
 
1
+ .wc-stripe-wfacp-express-buttons .wc-stripe-checkout-banner-gateway:nth-child(n+2){margin:10px 0 0}.wc-stripe-wfacp-express-buttons li.banner_payment_method_stripe_payment_request #wc-stripe-payment-request-banner{margin:0 auto;width:240px}
packages/woofunnels/build/wc-stripe-woofunnels-checkout-styles.js.map ADDED
@@ -0,0 +1 @@
 
1
+ {"version":3,"sources":["webpack://woo-stripe-payment/./packages/woofunnels/assets/css/checkout/styles.scss"],"names":[],"mappings":";;;AAAA","file":"wc-stripe-woofunnels-checkout-styles.js","sourcesContent":["// extracted by mini-css-extract-plugin\nexport {};"],"sourceRoot":""}
packages/woofunnels/build/{wc-stripe-woofunnels.asset.php → wc-stripe-woofunnels-checkout.asset.php} RENAMED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('jquery'), 'version' => 'c96b9b16d88aa70ec06e052472f2d731');
1
+ <?php return array('dependencies' => array('jquery'), 'version' => 'f53b767be6031afa6e480c25a13a94b5');
packages/woofunnels/build/wc-stripe-woofunnels-checkout.js ADDED
@@ -0,0 +1,2 @@
 
 
1
+ (()=>{var e,t={318:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}}},609:e=>{"use strict";e.exports=window.jQuery}},i={};function r(e){if(i[e])return i[e].exports;var n=i[e]={exports:{}};return t[e](n,n.exports,r),n.exports}(0,(e=r(318)(r(609))).default)(document.body).on("wc_stripe_get_billing_prefix",(function(t,i){return(0,e.default)('[name="billing_same_as_shipping"]').is(":checked")?"billing":"shipping"})),(this.wc_stripe=this.wc_stripe||{})["wc-stripe-woofunnels-checkout"]={}})();
2
+ //# sourceMappingURL=wc-stripe-woofunnels-checkout.js.map
packages/woofunnels/build/wc-stripe-woofunnels-checkout.js.map ADDED
@@ -0,0 +1 @@
 
1
+ {"version":3,"sources":["webpack://wc_stripe.[name]/./packages/woofunnels/assets/js/checkout/index.js","webpack://wc_stripe.[name]/./node_modules/@babel/runtime/helpers/interopRequireDefault.js","webpack://wc_stripe.[name]/external \"jQuery\"","webpack://wc_stripe.[name]/webpack/bootstrap"],"names":["module","exports","obj","__esModule","window","__webpack_module_cache__","__webpack_require__","moduleId","__webpack_modules__","document","body","on","e","prefix","is"],"mappings":"UAAA,E,WCMAA,EAAOC,QANP,SAAgCC,GAC9B,OAAOA,GAAOA,EAAIC,WAAaD,EAAM,CACnC,QAAWA,K,qBCFfF,EAAOC,QAAUG,OAAe,SCC5BC,EAA2B,GAG/B,SAASC,EAAoBC,GAE5B,GAAGF,EAAyBE,GAC3B,OAAOF,EAAyBE,GAAUN,QAG3C,IAAID,EAASK,EAAyBE,GAAY,CAGjDN,QAAS,IAOV,OAHAO,EAAoBD,GAAUP,EAAQA,EAAOC,QAASK,GAG/CN,EAAOC,SHlBf,GAFA,E,MAAA,UAEA,SAAEQ,SAASC,MAAMC,GAAG,gCAAgC,SAACC,EAAGC,GAMpD,OALK,aAAE,qCAAqCC,GAAG,YAGlC,UAFA,e","file":"wc-stripe-woofunnels-checkout.js","sourcesContent":["import $ from 'jquery';\r\n\r\n$(document.body).on('wc_stripe_get_billing_prefix', (e, prefix) => {\r\n if (!$('[name=\"billing_same_as_shipping\"]').is(':checked')) {\r\n prefix = 'shipping';\r\n } else {\r\n prefix = 'billing';\r\n }\r\n return prefix;\r\n});","function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\n\nmodule.exports = _interopRequireDefault;","module.exports = window[\"jQuery\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tif(__webpack_module_cache__[moduleId]) {\n\t\treturn __webpack_module_cache__[moduleId].exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n"],"sourceRoot":""}
packages/woofunnels/build/wc-stripe-woofunnels-upsell.asset.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php return array('dependencies' => array('jquery'), 'version' => '526955bbf31b5976cbe5c4cd25215d88');
packages/woofunnels/build/{wc-stripe-woofunnels.js → wc-stripe-woofunnels-upsell.js} RENAMED
@@ -1,2 +1,2 @@
1
- (()=>{var e,t,n,r,o,i,a,c,u,s,l,d={318:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}}},465:(e,t,n)=>{"use strict";n.r(t),n.d(t,{loadStripe:()=>l});var r="https://js.stripe.com/v3",o=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,i="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",a=null,c=function(e,t,n){if(null===e)return null;var r=e.apply(void 0,t);return function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"1.12.1",startTime:t})}(r,n),r},u=Promise.resolve().then((function(){return e=null,null!==a?a:a=new Promise((function(t,n){if("undefined"!=typeof window)if(window.Stripe&&e&&console.warn(i),window.Stripe)t(window.Stripe);else try{var a=function(){for(var e=document.querySelectorAll('script[src^="'.concat(r,'"]')),t=0;t<e.length;t++){var n=e[t];if(o.test(n.src))return n}return null}();a&&e?console.warn(i):a||(a=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",n=document.createElement("script");n.src="".concat(r).concat(t);var o=document.head||document.body;if(!o)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return o.appendChild(n),n}(e)),a.addEventListener("load",(function(){window.Stripe?t(window.Stripe):n(new Error("Stripe.js not available"))})),a.addEventListener("error",(function(){n(new Error("Failed to load Stripe.js"))}))}catch(e){return void n(e)}else t(null)}));var e})),s=!1;u.catch((function(e){s||console.warn(e)}));var l=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];s=!0;var r=Date.now();return u.then((function(e){return c(e,t,r)}))}},609:e=>{"use strict";e.exports=window.jQuery}},p={};function f(e){if(p[e])return p[e].exports;var t=p[e]={exports:{}};return d[e](t,t.exports,f),t.exports}f.d=(e,t)=>{for(var n in t)f.o(t,n)&&!f.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},f.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),f.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t=f(318),n=f(465),r=t(f(609)),o={},i=function(e,t){s("bucket",t)},a=function(t){var n=t.newURL.match(/response=(.*)/);if(n){var r,o,i=JSON.parse(window.atob(decodeURIComponent(n[1])));null===(r=u("bucket"))||void 0===r||null===(o=r.swal)||void 0===o||o.hide(),s("paymentIntent",i.payment_intent),history.pushState({},"",window.location.pathname+window.location.search),e.confirmCardPayment(i.client_secret).then((function(e){e.error?l():(s("paymentComplete",!0),u("bucket").sendBucket())})).catch((function(e){console.log(e)}))}},c=function(e){return e._payment_intent=u("paymentIntent"),e},u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.hasOwnProperty(e)||(o[e]=t),o[e]},s=function(e,t){o[e]=t},l=function(){u("bucket").inOfferTransaction=!1,u("bucket").EnableButtonState(),u("bucket").HasEventRunning=!1},(0,r.default)(document).on("wfocuBucketCreated",(function(t,l){var d,p;o=null===(d=window)||void 0===d||null===(p=d.wfocu_vars)||void 0===p?void 0:p.stripeData,s("bucket",l),(0,r.default)(document).on("wfocu_external",i),window.addEventListener("hashchange",a),wfocuCommons.addFilter("wfocu_front_charge_data",c),(0,n.loadStripe)(u("publishableKey",u("account")?{stripeAccount:u("account")}:{})).then((function(t){e=t})).catch((function(e){}))})),(this.wc_stripe=this.wc_stripe||{})["wc-stripe-woofunnels"]={}})();
2
- //# sourceMappingURL=wc-stripe-woofunnels.js.map
1
+ (()=>{var e,t,n,r,o,i,a,c,u,l,s,d={318:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}}},465:(e,t,n)=>{"use strict";n.r(t),n.d(t,{loadStripe:()=>s});var r="https://js.stripe.com/v3",o=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,i="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",a=null,c=function(e,t,n){if(null===e)return null;var r=e.apply(void 0,t);return function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"1.12.1",startTime:t})}(r,n),r},u=Promise.resolve().then((function(){return e=null,null!==a?a:a=new Promise((function(t,n){if("undefined"!=typeof window)if(window.Stripe&&e&&console.warn(i),window.Stripe)t(window.Stripe);else try{var a=function(){for(var e=document.querySelectorAll('script[src^="'.concat(r,'"]')),t=0;t<e.length;t++){var n=e[t];if(o.test(n.src))return n}return null}();a&&e?console.warn(i):a||(a=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",n=document.createElement("script");n.src="".concat(r).concat(t);var o=document.head||document.body;if(!o)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return o.appendChild(n),n}(e)),a.addEventListener("load",(function(){window.Stripe?t(window.Stripe):n(new Error("Stripe.js not available"))})),a.addEventListener("error",(function(){n(new Error("Failed to load Stripe.js"))}))}catch(e){return void n(e)}else t(null)}));var e})),l=!1;u.catch((function(e){l||console.warn(e)}));var s=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];l=!0;var r=Date.now();return u.then((function(e){return c(e,t,r)}))}},609:e=>{"use strict";e.exports=window.jQuery}},p={};function f(e){if(p[e])return p[e].exports;var t=p[e]={exports:{}};return d[e](t,t.exports,f),t.exports}f.d=(e,t)=>{for(var n in t)f.o(t,n)&&!f.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},f.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),f.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t=f(318),n=f(465),r=t(f(609)),o={},i=function(e,t){l("bucket",t)},a=function(t){var n=t.newURL.match(/response=(.*)/);if(n){var r,o,i=JSON.parse(window.atob(decodeURIComponent(n[1])));null===(r=u("bucket"))||void 0===r||null===(o=r.swal)||void 0===o||o.hide(),l("paymentIntent",i.payment_intent),history.pushState({},"",window.location.pathname+window.location.search),e.confirmCardPayment(i.client_secret).then((function(e){e.error?s():(l("paymentComplete",!0),u("bucket").sendBucket())})).catch((function(e){console.log(e)}))}},c=function(e){return e._payment_intent=u("paymentIntent"),e},u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.hasOwnProperty(e)||(o[e]=t),o[e]},l=function(e,t){o[e]=t},s=function(){u("bucket").inOfferTransaction=!1,u("bucket").EnableButtonState(),u("bucket").HasEventRunning=!1},(0,r.default)(document).on("wfocuBucketCreated",(function(t,s){var d,p;o=null===(d=window)||void 0===d||null===(p=d.wfocu_vars)||void 0===p?void 0:p.stripeData,l("bucket",s),(0,r.default)(document).on("wfocu_external",i),window.addEventListener("hashchange",a),wfocuCommons.addFilter("wfocu_front_charge_data",c),(0,n.loadStripe)(u("publishableKey",u("account")?{stripeAccount:u("account")}:{})).then((function(t){e=t})).catch((function(e){}))})),(this.wc_stripe=this.wc_stripe||{})["wc-stripe-woofunnels-upsell"]={}})();
2
+ //# sourceMappingURL=wc-stripe-woofunnels-upsell.js.map
packages/woofunnels/build/wc-stripe-woofunnels-upsell.js.map ADDED
@@ -0,0 +1 @@
 
1
+ {"version":3,"sources":["webpack://wc_stripe.[name]/./packages/woofunnels/assets/js/upsell/index.js","webpack://wc_stripe.[name]/./node_modules/@babel/runtime/helpers/interopRequireDefault.js","webpack://wc_stripe.[name]/./node_modules/@stripe/stripe-js/dist/stripe.esm.js","webpack://wc_stripe.[name]/external \"jQuery\"","webpack://wc_stripe.[name]/webpack/bootstrap","webpack://wc_stripe.[name]/webpack/runtime/define property getters","webpack://wc_stripe.[name]/webpack/runtime/hasOwnProperty shorthand","webpack://wc_stripe.[name]/webpack/runtime/make namespace object"],"names":["stripe","data","onHandleSubmit","handleHashChange","addChargeData","getData","setData","resetPaymentProcess","module","exports","obj","__esModule","V3_URL","V3_URL_REGEX","EXISTING_SCRIPT_MESSAGE","stripePromise","initStripe","maybeStripe","args","startTime","apply","undefined","_registerWrapper","name","version","registerWrapper","stripePromise$1","Promise","resolve","then","params","reject","window","Stripe","console","warn","script","scripts","document","querySelectorAll","concat","i","length","test","src","findScript","queryString","advancedFraudSignals","createElement","headOrBody","head","body","Error","appendChild","injectScript","addEventListener","error","loadCalled","err","loadStripe","_len","arguments","Array","_key","Date","now","__webpack_module_cache__","__webpack_require__","moduleId","__webpack_modules__","d","definition","key","o","Object","defineProperty","enumerable","get","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","e","bucket","match","newURL","JSON","parse","atob","decodeURIComponent","swal","hide","payment_intent","history","pushState","location","pathname","search","confirmCardPayment","client_secret","response","sendBucket","catch","log","defaultValue","inOfferTransaction","EnableButtonState","HasEventRunning","on","wfocu_vars","stripeData","wfocuCommons","addFilter","stripeAccount","client"],"mappings":"UAGIA,E,EAHJ,EACA,EAIIC,EAuBEC,EAIAC,EAqBAC,EAKAC,EAOAC,EAIAC,E,WC/DNC,EAAOC,QANP,SAAgCC,GAC9B,OAAOA,GAAOA,EAAIC,WAAaD,EAAM,CACnC,QAAWA,K,4DCFf,IAAIE,EAAS,2BACTC,EAAe,4CACfC,EAA0B,mJA2C1BC,EAAgB,KAkDhBC,EAAa,SAAoBC,EAAaC,EAAMC,GACtD,GAAoB,OAAhBF,EACF,OAAO,KAGT,IAAIjB,EAASiB,EAAYG,WAAMC,EAAWH,GAE1C,OArEoB,SAAyBlB,EAAQmB,GAChDnB,GAAWA,EAAOsB,kBAIvBtB,EAAOsB,iBAAiB,CACtBC,KAAM,YACNC,QAAS,SACTL,UAAWA,IA4DbM,CAAgBzB,EAAQmB,GACjBnB,GAKL0B,EAAkBC,QAAQC,UAAUC,MAAK,WAC3C,OA9DmCC,EA8DjB,KA5DI,OAAlBf,EACKA,EAGTA,EAAgB,IAAIY,SAAQ,SAAUC,EAASG,GAC7C,GAAsB,oBAAXC,OAWX,GAJIA,OAAOC,QAAUH,GACnBI,QAAQC,KAAKrB,GAGXkB,OAAOC,OACTL,EAAQI,OAAOC,aAIjB,IACE,IAAIG,EAnEO,WAGf,IAFA,IAAIC,EAAUC,SAASC,iBAAiB,gBAAiBC,OAAO5B,EAAQ,OAE/D6B,EAAI,EAAGA,EAAIJ,EAAQK,OAAQD,IAAK,CACvC,IAAIL,EAASC,EAAQI,GAErB,GAAK5B,EAAa8B,KAAKP,EAAOQ,KAI9B,OAAOR,EAGT,OAAO,KAsDUS,GAETT,GAAUN,EACZI,QAAQC,KAAKrB,GACHsB,IACVA,EAxDW,SAAsBN,GACvC,IAAIgB,EAAchB,IAAWA,EAAOiB,qBAAuB,8BAAgC,GACvFX,EAASE,SAASU,cAAc,UACpCZ,EAAOQ,IAAM,GAAGJ,OAAO5B,GAAQ4B,OAAOM,GACtC,IAAIG,EAAaX,SAASY,MAAQZ,SAASa,KAE3C,IAAKF,EACH,MAAM,IAAIG,MAAM,+EAIlB,OADAH,EAAWI,YAAYjB,GAChBA,EA6CQkB,CAAaxB,IAGxBM,EAAOmB,iBAAiB,QAAQ,WAC1BvB,OAAOC,OACTL,EAAQI,OAAOC,QAEfF,EAAO,IAAIqB,MAAM,+BAGrBhB,EAAOmB,iBAAiB,SAAS,WAC/BxB,EAAO,IAAIqB,MAAM,gCAEnB,MAAOI,GAEP,YADAzB,EAAOyB,QAjCP5B,EAAQ,SAVG,IAAoBE,KAgEjC2B,GAAa,EACjB/B,EAAuB,OAAE,SAAUgC,GAC5BD,GACHvB,QAAQC,KAAKuB,MAGjB,IAAIC,EAAa,WACf,IAAK,IAAIC,EAAOC,UAAUnB,OAAQxB,EAAO,IAAI4C,MAAMF,GAAOG,EAAO,EAAGA,EAAOH,EAAMG,IAC/E7C,EAAK6C,GAAQF,UAAUE,GAGzBN,GAAa,EACb,IAAItC,EAAY6C,KAAKC,MACrB,OAAOvC,EAAgBG,MAAK,SAAUZ,GACpC,OAAOD,EAAWC,EAAaC,EAAMC,Q,qBC5HzCX,EAAOC,QAAUuB,OAAe,SCC5BkC,EAA2B,GAG/B,SAASC,EAAoBC,GAE5B,GAAGF,EAAyBE,GAC3B,OAAOF,EAAyBE,GAAU3D,QAG3C,IAAID,EAAS0D,EAAyBE,GAAY,CAGjD3D,QAAS,IAOV,OAHA4D,EAAoBD,GAAU5D,EAAQA,EAAOC,QAAS0D,GAG/C3D,EAAOC,QCnBf0D,EAAoBG,EAAI,CAAC7D,EAAS8D,KACjC,IAAI,IAAIC,KAAOD,EACXJ,EAAoBM,EAAEF,EAAYC,KAASL,EAAoBM,EAAEhE,EAAS+D,IAC5EE,OAAOC,eAAelE,EAAS+D,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,MCJ3EL,EAAoBM,EAAI,CAAC/D,EAAKoE,IAAUJ,OAAOK,UAAUC,eAAeC,KAAKvE,EAAKoE,GCClFX,EAAoBe,EAAKzE,IACH,oBAAX0E,QAA0BA,OAAOC,aAC1CV,OAAOC,eAAelE,EAAS0E,OAAOC,YAAa,CAAEC,MAAO,WAE7DX,OAAOC,eAAelE,EAAS,aAAc,CAAE4E,OAAO,K,SPLvD,SACA,YAIIpF,EAAO,GAuBLC,EAAiB,SAACoF,EAAGC,GACvBjF,EAAQ,SAAUiF,IAGhBpF,EAAmB,SAACmF,GACtB,IAAIE,EAAQF,EAAEG,OAAOD,MAAM,iBAC3B,GAAIA,EAAO,SACD9E,EAAMgF,KAAKC,MAAM3D,OAAO4D,KAAKC,mBAAmBL,EAAM,MAC5D,UAAAnF,EAAQ,iBAAR,mBAAmByF,YAAnB,SAAyBC,OACzBzF,EAAQ,gBAAiBI,EAAIsF,gBAC7BC,QAAQC,UAAU,GAAI,GAAIlE,OAAOmE,SAASC,SAAWpE,OAAOmE,SAASE,QACrErG,EAAOsG,mBAAmB5F,EAAI6F,eAAe1E,MAAK,SAAA2E,GAC1CA,EAAShD,MAETjD,KAEAD,EAAQ,mBAAmB,GAC3BD,EAAQ,UAAUoG,iBAEvBC,OAAM,SAAAlD,GACLtB,QAAQyE,IAAInD,QAKlBpD,EAAgB,SAACkF,GAEnB,OADAA,EAAC,gBAAsBjF,EAAQ,iBACxBiF,GAGLjF,EAAU,SAACmE,GAA6B,IAAxBoC,EAAwB,uDAAT,KAIjC,OAHK3G,EAAK+E,eAAeR,KACrBvE,EAAKuE,GAAOoC,GAET3G,EAAKuE,IAGVlE,EAAU,SAACkE,EAAKa,GAClBpF,EAAKuE,GAAOa,GAGV9E,EAAsB,WACxBF,EAAQ,UAAUwG,oBAAqB,EACvCxG,EAAQ,UAAUyG,oBAClBzG,EAAQ,UAAU0G,iBAAkB,IAGxC,aAAEzE,UAAU0E,GAAG,sBArDS,SAAC1B,EAAGC,GAAW,QACnCtF,EAAI,UAAG+B,cAAH,iBAAG,EAAQiF,kBAAX,aAAG,EAAoBC,WAC3B5G,EAAQ,SAAUiF,IAhBlB,aAAEjD,UAAU0E,GAAG,iBAAkB9G,GACjC8B,OAAOuB,iBAAiB,aAAcpD,GACtCgH,aAAaC,UAAU,0BAA2BhH,IAClD,IAAAuD,YAAWtD,EAAQ,iBACXA,EAAQ,WACD,CAACgH,cAAehH,EAAQ,YAE5B,KACJwB,MAAK,SAACyF,GACTtH,EAASsH,KACVZ,OAAM,SAAAlD,W","file":"wc-stripe-woofunnels-upsell.js","sourcesContent":["import {loadStripe} from '@stripe/stripe-js';\r\nimport $ from 'jquery';\r\n\r\nlet stripe;\r\n\r\nlet data = {};\r\n\r\nconst initialize = () => {\r\n $(document).on('wfocu_external', onHandleSubmit);\r\n window.addEventListener('hashchange', handleHashChange);\r\n wfocuCommons.addFilter('wfocu_front_charge_data', addChargeData);\r\n loadStripe(getData('publishableKey', (() => {\r\n if (getData('account')) {\r\n return {stripeAccount: getData('account')};\r\n }\r\n return {};\r\n })())).then((client) => {\r\n stripe = client;\r\n }).catch(error => {\r\n });\r\n}\r\n\r\nconst onBucketCreated = (e, bucket) => {\r\n data = window?.wfocu_vars?.stripeData;\r\n setData('bucket', bucket);\r\n initialize();\r\n}\r\n\r\nconst onHandleSubmit = (e, bucket) => {\r\n setData('bucket', bucket);\r\n}\r\n\r\nconst handleHashChange = (e) => {\r\n var match = e.newURL.match(/response=(.*)/);\r\n if (match) {\r\n const obj = JSON.parse(window.atob(decodeURIComponent(match[1])));\r\n getData('bucket')?.swal?.hide();\r\n setData('paymentIntent', obj.payment_intent);\r\n history.pushState({}, '', window.location.pathname + window.location.search);\r\n stripe.confirmCardPayment(obj.client_secret).then(response => {\r\n if (response.error) {\r\n // display message\r\n resetPaymentProcess();\r\n } else {\r\n setData('paymentComplete', true);\r\n getData('bucket').sendBucket();\r\n }\r\n }).catch(error => {\r\n console.log(error);\r\n });\r\n }\r\n}\r\n\r\nconst addChargeData = (e) => {\r\n e['_payment_intent'] = getData('paymentIntent');\r\n return e;\r\n}\r\n\r\nconst getData = (key, defaultValue = null) => {\r\n if (!data.hasOwnProperty(key)) {\r\n data[key] = defaultValue;\r\n }\r\n return data[key];\r\n}\r\n\r\nconst setData = (key, value) => {\r\n data[key] = value;\r\n}\r\n\r\nconst resetPaymentProcess = () => {\r\n getData('bucket').inOfferTransaction = false;\r\n getData('bucket').EnableButtonState();\r\n getData('bucket').HasEventRunning = false;\r\n}\r\n\r\n$(document).on('wfocuBucketCreated', onBucketCreated);","function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\n\nmodule.exports = _interopRequireDefault;","var V3_URL = 'https://js.stripe.com/v3';\nvar V3_URL_REGEX = /^https:\\/\\/js\\.stripe\\.com\\/v3\\/?(\\?.*)?$/;\nvar EXISTING_SCRIPT_MESSAGE = 'loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used';\nvar findScript = function findScript() {\n var scripts = document.querySelectorAll(\"script[src^=\\\"\".concat(V3_URL, \"\\\"]\"));\n\n for (var i = 0; i < scripts.length; i++) {\n var script = scripts[i];\n\n if (!V3_URL_REGEX.test(script.src)) {\n continue;\n }\n\n return script;\n }\n\n return null;\n};\n\nvar injectScript = function injectScript(params) {\n var queryString = params && !params.advancedFraudSignals ? '?advancedFraudSignals=false' : '';\n var script = document.createElement('script');\n script.src = \"\".concat(V3_URL).concat(queryString);\n var headOrBody = document.head || document.body;\n\n if (!headOrBody) {\n throw new Error('Expected document.body not to be null. Stripe.js requires a <body> element.');\n }\n\n headOrBody.appendChild(script);\n return script;\n};\n\nvar registerWrapper = function registerWrapper(stripe, startTime) {\n if (!stripe || !stripe._registerWrapper) {\n return;\n }\n\n stripe._registerWrapper({\n name: 'stripe-js',\n version: \"1.12.1\",\n startTime: startTime\n });\n};\n\nvar stripePromise = null;\nvar loadScript = function loadScript(params) {\n // Ensure that we only attempt to load Stripe.js at most once\n if (stripePromise !== null) {\n return stripePromise;\n }\n\n stripePromise = new Promise(function (resolve, reject) {\n if (typeof window === 'undefined') {\n // Resolve to null when imported server side. This makes the module\n // safe to import in an isomorphic code base.\n resolve(null);\n return;\n }\n\n if (window.Stripe && params) {\n console.warn(EXISTING_SCRIPT_MESSAGE);\n }\n\n if (window.Stripe) {\n resolve(window.Stripe);\n return;\n }\n\n try {\n var script = findScript();\n\n if (script && params) {\n console.warn(EXISTING_SCRIPT_MESSAGE);\n } else if (!script) {\n script = injectScript(params);\n }\n\n script.addEventListener('load', function () {\n if (window.Stripe) {\n resolve(window.Stripe);\n } else {\n reject(new Error('Stripe.js not available'));\n }\n });\n script.addEventListener('error', function () {\n reject(new Error('Failed to load Stripe.js'));\n });\n } catch (error) {\n reject(error);\n return;\n }\n });\n return stripePromise;\n};\nvar initStripe = function initStripe(maybeStripe, args, startTime) {\n if (maybeStripe === null) {\n return null;\n }\n\n var stripe = maybeStripe.apply(undefined, args);\n registerWrapper(stripe, startTime);\n return stripe;\n};\n\n// own script injection.\n\nvar stripePromise$1 = Promise.resolve().then(function () {\n return loadScript(null);\n});\nvar loadCalled = false;\nstripePromise$1[\"catch\"](function (err) {\n if (!loadCalled) {\n console.warn(err);\n }\n});\nvar loadStripe = function loadStripe() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n loadCalled = true;\n var startTime = Date.now();\n return stripePromise$1.then(function (maybeStripe) {\n return initStripe(maybeStripe, args, startTime);\n });\n};\n\nexport { loadStripe };\n","module.exports = window[\"jQuery\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tif(__webpack_module_cache__[moduleId]) {\n\t\treturn __webpack_module_cache__[moduleId].exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};"],"sourceRoot":""}
packages/woofunnels/build/wc-stripe-woofunnels.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":["webpack://wc_stripe.[name]/./packages/woofunnels/assets/js/index.js","webpack://wc_stripe.[name]/./node_modules/@babel/runtime/helpers/interopRequireDefault.js","webpack://wc_stripe.[name]/./node_modules/@stripe/stripe-js/dist/stripe.esm.js","webpack://wc_stripe.[name]/external \"jQuery\"","webpack://wc_stripe.[name]/webpack/bootstrap","webpack://wc_stripe.[name]/webpack/runtime/define property getters","webpack://wc_stripe.[name]/webpack/runtime/hasOwnProperty shorthand","webpack://wc_stripe.[name]/webpack/runtime/make namespace object"],"names":["stripe","data","onHandleSubmit","handleHashChange","addChargeData","getData","setData","resetPaymentProcess","module","exports","obj","__esModule","V3_URL","V3_URL_REGEX","EXISTING_SCRIPT_MESSAGE","stripePromise","initStripe","maybeStripe","args","startTime","apply","undefined","_registerWrapper","name","version","registerWrapper","stripePromise$1","Promise","resolve","then","params","reject","window","Stripe","console","warn","script","scripts","document","querySelectorAll","concat","i","length","test","src","findScript","queryString","advancedFraudSignals","createElement","headOrBody","head","body","Error","appendChild","injectScript","addEventListener","error","loadCalled","err","loadStripe","_len","arguments","Array","_key","Date","now","__webpack_module_cache__","__webpack_require__","moduleId","__webpack_modules__","d","definition","key","o","Object","defineProperty","enumerable","get","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","e","bucket","match","newURL","JSON","parse","atob","decodeURIComponent","swal","hide","payment_intent","history","pushState","location","pathname","search","confirmCardPayment","client_secret","response","sendBucket","catch","log","defaultValue","inOfferTransaction","EnableButtonState","HasEventRunning","on","wfocu_vars","stripeData","wfocuCommons","addFilter","stripeAccount","client"],"mappings":"UAGIA,E,EAHJ,EACA,EAIIC,EAuBEC,EAIAC,EAqBAC,EAKAC,EAOAC,EAIAC,E,WC/DNC,EAAOC,QANP,SAAgCC,GAC9B,OAAOA,GAAOA,EAAIC,WAAaD,EAAM,CACnC,QAAWA,K,4DCFf,IAAIE,EAAS,2BACTC,EAAe,4CACfC,EAA0B,mJA2C1BC,EAAgB,KAkDhBC,EAAa,SAAoBC,EAAaC,EAAMC,GACtD,GAAoB,OAAhBF,EACF,OAAO,KAGT,IAAIjB,EAASiB,EAAYG,WAAMC,EAAWH,GAE1C,OArEoB,SAAyBlB,EAAQmB,GAChDnB,GAAWA,EAAOsB,kBAIvBtB,EAAOsB,iBAAiB,CACtBC,KAAM,YACNC,QAAS,SACTL,UAAWA,IA4DbM,CAAgBzB,EAAQmB,GACjBnB,GAKL0B,EAAkBC,QAAQC,UAAUC,MAAK,WAC3C,OA9DmCC,EA8DjB,KA5DI,OAAlBf,EACKA,EAGTA,EAAgB,IAAIY,SAAQ,SAAUC,EAASG,GAC7C,GAAsB,oBAAXC,OAWX,GAJIA,OAAOC,QAAUH,GACnBI,QAAQC,KAAKrB,GAGXkB,OAAOC,OACTL,EAAQI,OAAOC,aAIjB,IACE,IAAIG,EAnEO,WAGf,IAFA,IAAIC,EAAUC,SAASC,iBAAiB,gBAAiBC,OAAO5B,EAAQ,OAE/D6B,EAAI,EAAGA,EAAIJ,EAAQK,OAAQD,IAAK,CACvC,IAAIL,EAASC,EAAQI,GAErB,GAAK5B,EAAa8B,KAAKP,EAAOQ,KAI9B,OAAOR,EAGT,OAAO,KAsDUS,GAETT,GAAUN,EACZI,QAAQC,KAAKrB,GACHsB,IACVA,EAxDW,SAAsBN,GACvC,IAAIgB,EAAchB,IAAWA,EAAOiB,qBAAuB,8BAAgC,GACvFX,EAASE,SAASU,cAAc,UACpCZ,EAAOQ,IAAM,GAAGJ,OAAO5B,GAAQ4B,OAAOM,GACtC,IAAIG,EAAaX,SAASY,MAAQZ,SAASa,KAE3C,IAAKF,EACH,MAAM,IAAIG,MAAM,+EAIlB,OADAH,EAAWI,YAAYjB,GAChBA,EA6CQkB,CAAaxB,IAGxBM,EAAOmB,iBAAiB,QAAQ,WAC1BvB,OAAOC,OACTL,EAAQI,OAAOC,QAEfF,EAAO,IAAIqB,MAAM,+BAGrBhB,EAAOmB,iBAAiB,SAAS,WAC/BxB,EAAO,IAAIqB,MAAM,gCAEnB,MAAOI,GAEP,YADAzB,EAAOyB,QAjCP5B,EAAQ,SAVG,IAAoBE,KAgEjC2B,GAAa,EACjB/B,EAAuB,OAAE,SAAUgC,GAC5BD,GACHvB,QAAQC,KAAKuB,MAGjB,IAAIC,EAAa,WACf,IAAK,IAAIC,EAAOC,UAAUnB,OAAQxB,EAAO,IAAI4C,MAAMF,GAAOG,EAAO,EAAGA,EAAOH,EAAMG,IAC/E7C,EAAK6C,GAAQF,UAAUE,GAGzBN,GAAa,EACb,IAAItC,EAAY6C,KAAKC,MACrB,OAAOvC,EAAgBG,MAAK,SAAUZ,GACpC,OAAOD,EAAWC,EAAaC,EAAMC,Q,qBC5HzCX,EAAOC,QAAUuB,OAAe,SCC5BkC,EAA2B,GAG/B,SAASC,EAAoBC,GAE5B,GAAGF,EAAyBE,GAC3B,OAAOF,EAAyBE,GAAU3D,QAG3C,IAAID,EAAS0D,EAAyBE,GAAY,CAGjD3D,QAAS,IAOV,OAHA4D,EAAoBD,GAAU5D,EAAQA,EAAOC,QAAS0D,GAG/C3D,EAAOC,QCnBf0D,EAAoBG,EAAI,CAAC7D,EAAS8D,KACjC,IAAI,IAAIC,KAAOD,EACXJ,EAAoBM,EAAEF,EAAYC,KAASL,EAAoBM,EAAEhE,EAAS+D,IAC5EE,OAAOC,eAAelE,EAAS+D,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,MCJ3EL,EAAoBM,EAAI,CAAC/D,EAAKoE,IAAUJ,OAAOK,UAAUC,eAAeC,KAAKvE,EAAKoE,GCClFX,EAAoBe,EAAKzE,IACH,oBAAX0E,QAA0BA,OAAOC,aAC1CV,OAAOC,eAAelE,EAAS0E,OAAOC,YAAa,CAAEC,MAAO,WAE7DX,OAAOC,eAAelE,EAAS,aAAc,CAAE4E,OAAO,K,SPLvD,SACA,YAIIpF,EAAO,GAuBLC,EAAiB,SAACoF,EAAGC,GACvBjF,EAAQ,SAAUiF,IAGhBpF,EAAmB,SAACmF,GACtB,IAAIE,EAAQF,EAAEG,OAAOD,MAAM,iBAC3B,GAAIA,EAAO,SACD9E,EAAMgF,KAAKC,MAAM3D,OAAO4D,KAAKC,mBAAmBL,EAAM,MAC5D,UAAAnF,EAAQ,iBAAR,mBAAmByF,YAAnB,SAAyBC,OACzBzF,EAAQ,gBAAiBI,EAAIsF,gBAC7BC,QAAQC,UAAU,GAAI,GAAIlE,OAAOmE,SAASC,SAAWpE,OAAOmE,SAASE,QACrErG,EAAOsG,mBAAmB5F,EAAI6F,eAAe1E,MAAK,SAAA2E,GAC1CA,EAAShD,MAETjD,KAEAD,EAAQ,mBAAmB,GAC3BD,EAAQ,UAAUoG,iBAEvBC,OAAM,SAAAlD,GACLtB,QAAQyE,IAAInD,QAKlBpD,EAAgB,SAACkF,GAEnB,OADAA,EAAC,gBAAsBjF,EAAQ,iBACxBiF,GAGLjF,EAAU,SAACmE,GAA6B,IAAxBoC,EAAwB,uDAAT,KAIjC,OAHK3G,EAAK+E,eAAeR,KACrBvE,EAAKuE,GAAOoC,GAET3G,EAAKuE,IAGVlE,EAAU,SAACkE,EAAKa,GAClBpF,EAAKuE,GAAOa,GAGV9E,EAAsB,WACxBF,EAAQ,UAAUwG,oBAAqB,EACvCxG,EAAQ,UAAUyG,oBAClBzG,EAAQ,UAAU0G,iBAAkB,IAGxC,aAAEzE,UAAU0E,GAAG,sBArDS,SAAC1B,EAAGC,GAAW,QACnCtF,EAAI,UAAG+B,cAAH,iBAAG,EAAQiF,kBAAX,aAAG,EAAoBC,WAC3B5G,EAAQ,SAAUiF,IAhBlB,aAAEjD,UAAU0E,GAAG,iBAAkB9G,GACjC8B,OAAOuB,iBAAiB,aAAcpD,GACtCgH,aAAaC,UAAU,0BAA2BhH,IAClD,IAAAuD,YAAWtD,EAAQ,iBACXA,EAAQ,WACD,CAACgH,cAAehH,EAAQ,YAE5B,KACJwB,MAAK,SAACyF,GACTtH,EAASsH,KACVZ,OAAM,SAAAlD,W","file":"wc-stripe-woofunnels.js","sourcesContent":["import {loadStripe} from '@stripe/stripe-js';\r\nimport $ from 'jquery';\r\n\r\nlet stripe;\r\n\r\nlet data = {};\r\n\r\nconst initialize = () => {\r\n $(document).on('wfocu_external', onHandleSubmit);\r\n window.addEventListener('hashchange', handleHashChange);\r\n wfocuCommons.addFilter('wfocu_front_charge_data', addChargeData);\r\n loadStripe(getData('publishableKey', (() => {\r\n if (getData('account')) {\r\n return {stripeAccount: getData('account')};\r\n }\r\n return {};\r\n })())).then((client) => {\r\n stripe = client;\r\n }).catch(error => {\r\n });\r\n}\r\n\r\nconst onBucketCreated = (e, bucket) => {\r\n data = window?.wfocu_vars?.stripeData;\r\n setData('bucket', bucket);\r\n initialize();\r\n}\r\n\r\nconst onHandleSubmit = (e, bucket) => {\r\n setData('bucket', bucket);\r\n}\r\n\r\nconst handleHashChange = (e) => {\r\n var match = e.newURL.match(/response=(.*)/);\r\n if (match) {\r\n const obj = JSON.parse(window.atob(decodeURIComponent(match[1])));\r\n getData('bucket')?.swal?.hide();\r\n setData('paymentIntent', obj.payment_intent);\r\n history.pushState({}, '', window.location.pathname + window.location.search);\r\n stripe.confirmCardPayment(obj.client_secret).then(response => {\r\n if (response.error) {\r\n // display message\r\n resetPaymentProcess();\r\n } else {\r\n setData('paymentComplete', true);\r\n getData('bucket').sendBucket();\r\n }\r\n }).catch(error => {\r\n console.log(error);\r\n });\r\n }\r\n}\r\n\r\nconst addChargeData = (e) => {\r\n e['_payment_intent'] = getData('paymentIntent');\r\n return e;\r\n}\r\n\r\nconst getData = (key, defaultValue = null) => {\r\n if (!data.hasOwnProperty(key)) {\r\n data[key] = defaultValue;\r\n }\r\n return data[key];\r\n}\r\n\r\nconst setData = (key, value) => {\r\n data[key] = value;\r\n}\r\n\r\nconst resetPaymentProcess = () => {\r\n getData('bucket').inOfferTransaction = false;\r\n getData('bucket').EnableButtonState();\r\n getData('bucket').HasEventRunning = false;\r\n}\r\n\r\n$(document).on('wfocuBucketCreated', onBucketCreated);","function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\n\nmodule.exports = _interopRequireDefault;","var V3_URL = 'https://js.stripe.com/v3';\nvar V3_URL_REGEX = /^https:\\/\\/js\\.stripe\\.com\\/v3\\/?(\\?.*)?$/;\nvar EXISTING_SCRIPT_MESSAGE = 'loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used';\nvar findScript = function findScript() {\n var scripts = document.querySelectorAll(\"script[src^=\\\"\".concat(V3_URL, \"\\\"]\"));\n\n for (var i = 0; i < scripts.length; i++) {\n var script = scripts[i];\n\n if (!V3_URL_REGEX.test(script.src)) {\n continue;\n }\n\n return script;\n }\n\n return null;\n};\n\nvar injectScript = function injectScript(params) {\n var queryString = params && !params.advancedFraudSignals ? '?advancedFraudSignals=false' : '';\n var script = document.createElement('script');\n script.src = \"\".concat(V3_URL).concat(queryString);\n var headOrBody = document.head || document.body;\n\n if (!headOrBody) {\n throw new Error('Expected document.body not to be null. Stripe.js requires a <body> element.');\n }\n\n headOrBody.appendChild(script);\n return script;\n};\n\nvar registerWrapper = function registerWrapper(stripe, startTime) {\n if (!stripe || !stripe._registerWrapper) {\n return;\n }\n\n stripe._registerWrapper({\n name: 'stripe-js',\n version: \"1.12.1\",\n startTime: startTime\n });\n};\n\nvar stripePromise = null;\nvar loadScript = function loadScript(params) {\n // Ensure that we only attempt to load Stripe.js at most once\n if (stripePromise !== null) {\n return stripePromise;\n }\n\n stripePromise = new Promise(function (resolve, reject) {\n if (typeof window === 'undefined') {\n // Resolve to null when imported server side. This makes the module\n // safe to import in an isomorphic code base.\n resolve(null);\n return;\n }\n\n if (window.Stripe && params) {\n console.warn(EXISTING_SCRIPT_MESSAGE);\n }\n\n if (window.Stripe) {\n resolve(window.Stripe);\n return;\n }\n\n try {\n var script = findScript();\n\n if (script && params) {\n console.warn(EXISTING_SCRIPT_MESSAGE);\n } else if (!script) {\n script = injectScript(params);\n }\n\n script.addEventListener('load', function () {\n if (window.Stripe) {\n resolve(window.Stripe);\n } else {\n reject(new Error('Stripe.js not available'));\n }\n });\n script.addEventListener('error', function () {\n reject(new Error('Failed to load Stripe.js'));\n });\n } catch (error) {\n reject(error);\n return;\n }\n });\n return stripePromise;\n};\nvar initStripe = function initStripe(maybeStripe, args, startTime) {\n if (maybeStripe === null) {\n return null;\n }\n\n var stripe = maybeStripe.apply(undefined, args);\n registerWrapper(stripe, startTime);\n return stripe;\n};\n\n// own script injection.\n\nvar stripePromise$1 = Promise.resolve().then(function () {\n return loadScript(null);\n});\nvar loadCalled = false;\nstripePromise$1[\"catch\"](function (err) {\n if (!loadCalled) {\n console.warn(err);\n }\n});\nvar loadStripe = function loadStripe() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n loadCalled = true;\n var startTime = Date.now();\n return stripePromise$1.then(function (maybeStripe) {\n return initStripe(maybeStripe, args, startTime);\n });\n};\n\nexport { loadStripe };\n","module.exports = window[\"jQuery\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tif(__webpack_module_cache__[moduleId]) {\n\t\treturn __webpack_module_cache__[moduleId].exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};"],"sourceRoot":""}
 
packages/woofunnels/src/AssetsApi.php ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace PaymentPlugins\WooFunnels\Stripe;
4
+
5
+ class AssetsApi {
6
+
7
+ private $path;
8
+
9
+ private $assets_url;
10
+
11
+ private $version;
12
+
13
+ public function __construct( $path, $version ) {
14
+ $this->path = dirname( $path ) . '/';
15
+ $this->assets_url = plugin_dir_url( $path );
16
+ $this->version = $version;
17
+ }
18
+
19
+ public function register_script( $handle, $relative_path, $deps = [] ) {
20
+ $file = $this->path . str_replace( '.js', '.asset.php', $relative_path );
21
+ $params = [ 'dependencies' => $deps, 'version' => $this->version ];
22
+ if ( file_exists( $file ) ) {
23
+ $params = require_once $file;
24
+ }
25
+ wp_register_script( $handle, $this->assets_url . $relative_path, $params['dependencies'], $params['version'], true );
26
+ }
27
+
28
+ public function enqueue_script( $handle, $relative_path, $deps = [] ) {
29
+ $this->register_script( $handle, $relative_path, $deps );
30
+ wp_enqueue_script( $handle );
31
+ }
32
+
33
+ public function register_style( $handle, $relative_path ) {
34
+ wp_register_style( $handle, $this->assets_url . $relative_path );
35
+ }
36
+
37
+ public function enqueue_style( $handle, $relative_path ) {
38
+ $this->register_style( $handle, $relative_path );
39
+ wp_enqueue_style( $handle );
40
+ }
41
+
42
+ public function do_script_items( $handles ) {
43
+ global $wp_scripts;
44
+ if ( is_string( $handles ) ) {
45
+ $handles = [ $handles ];
46
+ }
47
+ $wp_scripts->do_items( $handles );
48
+ }
49
+
50
+ }
packages/woofunnels/src/Checkout/Compatibility/AbstractCompatibility.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace PaymentPlugins\WooFunnels\Stripe\Checkout\Compatibility;
4
+
5
+ abstract class AbstractCompatibility {
6
+
7
+ private $settings;
8
+
9
+ protected $id;
10
+
11
+ /**
12
+ * @var \WC_Payment_Gateway_Stripe
13
+ */
14
+ protected $payment_gateway;
15
+
16
+ public function __construct( $payment_gateway ) {
17
+ $this->payment_gateway = $payment_gateway;
18
+ $this->initialize();
19
+ }
20
+
21
+ protected function initialize() {
22
+ //add_action( 'wfacp_after_checkout_page_found', [ $this, 'handle_checkout_page_found' ] );
23
+ //add_action( 'wfacp_smart_button_container_' . $this->id, [ $this, 'render_express_button' ] );
24
+ }
25
+
26
+ public function handle_checkout_page_found() {
27
+ $this->settings = \WFACP_Common::get_page_settings( \WFACP_Common::get_id() );
28
+ }
29
+
30
+ public function get_payment_gateway() {
31
+ return $this->payment_gateway;
32
+ }
33
+
34
+ public function is_enabled() {
35
+ return wc_string_to_bool( $this->payment_gateway->get_option( 'enabled' ) );
36
+ }
37
+
38
+ /**
39
+ * @return false
40
+ */
41
+ public function is_express_enabled() {
42
+ return $this->payment_gateway->banner_checkout_enabled();
43
+ }
44
+
45
+ public function render_express_button() {
46
+ }
47
+
48
+ }
packages/woofunnels/src/Checkout/Compatibility/ApplePay.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace PaymentPlugins\WooFunnels\Stripe\Checkout\Compatibility;
4
+
5
+ class ApplePay extends AbstractCompatibility {
6
+
7
+ protected $id = 'stripe_applepay';
8
+
9
+ }
packages/woofunnels/src/Checkout/Compatibility/ExpressButtonController.php ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace PaymentPlugins\WooFunnels\Stripe\Checkout\Compatibility;
4
+
5
+ use PaymentPlugins\WooFunnels\Stripe\AssetsApi;
6
+
7
+ class ExpressButtonController {
8
+
9
+ private $settings;
10
+
11
+ /**
12
+ * @var \PaymentPlugins\WooFunnels\Stripe\Checkout\Compatibility\AbstractCompatibility[]
13
+ */
14
+ protected $payment_gateways = [];
15
+
16
+ private $id = 'paymentplugins_wc_stripe';
17
+
18
+ private $assets;
19
+
20
+ public function __construct( AssetsApi $assets ) {
21
+ $this->assets = $assets;
22
+ $this->initialize();
23
+ }
24
+
25
+ protected function initialize() {
26
+ add_action( 'wfacp_after_checkout_page_found', [ $this, 'handle_checkout_page_found' ] );
27
+ add_filter( 'wfacp_smart_buttons', [ $this, 'add_buttons' ], 20 );
28
+ add_action( 'wfacp_smart_button_container_' . $this->id, [ $this, 'render_express_buttons' ] );
29
+ }
30
+
31
+ public function handle_checkout_page_found() {
32
+ $this->settings = \WFACP_Common::get_page_settings( \WFACP_Common::get_id() );
33
+ if ( $this->has_express_buttons() ) {
34
+ $this->assets->enqueue_style( 'wc-stripe-woofunnels-checkout', 'build/wc-stripe-woofunnels-checkout-styles.css' );
35
+ $this->assets->enqueue_script( 'wc-stripe-woofunnels-checkout', 'build/wc-stripe-woofunnels-checkout.js' );
36
+ }
37
+ }
38
+
39
+ private function has_express_buttons() {
40
+ foreach ( $this->get_payment_gateways() as $gateway ) {
41
+ if ( $gateway->is_enabled() && $gateway->is_express_enabled() ) {
42
+ return true;
43
+ }
44
+ }
45
+
46
+ return false;
47
+ }
48
+
49
+ private function get_payment_gateways() {
50
+ $this->initialize_gateways();
51
+
52
+ return $this->payment_gateways;
53
+ }
54
+
55
+ private function initialize_gateways() {
56
+ if ( empty( $this->payment_gateways ) ) {
57
+ $payment_methods = WC()->payment_gateways()->payment_gateways();
58
+ $this->payment_gateways = [
59
+ 'stripe_googlepay' => new GooglePay( $payment_methods['stripe_googlepay'] ),
60
+ 'stripe_applepay' => new ApplePay( $payment_methods['stripe_applepay'] ),
61
+ 'stripe_payment_request' => new PaymentRequest( $payment_methods['stripe_payment_request'] )
62
+ ];
63
+ }
64
+ }
65
+
66
+ public function add_buttons( $buttons ) {
67
+ if ( $this->has_express_buttons() ) {
68
+ $buttons[ $this->id ] = [
69
+ 'iframe' => true
70
+ ];
71
+ remove_action( 'woocommerce_checkout_before_customer_details', [ \WC_Stripe_Field_Manager::class, 'output_banner_checkout_fields' ] );
72
+ }
73
+
74
+ return $buttons;
75
+ }
76
+
77
+ public function render_express_buttons() {
78
+ ?>
79
+ <ul class="wc_stripe_checkout_banner_gateways wc-stripe-wfacp-express-buttons" style="list-style: none">
80
+ <?php foreach ( $this->payment_gateways as $gateway ): ?>
81
+ <li class="wc-stripe-checkout-banner-gateway banner_payment_method_<?php echo $gateway->get_payment_gateway()->id ?>">
82
+
83
+ </li>
84
+ <?php endforeach; ?>
85
+ </ul>
86
+ <?php
87
+ }
88
+
89
+ }
packages/woofunnels/src/Checkout/Compatibility/GooglePay.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace PaymentPlugins\WooFunnels\Stripe\Checkout\Compatibility;
4
+
5
+ class GooglePay extends AbstractCompatibility {
6
+
7
+ protected $id = 'stripe_googlepay';
8
+
9
+ }
packages/woofunnels/src/Checkout/Compatibility/PaymentRequest.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace PaymentPlugins\WooFunnels\Stripe\Checkout\Compatibility;
4
+
5
+ class PaymentRequest extends AbstractCompatibility {
6
+
7
+ protected $id = 'stripe_payment_request';
8
+
9
+ }
packages/woofunnels/src/Main.php CHANGED
@@ -4,15 +4,27 @@
4
  namespace PaymentPlugins\WooFunnels\Stripe;
5
 
6
 
 
 
7
  class Main {
8
 
9
  public static function init() {
10
  if ( self::enabled() ) {
11
- new PaymentGateways();
 
 
 
 
 
12
  }
13
  }
14
 
15
  private static function enabled() {
16
  return function_exists( 'WFOCU_Core' );
17
  }
 
 
 
 
 
18
  }
4
  namespace PaymentPlugins\WooFunnels\Stripe;
5
 
6
 
7
+ use PaymentPlugins\WooFunnels\Stripe\Checkout\Compatibility\ExpressButtonController;
8
+
9
  class Main {
10
 
11
  public static function init() {
12
  if ( self::enabled() ) {
13
+ new PaymentGateways( new AssetsApi( __DIR__, stripe_wc()->version() ) );
14
+ }
15
+ if ( self::is_acp_enabled() ) {
16
+ new ExpressButtonController(
17
+ new AssetsApi( __DIR__, stripe_wc()->version() )
18
+ );
19
  }
20
  }
21
 
22
  private static function enabled() {
23
  return function_exists( 'WFOCU_Core' );
24
  }
25
+
26
+ private static function is_acp_enabled() {
27
+ return class_exists( 'WFACP_Core' );
28
+ }
29
+
30
  }
packages/woofunnels/src/PaymentGateways.php CHANGED
@@ -6,7 +6,10 @@ namespace PaymentPlugins\WooFunnels\Stripe;
6
 
7
  class PaymentGateways {
8
 
9
- public function __construct() {
 
 
 
10
  $this->initialize();
11
  }
12
 
@@ -53,8 +56,8 @@ class PaymentGateways {
53
  }
54
 
55
  /**
56
- * @param $bool
57
- * @param \WC_Order $order
58
  * @param \WC_Payment_Gateway_Stripe $payment_method
59
  *
60
  * @return bool
@@ -74,7 +77,7 @@ class PaymentGateways {
74
  * Maybe setup the WooFunnels upsell if the charge has not been captured.
75
  *
76
  * @param \Stripe\Charge $charge
77
- * @param \WC_Order $order
78
  */
79
  public function maybe_setup_upsell( \Stripe\Charge $charge, \WC_Order $order ) {
80
  $payment_method = $order->get_payment_method();
@@ -113,11 +116,9 @@ class PaymentGateways {
113
  $payment_method = $order->get_payment_method();
114
 
115
  if ( in_array( $payment_method, array_keys( $this->get_payment_gateways() ) ) ) {
116
- global $wp_scripts;
117
- $assets_url = plugin_dir_url( __DIR__ ) . 'build/';
118
- $params = require_once dirname( __DIR__ ) . '/build/wc-stripe-woofunnels.asset.php';
119
- wp_enqueue_script( 'wc-stripe-woofunnels', $assets_url . 'wc-stripe-woofunnels.js', $params['dependencies'], $params['version'], true );
120
- $wp_scripts->do_items( [ 'wc-stripe-woofunnels' ] );
121
  }
122
  }
 
123
  }
6
 
7
  class PaymentGateways {
8
 
9
+ private $assets;
10
+
11
+ public function __construct( AssetsApi $assets ) {
12
+ $this->assets = $assets;
13
  $this->initialize();
14
  }
15
 
56
  }
57
 
58
  /**
59
+ * @param $bool
60
+ * @param \WC_Order $order
61
  * @param \WC_Payment_Gateway_Stripe $payment_method
62
  *
63
  * @return bool
77
  * Maybe setup the WooFunnels upsell if the charge has not been captured.
78
  *
79
  * @param \Stripe\Charge $charge
80
+ * @param \WC_Order $order
81
  */
82
  public function maybe_setup_upsell( \Stripe\Charge $charge, \WC_Order $order ) {
83
  $payment_method = $order->get_payment_method();
116
  $payment_method = $order->get_payment_method();
117
 
118
  if ( in_array( $payment_method, array_keys( $this->get_payment_gateways() ) ) ) {
119
+ $this->assets->enqueue_script( 'wc-stripe-woofunnels-upsell', 'build/wc-stripe-woofunnels-upsell.js' );
120
+ $this->assets->do_script_items( 'wc-stripe-woofunnels-upsell' );
 
 
 
121
  }
122
  }
123
+
124
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: stripe, ach, klarna, credit card, apple pay, google pay, ideal, sepa, sofo
4
  Requires at least: 3.0.1
5
  Tested up to: 5.9
6
  Requires PHP: 5.6
7
- Stable tag: 3.3.16
8
  Copyright: Payment Plugins
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -60,6 +60,15 @@ If you're site is not loading over https, then Stripe won't render the Payment R
60
  8. Edit payment gateways on the product page
61
 
62
  == Changelog ==
 
 
 
 
 
 
 
 
 
63
  = 3.3.16 =
64
  * Added - Option to specify where card form validation errors are shown. Previously they were shown at the top of the checkout page. The default is now above the credit card form.
65
  * Added - Boleto voucher expiration days option
4
  Requires at least: 3.0.1
5
  Tested up to: 5.9
6
  Requires PHP: 5.6
7
+ Stable tag: 3.3.17
8
  Copyright: Payment Plugins
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
60
  8. Edit payment gateways on the product page
61
 
62
  == Changelog ==
63
+ = 3.3.17 =
64
+ * Added - Stripe Customer ID field in the WooCommerce Subscription edit subscription page so it can be easily updated if necessary.
65
+ * Added - Plugin main page that contains link to support and documentation
66
+ * Added - WooFunnels AeroCheckout Express button compatibility.
67
+ * Updated - WC Tested up to 5.6
68
+ * Updated - Moved the Admin menu link for Stripe plugin to the WooCommerce menu section.
69
+ * Updated - Clearpay transaction limit set to 1000 GBP
70
+ * Updated - VISA and Maestro icons.
71
+ * Updated - Express checkout on checkout page now includes "OR" text separator. HTML was updated and new css class names used.
72
  = 3.3.16 =
73
  * Added - Option to specify where card form validation errors are shown. Previously they were shown at the top of the checkout page. The default is now above the credit card form.
74
  * Added - Boleto voucher expiration days option
stripe-payments.php CHANGED
@@ -3,13 +3,13 @@
3
  * Plugin Name: Payment Plugins for Stripe WooCommerce
4
  * Plugin URI: https://docs.paymentplugins.com/wc-stripe/config/
5
  * Description: Accept Credit Cards, Google Pay, Apple Pay, ACH, Klarna and more using Stripe.
6
- * Version: 3.3.16
7
  * Author: Payment Plugins, support@paymentplugins.com
8
  * Text Domain: woo-stripe-payment
9
  * Domain Path: /i18n/languages/
10
  * Tested up to: 5.9
11
  * WC requires at least: 3.0.0
12
- * WC tested up to: 6.2
13
  */
14
  defined( 'ABSPATH' ) || exit ();
15
 
3
  * Plugin Name: Payment Plugins for Stripe WooCommerce
4
  * Plugin URI: https://docs.paymentplugins.com/wc-stripe/config/
5
  * Description: Accept Credit Cards, Google Pay, Apple Pay, ACH, Klarna and more using Stripe.
6
+ * Version: 3.3.17
7
  * Author: Payment Plugins, support@paymentplugins.com
8
  * Text Domain: woo-stripe-payment
9
  * Domain Path: /i18n/languages/
10
  * Tested up to: 5.9
11
  * WC requires at least: 3.0.0
12
+ * WC tested up to: 6.3
13
  */
14
  defined( 'ABSPATH' ) || exit ();
15
 
templates/checkout/checkout-banner.php CHANGED
@@ -6,12 +6,15 @@
6
  */
7
  ?>
8
  <div class="wc-stripe-banner-checkout">
9
- <span class="banner-title"><?php esc_html_e('Express Checkout', 'woo-stripe-payment')?></span>
10
- <ul class="wc_stripe_checkout_banner_gateways" style="list-style: none">
11
- <?php foreach($gateways as $gateway):?>
12
- <li class="wc-stripe-checkout-banner-gateway banner_payment_method_<?php echo $gateway->id?>">
13
-
14
- </li>
15
- <?php endforeach;?>
16
- </ul>
 
 
 
17
  </div>
6
  */
7
  ?>
8
  <div class="wc-stripe-banner-checkout">
9
+ <fieldset>
10
+ <legend class="banner-title"><?php esc_html_e('Express Checkout', 'woo-stripe-payment')?></legend>
11
+ <ul class="wc_stripe_checkout_banner_gateways" style="list-style: none">
12
+ <?php foreach($gateways as $gateway):?>
13
+ <li class="wc-stripe-checkout-banner-gateway banner_payment_method_<?php echo $gateway->id?>">
14
+
15
+ </li>
16
+ <?php endforeach;?>
17
+ </ul>
18
+ </fieldset>
19
+ <span class="banner-divider"><?php esc_html_e('OR', 'woo-stripe-payment')?></span>
20
  </div>
vendor/composer/autoload_psr4.php CHANGED
@@ -8,6 +8,7 @@ $baseDir = dirname($vendorDir);
8
  return array(
9
  'Stripe\\' => array($vendorDir . '/stripe/stripe-php/lib'),
10
  'PaymentPlugins\\WooFunnels\\Stripe\\' => array($baseDir . '/packages/woofunnels/src'),
 
11
  'PaymentPlugins\\CartFlows\\Stripe\\' => array($baseDir . '/packages/cartflows/src'),
12
  'PaymentPlugins\\Blocks\\Stripe\\' => array($baseDir . '/packages/blocks/src'),
13
  );
8
  return array(
9
  'Stripe\\' => array($vendorDir . '/stripe/stripe-php/lib'),
10
  'PaymentPlugins\\WooFunnels\\Stripe\\' => array($baseDir . '/packages/woofunnels/src'),
11
+ 'PaymentPlugins\\CheckoutWC\\Stripe\\' => array($baseDir . '/packages/checkoutwc/src'),
12
  'PaymentPlugins\\CartFlows\\Stripe\\' => array($baseDir . '/packages/cartflows/src'),
13
  'PaymentPlugins\\Blocks\\Stripe\\' => array($baseDir . '/packages/blocks/src'),
14
  );
vendor/composer/autoload_static.php CHANGED
@@ -14,6 +14,7 @@ class ComposerStaticInit50989f547160e30b048ac4ee36befb35
14
  'P' =>
15
  array (
16
  'PaymentPlugins\\WooFunnels\\Stripe\\' => 33,
 
17
  'PaymentPlugins\\CartFlows\\Stripe\\' => 32,
18
  'PaymentPlugins\\Blocks\\Stripe\\' => 29,
19
  ),
@@ -28,6 +29,10 @@ class ComposerStaticInit50989f547160e30b048ac4ee36befb35
28
  array (
29
  0 => __DIR__ . '/../..' . '/packages/woofunnels/src',
30
  ),
 
 
 
 
31
  'PaymentPlugins\\CartFlows\\Stripe\\' =>
32
  array (
33
  0 => __DIR__ . '/../..' . '/packages/cartflows/src',
14
  'P' =>
15
  array (
16
  'PaymentPlugins\\WooFunnels\\Stripe\\' => 33,
17
+ 'PaymentPlugins\\CheckoutWC\\Stripe\\' => 33,
18
  'PaymentPlugins\\CartFlows\\Stripe\\' => 32,
19
  'PaymentPlugins\\Blocks\\Stripe\\' => 29,
20
  ),
29
  array (
30
  0 => __DIR__ . '/../..' . '/packages/woofunnels/src',
31
  ),
32
+ 'PaymentPlugins\\CheckoutWC\\Stripe\\' =>
33
+ array (
34
+ 0 => __DIR__ . '/../..' . '/packages/checkoutwc/src',
35
+ ),
36
  'PaymentPlugins\\CartFlows\\Stripe\\' =>
37
  array (
38
  0 => __DIR__ . '/../..' . '/packages/cartflows/src',
vendor/composer/installed.php CHANGED
@@ -5,7 +5,7 @@
5
  'type' => 'library',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
- 'reference' => '5d8b76408a61e3c8fa54d8325e1f07c3e88fe9af',
9
  'name' => '__root__',
10
  'dev' => false,
11
  ),
@@ -16,7 +16,7 @@
16
  'type' => 'library',
17
  'install_path' => __DIR__ . '/../../',
18
  'aliases' => array(),
19
- 'reference' => '5d8b76408a61e3c8fa54d8325e1f07c3e88fe9af',
20
  'dev_requirement' => false,
21
  ),
22
  'stripe/stripe-php' => array(
5
  'type' => 'library',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
+ 'reference' => '4c6fcc6c7aec3008b79ca4cfb7172926a7d61fa6',
9
  'name' => '__root__',
10
  'dev' => false,
11
  ),
16
  'type' => 'library',
17
  'install_path' => __DIR__ . '/../../',
18
  'aliases' => array(),
19
+ 'reference' => '4c6fcc6c7aec3008b79ca4cfb7172926a7d61fa6',
20
  'dev_requirement' => false,
21
  ),
22
  'stripe/stripe-php' => array(