◆ __construct()
- Parameters
-
\Magento\Framework\App\Action\Context | $context | |
\Magento\Checkout\Model\Session | $checkoutSession | |
\Magento\Sales\Model\OrderFactory | $orderFactory | |
\Magento\Paypal\Model\PayflowlinkFactory | $payflowModelFactory | |
\Magento\Paypal\Helper\Checkout | $checkoutHelper | |
\Psr\Log\LoggerInterface | $logger | |
\Magento\Sales\Api\PaymentFailuresInterface | null | $paymentFailures | |
Definition at line 58 of file Payflow.php.
67 parent::__construct($context);
69 $this->_checkoutSession = $checkoutSession;
70 $this->_orderFactory = $orderFactory;
72 $this->_payflowModelFactory = $payflowModelFactory;
73 $this->_checkoutHelper = $checkoutHelper;
74 $this->paymentFailures = $paymentFailures ?: $this->_objectManager->get(
75 \
Magento\Sales\Api\PaymentFailuresInterface::class
◆ _cancelPayment()
_cancelPayment |
( |
|
$errorMsg = '' | ) |
|
|
protected |
Cancel order, return quote to customer
- Parameters
-
- Returns
- false|string
Definition at line 85 of file Payflow.php.
87 $errorMsg = trim(strip_tags($errorMsg));
88 $order = $this->_checkoutSession->getLastRealOrder();
90 $this->paymentFailures->handle((
int)
$order->getQuoteId(), $errorMsg);
94 $this->_checkoutHelper->cancelCurrentOrder($errorMsg);
95 if ($this->_checkoutSession->restoreQuote()) {
97 $gotoSection =
'paymentMethod';
◆ $_checkoutHelper
◆ $_checkoutSession
◆ $_logger
◆ $_orderFactory
◆ $_payflowModelFactory
◆ $_redirectBlockName
$_redirectBlockName = 'payflow.link.iframe' |
|
protected |
The documentation for this class was generated from the following file: