Skip to content

Commit

Permalink
0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Apr 25, 2017
1 parent f789307 commit 3e32807
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 38 deletions.
2 changes: 1 addition & 1 deletion T/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function t02() {
// It should be unique, otherwise you will get the error:
// «O identificador prßprio deve ser único, j¹ existe um customer com o identificador informado»
// («The unique identifier must be unique, there is a customer with the identified identifier»).
->setOwnId(uniqid('df-customer-'))
->setOwnId('admin@mage2.pro')
/**
* 2017-04-23
* @param string $number Document number. Character limit: (11)
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mage2pro/moip"
,"version": "0.1.1"
,"version": "0.1.2"
,"description": "The «Moip» payment extension for Magento 2."
,"type": "magento2-module"
,"homepage": "https://mage2.pro/c/extensions/moip"
Expand Down
36 changes: 0 additions & 36 deletions etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -275,42 +275,6 @@
<validate>validate-number validate-greater-than-zero</validate>
<depends><field id='enable'>1</field></depends>
</field>
<field
id='country_restriction'
translate='label'
type='select'
sortOrder='17'
showInDefault='1'
showInWebsite='1'
showInStore='1'
>
<label>Country Restriction</label>
<source_model>Df\Config\Source\NoWhiteBlack</source_model>
<depends><field id='enable'>1</field></depends>
</field>
<field
id='countries'
translate='label'
type='Df\Framework\Form\Element\Multiselect'
sortOrder='18'
showInDefault='1'
showInWebsite='1'
showInStore='1'
>
<label>Countries</label>
<source_model>Magento\Directory\Model\Config\Source\Country</source_model>
<can_be_empty>1</can_be_empty>
<depends>
<field id='enable'>1</field>
<!--
2016-03-08
«The negative syntax for a backend config field <depends> condition»
https://mage2.pro/t/329
-->
<field id='country_restriction' negative='1'>0</field>
</depends>
<comment><![CDATA[Customers from which countries can (or can not) use the method?]]></comment>
</field>
</group>
</section>
</system>
Expand Down
6 changes: 6 additions & 0 deletions etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
<actionForNew>authorize_capture</actionForNew>
<actionForReturned>authorize_capture</actionForReturned>
<requireBillingAddress>1</requireBillingAddress>
<!--
2017-04-25
«Today we do not support creating clients that are from other countries that are not from Brazil,
so this error occurs. We do not have a forecast to be international.»
https://mage2.pro/t/3820/2
-->
<countries>BR</countries>
<country_restriction>whitelist</country_restriction>
<currency>BRL</currency>
Expand Down

0 comments on commit 3e32807

Please sign in to comment.