Commit 37e20408 authored by alexandros's avatar alexandros

Added boleto

parent df169089
...@@ -24,10 +24,9 @@ ...@@ -24,10 +24,9 @@
--> -->
<include xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_include.xsd"> <include xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_include.xsd">
<group id="adyen_boleto" translate="label" type="text" sortOrder="450" showInDefault="1" showInWebsite="1" showInStore="1"> <group id="adyen_boleto" translate="label" type="text" sortOrder="450" showInDefault="1" showInWebsite="1" showInStore="1">
<label><![CDATA[Boleto integration]]></label> <label><![CDATA[Boleto]]></label>
<frontend_model>Magento\Paypal\Block\Adminhtml\System\Config\Fieldset\Group</frontend_model> <frontend_model>Magento\Paypal\Block\Adminhtml\System\Config\Fieldset\Group</frontend_model>
<fieldset_css>adyen-method-adyen-cc</fieldset_css> <fieldset_css>adyen-method-adyen-cc</fieldset_css>
<comment>Process Boleto transactions</comment>
<field id="active" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1"> <field id="active" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Enabled</label> <label>Enabled</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model> <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
...@@ -37,39 +36,28 @@ ...@@ -37,39 +36,28 @@
<label>Title</label> <label>Title</label>
<config_path>payment/adyen_boleto/title</config_path> <config_path>payment/adyen_boleto/title</config_path>
</field> </field>
<field id="sort_order" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="0"> <field id="sort_order" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Sort Order</label> <label>Sort order</label>
<frontend_class>validate-number</frontend_class> <frontend_class>validate-number</frontend_class>
<config_path>payment/adyen_boleto/sort_order</config_path> <config_path>payment/adyen_boleto/sort_order</config_path>
</field> </field>
<field id="cctypes" translate="label" type="multiselect" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="0"> <field id="delivery_days" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Boleto Types</label> <label>Days for deliveryadn payment</label>
<depends><field id="active">1</field></depends>
<validate>validate-no-empty</validate>
<source_model>Adyen\Payment\Model\Config\Source\BoletoType</source_model>
<config_path>payment/adyen_boleto/boletotypes</config_path>
</field>
<field id="delivery_days" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="0">
<label>Days for Delivery</label>
<tooltip>How many days to be added to the current date for delivery. Only numbers allowed.</tooltip>
<frontend_class>validate-number</frontend_class> <frontend_class>validate-number</frontend_class>
<config_path>payment/adyen_boleto/delivery_days</config_path> <config_path>payment/adyen_boleto/delivery_days</config_path>
</field> </field>
<field id="allowspecific" translate="label" type="allowspecific" sortOrder="40" showInDefault="1"
<group id="adyen_boleto_country_specific" translate="label" showInDefault="1" showInWebsite="1" sortOrder="210"> showInWebsite="1" showInStore="1">
<label>Country Specific Settings</label> <label>Payment from applicable countries</label>
<frontend_model>Magento\Config\Block\System\Config\Form\Fieldset</frontend_model> <source_model>Magento\Payment\Model\Config\Source\Allspecificcountries</source_model>
<field id="allowspecific" translate="label" type="allowspecific" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="0"> <config_path>payment/adyen_boleto/allowspecific</config_path>
<label>Payment from Applicable Countries</label> </field>
<source_model>Magento\Payment\Model\Config\Source\Allspecificcountries</source_model> <field id="specificcountry" translate="label" type="multiselect" sortOrder="50" showInDefault="1"
<config_path>payment/adyen_boleto/allowspecific</config_path> showInWebsite="1" showInStore="1">
</field> <label>Payment from specific countries</label>
<field id="specificcountry" translate="label" type="multiselect" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="0"> <source_model>Magento\Directory\Model\Config\Source\Country</source_model>
<label>Payment from Specific Countries</label> <can_be_empty>1</can_be_empty>
<source_model>Magento\Directory\Model\Config\Source\Country</source_model> <config_path>payment/adyen_boleto/specificcountry</config_path>
<can_be_empty>1</can_be_empty> </field>
<config_path>payment/adyen_boleto/specificcountry</config_path>
</field>
</group>
</group> </group>
</include> </include>
\ No newline at end of file
...@@ -177,11 +177,11 @@ ...@@ -177,11 +177,11 @@
<adyen_boleto> <adyen_boleto>
<active>0</active> <active>0</active>
<model>AdyenPaymentBoletoFacade</model> <model>AdyenPaymentBoletoFacade</model>
<title>Boleto</title> <title></title>
<allowspecific>0</allowspecific> <allowspecific>0</allowspecific>
<sort_order>8</sort_order> <sort_order></sort_order>
<payment_action>authorize</payment_action> <payment_action>authorize</payment_action>
<delivery_days>5</delivery_days> <delivery_days></delivery_days>
<is_gateway>1</is_gateway> <is_gateway>1</is_gateway>
<can_use_checkout>1</can_use_checkout> <can_use_checkout>1</can_use_checkout>
<can_authorize>1</can_authorize> <can_authorize>1</can_authorize>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment