-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Implementa autenticação 3DS - Implementa pagamento por Cartão de Débito
- Loading branch information
Showing
41 changed files
with
1,078 additions
and
137 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,44 @@ | ||
<?php | ||
/** | ||
* PagBank Payment Magento Module. | ||
* | ||
* Copyright © 2023 PagBank. All rights reserved. | ||
* | ||
* @author Bruno Elisei <brunoelisei@o2ti.com> | ||
* @license See LICENSE for license details. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace PagBank\PaymentMagento\Api\Data; | ||
|
||
/** | ||
* Interface Card Type Transaction - Data Card Type Transaction. | ||
* | ||
* @api | ||
* | ||
* @since 100.0.1 | ||
*/ | ||
interface CardTypeTransactionInterface | ||
{ | ||
/** | ||
* @const string | ||
*/ | ||
public const PAGBANK_CARD_TYPE_TRANSACTION = 'card_type_transaction'; | ||
|
||
/** | ||
* Get Card Type Transaction. | ||
* | ||
* @return string | ||
*/ | ||
public function getCardTypeTransaction(); | ||
|
||
/** | ||
* Set Card Type Transaction. | ||
* | ||
* @param string $cardTypeTransaction | ||
* | ||
* @return void | ||
*/ | ||
public function setCardTypeTransaction($cardTypeTransaction); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<?php | ||
/** | ||
* PagBank Payment Magento Module. | ||
* | ||
* Copyright © 2023 PagBank. All rights reserved. | ||
* | ||
* @author Bruno Elisei <brunoelisei@o2ti.com> | ||
* @license See LICENSE for license details. | ||
*/ | ||
|
||
namespace PagBank\PaymentMagento\Block\Adminhtml\System\Config; | ||
|
||
use Magento\Backend\Block\Template\Context; | ||
use Magento\Config\Block\System\Config\Form\Field; | ||
use Magento\Framework\Data\Form\Element\AbstractElement; | ||
|
||
/** | ||
* Class Apps - Type apps. | ||
* | ||
* @SuppressWarnings(PHPMD.CamelCaseMethodName) | ||
* @SuppressWarnings(PHPMD.CamelCasePropertyName) | ||
*/ | ||
class Apps extends Field | ||
{ | ||
/** | ||
* Template oAuth. | ||
*/ | ||
public const TEMPLATE = 'PagBank_PaymentMagento::system/config/apps.phtml'; | ||
|
||
/** | ||
* @param Context $context | ||
*/ | ||
public function __construct( | ||
Context $context | ||
) { | ||
parent::__construct($context); | ||
$this->setTemplate(self::TEMPLATE); | ||
} | ||
|
||
/** | ||
* Override render method to remove label and td elements | ||
* | ||
* @param AbstractElement $element | ||
*/ | ||
public function render(AbstractElement $element) | ||
{ | ||
$html = '<tr id="row_' . $element->getHtmlId() . '">'; | ||
$html .= '<td colspan="2">'; | ||
$html .= $this->_getElementHtml($element); | ||
$html .= '</td>'; | ||
$html .= '</tr>'; | ||
return $html; | ||
} | ||
|
||
/** | ||
* Render the field HTML | ||
* | ||
* @param AbstractElement $element | ||
* | ||
* @SuppressWarnings(PHPMD.UnusedFormalParameter) | ||
* @SuppressWarnings(PHPMD.CamelCaseMethodName) | ||
*/ | ||
protected function _getElementHtml(AbstractElement $element) | ||
{ | ||
return $this->toHtml(); | ||
} | ||
} |
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.