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
RefundHandler.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Braintree\Gateway\Response
;
7
8
use
Magento\Sales\Model\Order\Payment
;
9
10
class
RefundHandler
extends
VoidHandler
11
{
19
protected
function
shouldCloseParentTransaction
(
Payment
$orderPayment)
20
{
21
return
!(bool)$orderPayment->
getCreditmemo
()->getInvoice()->canRefund();
22
}
23
}
Magento\Braintree\Gateway\Response\VoidHandler
Definition:
VoidHandler.php:10
Magento\Sales\Model\Order\Payment\getCreditmemo
getCreditmemo()
Definition:
Payment.php:627
Magento\Braintree\Gateway\Response
Definition:
CancelDetailsHandler.php:8
Magento\Braintree\Gateway\Response\RefundHandler
Definition:
RefundHandler.php:10
Magento\Braintree\Gateway\Response\RefundHandler\shouldCloseParentTransaction
shouldCloseParentTransaction(Payment $orderPayment)
Definition:
RefundHandler.php:19
Magento\Sales\Model\Order\Payment
Definition:
RepositoryTest.php:6
Magento\Sales\Model\Order\Payment
Definition:
Payment.php:28