File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed
app/code/Magento/Braintree/view/frontend/web/js/view/payment/method-renderer Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ define(
36
36
braintreeDeviceData : null ,
37
37
paymentMethodNonce : null ,
38
38
lastBillingAddress : null ,
39
+ ccMessageContainer : null ,
39
40
validatorManager : validatorManager ,
40
41
code : 'braintree' ,
41
42
@@ -138,9 +139,29 @@ define(
138
139
return ;
139
140
}
140
141
142
+ this . restoreMessageContainer ( ) ;
143
+ /**
144
+ * Define already callback
145
+ */
146
+ braintree . onReady = function ( ) { } ;
141
147
this . initBraintree ( ) ;
142
148
} ,
143
149
150
+ /**
151
+ * Restore original message container for cc-form component
152
+ */
153
+ restoreMessageContainer : function ( ) {
154
+ this . messageContainer = this . ccMessageContainer ;
155
+ } ,
156
+
157
+ /** @inheritdoc */
158
+ initChildren : function ( ) {
159
+ this . _super ( ) ;
160
+ this . ccMessageContainer = this . messageContainer ;
161
+
162
+ return this ;
163
+ } ,
164
+
144
165
/**
145
166
* Init config
146
167
*/
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ define([
77
77
self . hostedFields ( function ( formComponent ) {
78
78
formComponent . setPaymentMethodNonce ( response . paymentMethodNonce ) ;
79
79
formComponent . additionalData [ 'public_hash' ] = self . publicHash ;
80
- formComponent . code = self . code ;
80
+ formComponent . messageContainer = self . messageContainer ;
81
81
formComponent . placeOrder ( ) ;
82
82
} ) ;
83
83
} )
You can’t perform that action at this time.
0 commit comments