Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-braintree
Gateway
Response
CancelDetailsHandler.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\Braintree\Gateway\Response
;
9
10
use
Magento\Braintree\Gateway\SubjectReader
;
11
use
Magento\Payment\Gateway\Response\HandlerInterface
;
12
use
Magento\Sales\Model\Order\Payment
;
13
17
class
CancelDetailsHandler
implements
HandlerInterface
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
$response
Definition:
404.php:11
Magento\Braintree\Gateway\Response
Definition:
CancelDetailsHandler.php:8
Magento\Payment\Gateway\Response\HandlerInterface\handle
handle(array $handlingSubject, array $response)
Magento\Braintree\Gateway\Response\CancelDetailsHandler
Definition:
CancelDetailsHandler.php:17
Magento\Payment\Gateway\Response\HandlerInterface
Definition:
HandlerInterface.php:14
Magento\Braintree\Gateway\Response\CancelDetailsHandler\__construct
__construct(SubjectReader $subjectReader)
Definition:
CancelDetailsHandler.php:27
Magento\Sales\Model\Order\Payment
Definition:
RepositoryTest.php:6
Magento\Braintree\Gateway\SubjectReader
Definition:
SubjectReader.php:16