Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
KountPaymentDataBuilder.php
Go to the documentation of this file.
1 <?php
7 
12 
17 {
21  const DEVICE_DATA = 'deviceData';
22 
26  private $config;
27 
31  private $subjectReader;
32 
39  public function __construct(Config $config, SubjectReader $subjectReader)
40  {
41  $this->config = $config;
42  $this->subjectReader = $subjectReader;
43  }
44 
48  public function build(array $buildSubject)
49  {
50  $result = [];
51  $paymentDO = $this->subjectReader->readPayment($buildSubject);
52  $order = $paymentDO->getOrder();
53 
54  if (!$this->config->hasFraudProtection($order->getStoreId())) {
55  return $result;
56  }
57 
58  $payment = $paymentDO->getPayment();
59  $data = $payment->getAdditionalInformation();
60 
63  }
64 
65  return $result;
66  }
67 }
$config
Definition: fraud_order.php:17
$order
Definition: order.php:55
$payment
Definition: order.php:17
__construct(Config $config, SubjectReader $subjectReader)