-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from mercadopago/release/1.7.0
Release/1.7.0
- Loading branch information
Showing
15 changed files
with
246 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<?php | ||
|
||
/** | ||
* Copyright © MercadoPago. All rights reserved. | ||
* | ||
* @author Mercado Pago | ||
* @license See LICENSE for license details. | ||
*/ | ||
|
||
namespace MercadoPago\AdbPayment\Block\Adminhtml\System\Config\Tracking; | ||
|
||
use Magento\Backend\Model\Auth\Session; | ||
use Magento\Framework\View\Element\Template; | ||
use Magento\Framework\View\Element\Template\Context; | ||
use MercadoPago\AdbPayment\Gateway\Config\Config; | ||
|
||
class Tracking extends Template | ||
{ | ||
|
||
/** | ||
* @var Session | ||
*/ | ||
protected $session; | ||
|
||
/** | ||
* @var Config | ||
*/ | ||
protected $config; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
protected $_template = 'MercadoPago_AdbPayment::melidata/tracking.phtml'; | ||
|
||
/** | ||
* @param Context $context | ||
* @param Session $session | ||
* @param Config $config | ||
* @param array $data | ||
*/ | ||
public function __construct( | ||
Context $context, | ||
Session $session, | ||
Config $config, | ||
array $data = [] | ||
) { | ||
parent::__construct($context, $data); | ||
$this->session = $session; | ||
$this->config = $config; | ||
} | ||
|
||
/** | ||
* @return String | ||
*/ | ||
public function getConfigData() | ||
{ | ||
|
||
return [ | ||
'moduleVersion' => $this->config->getModuleVersion(), | ||
'platformVersion' => $this->config->getMagentoVersion(), | ||
'siteId' => $this->config->getMpSiteId() ? $this->config->getMpSiteId() : "Credencial não cadastrada", | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.