File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
app/code/Magento/OneTouchOrdering/Model Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,9 @@ public function __construct(
57
57
public function isAvailableForCustomer ($ customer ): bool
58
58
{
59
59
$ this ->customer = $ customer ;
60
+
60
61
return $ this ->isOneTouchButtonEnabled ()
62
+ && $ this ->isBrainTree3DDisabled ()
61
63
&& $ this ->isBrainTreeAvailable ()
62
64
&& $ this ->customerHasDefaultAddresses ()
63
65
&& $ this ->isAnyShippingMethodAvailable ()
@@ -109,6 +111,14 @@ private function isBrainTreeAvailable(): bool
109
111
return $ this ->brainTreeConfig ->isActive ();
110
112
}
111
113
114
+ /**
115
+ * @return bool
116
+ */
117
+ private function isBrainTree3DDisabled ()
118
+ {
119
+ return !$ this ->brainTreeConfig ->isVerify3DSecure ();
120
+ }
121
+
112
122
/**
113
123
* @return Customer
114
124
*/
You can’t perform that action at this time.
0 commit comments