-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PAOPN-456: Refactoring pix block and template #208
Conversation
mateus-picoloto
commented
Jul 24, 2023
Questions | Answers |
---|---|
Issue | https://mundipagg.atlassian.net/browse/PAOPN-456 |
What? | Refactoring pix block and template. |
Why? | Follow best practices. |
How? | Removing business rule code and inline css from phtml and following javascript magento convention. |
Gandalf - Continuous AppSec📌 LembreteEste repositório está sendo monitorando de forma automática e contínua em busca de achados que possam comprometer a segurança da aplicação. 📋 Resumo de achados no repositório magento2
|
Kudos, SonarCloud Quality Gate passed! |
{ | ||
$pixHelper = new PixHelper(); | ||
return $pixHelper->getQrCode($this->getPayment()); | ||
return __('Copied PIX code!'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PIX code copied!
"Cancel","Cancel" | ||
"Cancel","Cancel", | ||
"Failed to copy! Please, manually copy the code using the field bellow the button.","Failed to copy! Please, manually copy the code using the field bellow the button." | ||
"Copied PIX code!","Copied PIX code!" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PIX code copied!
"Cancel","Cancelar" | ||
"Cancel","Cancelar", | ||
"Failed to copy! Please, manually copy the code using the field bellow the button.","Falha ao copiar! Por favor, copie o código manualmente utilizando o campo abaixo do botão." | ||
"Copied PIX code!","Código PIX copiado!" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PIX code copied!
@@ -19,15 +19,30 @@ | |||
use Pagarme\Pagarme\Helper\Payment\Pix as PixHelper; | |||
class Pix extends Template |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adiciona uma quebra de linha entre class e use