56 lines
1.8 KiB
PHP
56 lines
1.8 KiB
PHP
<?php
|
|
declare(strict_types=1);
|
|
/**
|
|
* Integrates BTCPay Server with Magento 2 for online payments
|
|
* Copyright (C) 2019 Storefront BVBA
|
|
*
|
|
* This file is part of Storefront/BTCPay.
|
|
*
|
|
* Storefront/BTCPay is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
namespace Storefront\BTCPay\Controller\Adminhtml;
|
|
|
|
abstract class Invoice extends \Magento\Backend\App\Action
|
|
{
|
|
|
|
const ADMIN_RESOURCE = 'Storefront_BTCPay::top_level';
|
|
protected $_coreRegistry;
|
|
|
|
/**
|
|
* @param \Magento\Backend\App\Action\Context $context
|
|
* @param \Magento\Framework\Registry $coreRegistry
|
|
*/
|
|
public function __construct(
|
|
\Magento\Backend\App\Action\Context $context,
|
|
\Magento\Framework\Registry $coreRegistry
|
|
) {
|
|
$this->_coreRegistry = $coreRegistry;
|
|
parent::__construct($context);
|
|
}
|
|
|
|
/**
|
|
* Init page
|
|
*
|
|
* @param \Magento\Backend\Model\View\Result\Page $resultPage
|
|
* @return \Magento\Backend\Model\View\Result\Page
|
|
*/
|
|
public function initPage($resultPage)
|
|
{
|
|
$resultPage->setActiveMenu(self::ADMIN_RESOURCE)
|
|
->addBreadcrumb(__('BTCPay Invoices'), __('BTCPay Server Invoices'));
|
|
return $resultPage;
|
|
}
|
|
}
|