-
Notifications
You must be signed in to change notification settings - Fork 2
/
bundle-2670_virtualterminal-2020-07-30-08-24-53.patch
132 lines (130 loc) · 3.55 KB
/
bundle-2670_virtualterminal-2020-07-30-08-24-53.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
diff --git a/vendor/paypal/module-braintree-core/view/adminhtml/web/css/source/_module.less b/vendor/paypal/module-braintree-core/view/adminhtml/web/css/source/_module.less
new file mode 100755
index 0000000..efb2e66
--- /dev/null
+++ b/vendor/paypal/module-braintree-core/view/adminhtml/web/css/source/_module.less
@@ -0,0 +1,110 @@
+// /**
+// * Copyright © Magento, Inc. All rights reserved.
+// * See COPYING.txt for license details.
+// */
+
+//
+// Variables
+// _____________________________________________
+
+@braintree-error__color: @color-apricot;
+@braintree-focus__color: @color-blue-pure;
+@braintree-success__color: @color-green-apple;
+
+.hosted-date-wrap {
+ &:extend(.abs-clearfix all);
+}
+
+.hosted-control {
+ height: 3.4rem;
+ position: relative;
+
+ &.braintree-hosted-fields-focused {
+ border-color: @braintree-focus__color;
+ }
+
+ &.braintree-hosted-fields-invalid:not(.braintree-hosted-fields-focused) {
+ border-color: @braintree-error__color;
+
+ & ~ .hosted-error {
+ height: auto;
+ opacity: 1;
+ }
+ }
+
+ &.braintree-hosted-fields-valid {
+ border-color: @braintree-success__color;
+ }
+
+ &.hosted-date {
+ @distance: 50px;
+
+ float: left;
+ margin-bottom: .2rem;
+ width: 5rem;
+
+ &:first-of-type {
+ margin-right: @distance;
+
+ &:after {
+ content: '/';
+ display: inline;
+ padding-bottom: inherit;
+ padding-top: inherit;
+ position: absolute;
+ right: -@distance * (2 / 3.5);
+ top: 0;
+ }
+ }
+ }
+
+ &.hosted-cid {
+ width: 6rem;
+ }
+
+ .icon-type {
+ background-image: url('@{baseDir}images/cards.png');
+ background-position: -1000px 0;
+ background-repeat: no-repeat;
+ height: 26px;
+ position: absolute;
+ right: 5px;
+ top: 3px;
+ width: 40px;
+
+ &.icon-type-discover {
+ background-position: 0 0;
+ }
+
+ &.icon-type-visa {
+ background-position: 0 -29px;
+ }
+
+ &.icon-type-master-card {
+ background-position: 0 -58px;
+ }
+
+ &.icon-type-maestro {
+ background-position: 0 -87px;
+ }
+
+ &.icon-type-american-express {
+ background-position: 0 -114px;
+ }
+
+ &.icon-type-unionpay {
+ background-position: 0 -140px;
+ }
+
+ &.icon-type-diners-club {
+ background-position: 0 -168px;
+ }
+ }
+}
+
+.hosted-error {
+ clear: both;
+ color: @braintree-error__color;
+ height: 0;
+ opacity: 0;
+}
diff --git a/vendor/paypal/module-braintree-core/view/adminhtml/web/js/virtual.js b/vendor/paypal/module-braintree-core/view/adminhtml/web/js/virtual.js
index 2095942..69b5d9d 100755
--- a/vendor/paypal/module-braintree-core/view/adminhtml/web/js/virtual.js
+++ b/vendor/paypal/module-braintree-core/view/adminhtml/web/js/virtual.js
@@ -61,6 +61,9 @@ define([
authorization: self.clientToken
}, function (clientErr, clientInstance) {
if (clientErr) {
+ alert({
+ content: $t('Please configure your Braintree Payments account in order to use the virtual terminal.')
+ });
console.error('Error!', clientErr);
return self.error(response.clientErr);
}