-
Notifications
You must be signed in to change notification settings - Fork 8
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 #23 from Xaxxis/2.4.3-Development
2.4.3 development
- Loading branch information
Showing
22 changed files
with
335 additions
and
186 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,36 @@ | ||
<?php | ||
|
||
namespace Midtrans\Snap\Block\Adminhtml\Config; | ||
|
||
use Magento\Backend\Block\Template\Context; | ||
use Magento\Config\Block\System\Config\Form\Field; | ||
use Magento\Framework\Data\Form\Element\AbstractElement; | ||
use Midtrans\Snap\Helper\Data; | ||
|
||
class NotificationEndpoint extends Field | ||
{ | ||
protected $_midtransHelper; | ||
|
||
/** | ||
* constructor. | ||
* @param Context $context | ||
* @param array $data | ||
* @param Data $midtransHelper | ||
*/ | ||
public function __construct(Data $midtransHelper, Context $context, array $data = []) | ||
{ | ||
parent::__construct($context, $data); | ||
$this->_midtransHelper = $midtransHelper; | ||
} | ||
|
||
/** | ||
* Retrieve the midtrans Notification endpoint | ||
* | ||
* @param AbstractElement $element | ||
* @return string | ||
*/ | ||
protected function _getElementHtml(AbstractElement $element) | ||
{ | ||
return $this->_midtransHelper->getNotificationEndpoint(); | ||
} | ||
} |
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,36 @@ | ||
<?php | ||
|
||
namespace Midtrans\Snap\Block\Adminhtml\Config; | ||
|
||
use Magento\Backend\Block\Template\Context; | ||
use Magento\Config\Block\System\Config\Form\Field; | ||
use Magento\Framework\Data\Form\Element\AbstractElement; | ||
use Midtrans\Snap\Helper\Data; | ||
|
||
class Version extends Field | ||
{ | ||
protected $_midtransHelper; | ||
|
||
/** | ||
* Version constructor. | ||
* @param Context $context | ||
* @param array $data | ||
* @param Data $midtransHelper | ||
*/ | ||
public function __construct(Data $midtransHelper, Context $context, array $data = []) | ||
{ | ||
parent::__construct($context, $data); | ||
$this->_midtransHelper = $midtransHelper; | ||
} | ||
|
||
/** | ||
* Retrieve the setup version of the extension | ||
* | ||
* @param AbstractElement $element | ||
* @return string | ||
*/ | ||
protected function _getElementHtml(AbstractElement $element) | ||
{ | ||
return $this->_midtransHelper->getModuleVersion(); | ||
} | ||
} |
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.