Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CancelDetailsHandler.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
9 
13 
18 {
22  private $subjectReader;
23 
27  public function __construct(SubjectReader $subjectReader)
28  {
29  $this->subjectReader = $subjectReader;
30  }
31 
35  public function handle(array $handlingSubject, array $response)
36  {
37  $paymentDO = $this->subjectReader->readPayment($handlingSubject);
39  $orderPayment = $paymentDO->getPayment();
40  $orderPayment->setIsTransactionClosed(true);
41  $orderPayment->setShouldCloseParentTransaction(true);
42  }
43 }
$response
Definition: 404.php:11
handle(array $handlingSubject, array $response)