Skip to content

Commit

Permalink
feat: add pagarme account id to google pay fields
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaMelazzo committed Jul 2, 2024
1 parent d33909d commit eba62b3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
18 changes: 11 additions & 7 deletions etc/adminhtml/system/transaction/googlepay.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">

<include xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_include.xsd">
<group id="pagarme_googlepay" showInWebsite="1" showInStore="1" showInDefault="1" translate="label" sortOrder="50">
<label>Google Pay</label>
<field id="active" type="select" sortOrder="10" showInWebsite="1" showInStore="1" showInDefault="1" translate="label">
Expand All @@ -12,19 +11,24 @@
<label>Payment label</label>
<config_path>payment/pagarme_googlepay/title</config_path>
</field>
<field id="merchant_id" type="text" sortOrder="30" showInWebsite="1" showInStore="1" showInDefault="1" translate="label, comment">
<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>
</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>
<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>
</field>
<field id="merchant_name" type="text" sortOrder="40" showInWebsite="1" showInStore="1" showInDefault="1" translate="label, tooltip">
<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>
</field>
<field id="sort_order" type="text" sortOrder="50" showInWebsite="1" showInStore="1" showInDefault="1" translate="label">
<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>
</field>
</group>
</config>
</include>
2 changes: 2 additions & 0 deletions i18n/pt_BR.csv
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,8 @@
"Recipient not founded.","Recebedor não encontrado."
"Failed to generate the security validation link.","Falha ao gerar o link de validação de segurança."
"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>."
"MerchantId Google Pay", "MerchantId Google Pay"
"Store name on Google Pay", "Nome da loja no Google Pay"
Expand Down

0 comments on commit eba62b3

Please sign in to comment.