Skip to content

Commit

Permalink
fix: hide google pay options when not active
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaMelazzo committed Jul 2, 2024
1 parent eba62b3 commit d895791
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions etc/adminhtml/system/transaction/googlepay.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,40 @@
<field id="title" type="text" sortOrder="20" showInWebsite="1" showInStore="1" showInDefault="1" translate="label">
<label>Payment label</label>
<config_path>payment/pagarme_googlepay/title</config_path>
<depends>
<field id="active">1</field>
</depends>
</field>
<field id="pagarme_account_id" type="text" sortOrder="30" showInWebsite="1" showInStore="1" showInDefault="1" translate="label, comment">
<label>Pagar.me account ID</label>
<comment><![CDATA[Consult the <a target='_blank' href='https://id.pagar.me/signin'>Dashboard</a> at: <i>Settings > Keys > Account ID</i>]]></comment>
<config_path>pagarme_pagarme/hub/account_id</config_path>
<depends>
<field id="active">1</field>
</depends>
</field>
<field id="merchant_id" type="text" sortOrder="40" showInWebsite="1" showInStore="1" showInDefault="1" translate="label, comment">
<label>MerchantId Google Pay</label>
<comment><![CDATA[Google Pay identifier required to create successful orders. Find out how to request <a target='_blank' href='https://pay.google.com/business/console/?hl=pt-br'>here</a>.]]></comment>
<config_path>payment/pagarme_googlepay/merchant_id</config_path>
<depends>
<field id="active">1</field>
</depends>
</field>
<field id="merchant_name" type="text" sortOrder="50" showInWebsite="1" showInStore="1" showInDefault="1" translate="label, tooltip">
<label>Store name on Google Pay</label>
<config_path>payment/pagarme_googlepay/merchant_name</config_path>
<tooltip>Name of your store that will be displayed to the customer while purchasing through Google Pay.</tooltip>
<depends>
<field id="active">1</field>
</depends>
</field>
<field id="sort_order" type="text" sortOrder="60" showInWebsite="1" showInStore="1" showInDefault="1" translate="label">
<label>Payment method order</label>
<config_path>payment/pagarme_googlepay/sort_order</config_path>
<depends>
<field id="active">1</field>
</depends>
</field>
</group>
</include>
2 changes: 1 addition & 1 deletion i18n/pt_BR.csv
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@
"Something went wrong, please try again later.","Algo deu errado, por favor tente novamente mais tarde."
"Pagar.me account ID", "ID da conta Pagar.me"
"Consult the <a target='_blank' href='https://id.pagar.me/signin'>Dashboard</a> at: <i>Settings > Keys > Account ID</i>", "Consulte na <a target='_blank' href='https://id.pagar.me/signin'>Dashboard</a> em: <i>Configurações > Chaves > ID da Conta</i>"
"Google Pay identifier required to create successful orders, find out how to request <a target='_blank' href='https://pay.google.com/business/console/?hl=pt-br'>here</a>.", "Identificador do Google Pay necessário para criação de pedidos com sucesso, saiba como solicitar <a target='_blank' href='https://pay.google.com/business/console/?hl=pt-br'>aqui</a>."
"Google Pay identifier required to create successful orders. Find out how to request <a target='_blank' href='https://pay.google.com/business/console/?hl=pt-br'>here</a>.", "Identificador do Google Pay necessário para criação de pedidos com sucesso. Saiba como solicitar <a target='_blank' href='https://pay.google.com/business/console/?hl=pt-br'>aqui</a>."
"MerchantId Google Pay", "MerchantId Google Pay"
"Store name on Google Pay", "Nome da loja no Google Pay"
"Name of your store that will be displayed to the customer while purchasing through Google Pay.", "Nome da sua loja que será exibida ao cliente durante a compra pelo Google Pay."

0 comments on commit d895791

Please sign in to comment.