Skip to content
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 755/feat add account id to gpay #351

Merged
merged 2 commits into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 26 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 @@ -11,20 +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="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>
<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>
<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="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>
<depends>
<field id="active">1</field>
</depends>
</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>
<depends>
<field id="active">1</field>
</depends>
</field>
</group>
</config>
</include>
4 changes: 3 additions & 1 deletion i18n/pt_BR.csv
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,9 @@
"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."
"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>."
"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"
"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."
Loading