Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CreditCardValidationHandler.php
Go to the documentation of this file.
1 <?php
7 
11 
13 {
17  private $fieldsToHandle = [
22  ];
23 
27  private $paypalInfoManager;
28 
32  public function __construct(Info $paypalInfoManager)
33  {
34  $this->paypalInfoManager = $paypalInfoManager;
35  }
36 
41  {
42  $importObject = [];
43  foreach ($this->fieldsToHandle as $field) {
44  if ($response->getData($field)) {
45  $importObject[$field] = $response->getData($field);
46  }
47  }
48 
49  $this->paypalInfoManager->importToPayment($importObject, $payment);
50  }
51 }
$response
Definition: 404.php:11
$payment
Definition: order.php:17