Skip to content
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
10 changes: 5 additions & 5 deletions Block/Adminhtml/System/Config/Form/Field/HubIntegration.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ protected function _renderValue(AbstractElement $element): string
'<a href="%s" id="pagarme-integrate-button" class="pagarme-integration-button%s">%s</a>',
$this->_escaper->escapeUrl($this->getBaseIntegrateUrl()),
$installId ? $hidden : '',
__("Integrate With Pagar.me")
__("Integrate With Stone")
);

$html .= sprintf(
Expand Down Expand Up @@ -102,20 +102,20 @@ public function getHubUrl($installId): string
private function getBaseIntegrateUrl(): string
{
$baseUrl = sprintf(
'https://hub.pagar.me/apps/%s/authorize',
'https://hub.stone.com.br/redirect-onestone/#/?q=/apps/%s/authorize',
$this->getPublicAppKey()
);

if($this->getRequest()->getParam('website') !== null) {
$params = sprintf(
'?redirect=%swebsite/%s/install_token/%s',
'&redirect=%swebsite/%s/install_token/%s',
$this->getRedirectUrl(),
Magento2CoreSetup::getCurrentStoreId(),
$this->getInstallToken()
);
} else {
$params = sprintf(
'?redirect=%sinstall_token/%s',
'&redirect=%sinstall_token/%s',
$this->getRedirectUrl(),
$this->getInstallToken()
);
Expand All @@ -131,7 +131,7 @@ private function getBaseIntegrateUrl(): string
private function getBaseViewIntegrationUrl($installId): string
{
return sprintf(
'https://hub.pagar.me/apps/%s/edit/%s',
'https://hub.stone.com.br/redirect-onestone/#/?q=/apps/%s/edit/%s',
$this->getPublicAppKey(),
$installId
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ protected function _renderValue(AbstractElement $element): string
{
$html = '<td class="value">';
$html .= $this->_getElementHtml($element);
$html .= __('<p>Pagar.me recipient id that represents your marketplace</p>');
$html .= __('<p>Stone recipient id that represents your marketplace</p>');
$html .= '</td>';
$html .= '<td>';
$html .= sprintf(
Expand Down
6 changes: 3 additions & 3 deletions etc/adminhtml/menu.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
<menu>
<add id="Pagarme::pagarme" module="Pagarme_Pagarme" resource="Magento_Backend::content" sortOrder="80" title="Pagar.me"/>
<add id="Pagarme::pagarme" module="Pagarme_Pagarme" resource="Magento_Backend::content" sortOrder="80" title="Stone"/>
<add id="Pagarme::pagarme_label" module="Pagarme_Pagarme" parent="Pagarme::pagarme" resource="Magento_Config::config" sortOrder="10" title="Configurations" translate="title" />
<add action="pagarme_pagarme/charges/index" id="Pagarme::pagarme_charges" module="Pagarme_Pagarme" parent="Pagarme::pagarme_label" resource="Magento_Backend::content" sortOrder="20" title="Charges Pagar.me" translate="title" />
<add action="pagarme_pagarme/cards/index" id="Pagarme::pagarme_cards" module="Pagarme_Pagarme" parent="Pagarme::pagarme_label" resource="Magento_Backend::content" sortOrder="10" title="Cards Pagar.me" translate="title" />
<add action="pagarme_pagarme/charges/index" id="Pagarme::pagarme_charges" module="Pagarme_Pagarme" parent="Pagarme::pagarme_label" resource="Magento_Backend::content" sortOrder="20" title="Charges Stone" translate="title" />
<add action="pagarme_pagarme/cards/index" id="Pagarme::pagarme_cards" module="Pagarme_Pagarme" parent="Pagarme::pagarme_label" resource="Magento_Backend::content" sortOrder="10" title="Cards Stone" translate="title" />
<add action="adminhtml/system_config/edit/section/payment" id="Pagarme::pagarme_payment_methods" module="Pagarme_Pagarme" parent="Pagarme::pagarme_label" resource="Magento_Config::config" sortOrder="1" title="Payment Methods" translate="title" />

<add id="Pagarme::pagarme_pagarme_marketplace" module="Pagarme_Pagarme" parent="Pagarme::pagarme" resource="Magento_Config::config" sortOrder="20" dependsOnConfig="pagarme_pagarme/marketplace/active" title="Marketplace" translate="title" />
Expand Down
4 changes: 2 additions & 2 deletions etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<tab id="pagarme" sortOrder="1" translate="label">
<label>Pagar.me</label>
<label>Stone</label>
</tab>
<section id="payment" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="1000" translate="label">
<group id="pagarme_pagarme" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="10" translate="label">
<label>
<![CDATA[Pagar.me&nbsp;&nbsp;<i>Payment Solutions.</i>]]>
<![CDATA[Stone&nbsp;&nbsp;<i>Payment Solutions.</i>]]>
</label>
<frontend_model>Pagarme\Pagarme\Block\Adminhtml\System\Config\Form\Fieldset\Group</frontend_model>
<fieldset_css>complex</fieldset_css>
Expand Down
2 changes: 1 addition & 1 deletion etc/adminhtml/system/antifraud.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
-->
<include xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_include.xsd">
<section id="pagarme_antifraud" translate="label" type="text" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Pagar.me AntiFraud</label>
<label>Stone AntiFraud</label>
<tab>pagarme_pagarme</tab>
<resource>Pagarme_Pagarme::config</resource>

Expand Down
4 changes: 2 additions & 2 deletions etc/adminhtml/system/global.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<group id="pagarme_pagarme_global" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="1" translate="label">
<label>General Settings</label>
<field id="hub_integration" showInDefault="1" showInStore="0" showInWebsite="1" sortOrder="1" translate="label" type="hidden">
<label>Pagar.me integration</label>
<label>Stone integration</label>
<frontend_model>Pagarme\Pagarme\Block\Adminhtml\System\Config\Form\Field\HubIntegration</frontend_model>
<config_path>pagarme_pagarme/hub/install_id</config_path>
</field>
Expand Down Expand Up @@ -44,7 +44,7 @@
</field>
<field id="active_send_email" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="50" translate="label" type="select">
<label>Send order status changes by e-mail</label>
<comment><![CDATA[Send an e-mail every time when an order status is changed by a Pagar.me's webhook. <p><strong style='color:red'>Warning!</strong> Make sure you have set up your mail server correctly before enable it, otherwise you will run the risk of slowdowns and crashes of your platform.</p>]]></comment>
<comment><![CDATA[Send an e-mail every time when an order status is changed by a Stone's webhook. <p><strong style='color:red'>Warning!</strong> Make sure you have set up your mail server correctly before enable it, otherwise you will run the risk of slowdowns and crashes of your platform.</p>]]></comment>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<config_path>pagarme_pagarme/global/sendmail</config_path>
</field>
Expand Down
4 changes: 2 additions & 2 deletions etc/adminhtml/system/transaction/googlepay.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
</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>
<label>Stone account ID</label>
<comment><![CDATA[Consult the <a target='_blank' href='https://hub.stone.com.br/redirect-onestone/'>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>
Expand Down
14 changes: 7 additions & 7 deletions etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<model>PagarmeBilletRemoteMethodAdapter</model>
<order_status>pending_payment</order_status>
<payment_action>authorize</payment_action>
<title>Pagar.me Billet</title>
<title>Stone Billet</title>
<can_authorize>1</can_authorize>
<can_capture>1</can_capture>
<can_use_checkout>1</can_use_checkout>
Expand All @@ -29,7 +29,7 @@
<model>PagarmePixRemoteMethodAdapter</model>
<order_status>pending_payment</order_status>
<payment_action>authorize</payment_action>
<title>Pagar.me Pix</title>
<title>Stone Pix</title>
<expiration_qrcode>3600</expiration_qrcode>
<can_authorize>1</can_authorize>
<can_capture>1</can_capture>
Expand All @@ -45,7 +45,7 @@
<model>PagarmeCreditCardsRemoteMethodAdapter</model>
<order_status>pending_payment</order_status>
<payment_action>authorize_capture</payment_action>
<title>Pagar.me Credit Card</title>
<title>Stone Credit Card</title>
<can_authorize>1</can_authorize>
<can_capture_partial>1</can_capture_partial>
<can_capture>1</can_capture>
Expand Down Expand Up @@ -122,7 +122,7 @@
<model>PagarmeBilletCreditCardsRemoteMethodAdapter</model>
<order_status>pending_payment</order_status>
<payment_action>authorize</payment_action>
<title>Pagar.me Billet Credit Card</title>
<title>Stone Billet Credit Card</title>
<can_authorize>1</can_authorize>
<can_capture_partial>1</can_capture_partial>
<can_capture>1</can_capture>
Expand All @@ -149,7 +149,7 @@
<model>PagarmeTwoCreditCardRemoteMethodAdapter</model>
<order_status>pending_payment</order_status>
<payment_action>authorize</payment_action>
<title>Pagar.me Two Credit Cards</title>
<title>Stone Two Credit Cards</title>
<can_authorize>1</can_authorize>
<can_capture_partial>1</can_capture_partial>
<can_capture>1</can_capture>
Expand All @@ -176,7 +176,7 @@
<model>PagarmeVoucherRemoteMethodAdapter</model>
<order_status>pending_payment</order_status>
<payment_action>authorize_capture</payment_action>
<title>Pagar.me Voucher</title>
<title>Stone Voucher</title>
<can_authorize>1</can_authorize>
<can_capture_partial>1</can_capture_partial>
<can_capture>1</can_capture>
Expand All @@ -203,7 +203,7 @@
<model>PagarmeDebitRemoteMethodAdapter</model>
<order_status>pending_payment</order_status>
<payment_action>authorize_capture</payment_action>
<title>Pagar.me Debit Card</title>
<title>Stone Debit Card</title>
<can_authorize>1</can_authorize>
<can_capture_partial>1</can_capture_partial>
<can_capture>1</can_capture>
Expand Down
Loading
Loading