Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AvailabilityChecker.php
Go to the documentation of this file.
1 <?php
7 
10 
15 {
19  private $config;
20 
25  public function __construct(Config $config)
26  {
27  $this->config = $config;
28  }
29 
33  public function isAvailable(): bool
34  {
35  if ($this->config->isVerify3DSecure()) {
36  // Support of 3D secure not implemented for instant purchase yet.
37  return false;
38  }
39 
40  return true;
41  }
42 }
$config
Definition: fraud_order.php:17