Skip to content

Commit

Permalink
Merge pull request #31 from compropago/change-text
Browse files Browse the repository at this point in the history
Change text
  • Loading branch information
danteay authored Jul 18, 2018
2 parents 37eec0c + 558d0c2 commit 3733b45
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 15 deletions.
4 changes: 2 additions & 2 deletions Model/ProvidersOption.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ public function toOptionArray()
$allProviders = $client->api->listDefaultProviders();
} catch (\Exception $e) {
$allProviders = [
['name' => '7Eleven', 'internal_name' => 'SEVEN_ELEVEN'],
['name' => 'Oxxo', 'internal_name' => 'OXXO']
(Object)['name' => '7Eleven', 'internal_name' => 'SEVEN_ELEVEN'],
(Object)['name' => 'Oxxo', 'internal_name' => 'OXXO']
];
}

Expand Down
4 changes: 2 additions & 2 deletions Model/Ui/ConfigProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ protected function getProviders()
);
} catch (\Exception $e) {
$compropagoProviders = [
['name' => '7Eleven', 'internal_name' => 'SEVEN_ELEVEN'],
['name' => 'Oxxo', 'internal_name' => 'OXXO']
(Object)['name' => '7Eleven', 'internal_name' => 'SEVEN_ELEVEN'],
(Object)['name' => 'Oxxo', 'internal_name' => 'OXXO']
];
}

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "magento2-module",
"description": "ComproPago Magento2 Module",
"homepage": "https://github.com/compropago/plugin-magento-2",
"version": "3.0.0.1",
"version": "3.1.0.0",
"keywords": [
"pagos internet",
"payment gateway",
Expand Down
8 changes: 0 additions & 8 deletions etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,9 @@
<field id="public_key" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Public Key</label>
</field>
<field id="public_key" translate="label" type="obscure" sortOrder="20" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Public Key</label>
<backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
</field>
<field id="private_key" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Private Key</label>
</field>
<field id="private_key" translate="label" type="obscure" sortOrder="20" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Private Key</label>
<backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
</field>
<field id="live_mode" translate="label" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Live Mode</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
Expand Down
2 changes: 0 additions & 2 deletions etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
<payment>
<compropago_config>
<model>Compropago\Magento2\Model\Config</model>
<public_key backend_model="Magento\Config\Model\Config\Backend\Encrypted"/>
<private_key backend_model="Magento\Config\Model\Config\Backend\Encrypted"/>
<live_mode>0</live_mode>
</compropago_config>

Expand Down

0 comments on commit 3733b45

Please sign in to comment.