Commit c80a0332 authored by Marcos Garcia's avatar Marcos Garcia Committed by GitHub

Change default values for Order Status (#668)

As an improvement for merchants installing the plugin, we're changing the default values for the **Magento order management** section.
Co-authored-by: default avatarmarcoss <marcos.silvagarcia@adyen.com>
parent cd84abd4
......@@ -27,43 +27,43 @@
<comment><![CDATA[Manage the status assigned to an order when there is an update in the payment process. To learn more about the different stages of the payment process, refer to <a href="https://docs.adyen.com/developers/plug-ins-and-partners/magento-2/order-management-in-magento" target="_blank">Adyen documentation</a>.]]></comment>
<field id="order_status" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="0">
<label>Order creation</label>
<source_model>Magento\Sales\Model\Config\Source\Order\Status\NewStatus</source_model><!--TODO: Check source model for available options and plan migration script-->
<source_model>Magento\Sales\Model\Config\Source\Order\Status\NewStatus</source_model>
<config_path>payment/adyen_abstract/order_status</config_path>
</field>
<field id="payment_pre_authorized" translate="label" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="0">
<label>Payment authorisation</label>
<source_model>Magento\Sales\Model\Config\Source\Order\Status\Newprocessing</source_model><!--TODO: Check source model for available options and plan migration script-->
<source_model>Magento\Sales\Model\Config\Source\Order\Status\Newprocessing</source_model>
<config_path>payment/adyen_abstract/payment_pre_authorized</config_path>
</field>
<field id="payment_authorized" translate="label" type="select" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="0">
<label>Payment capture</label>
<source_model>Magento\Sales\Model\Config\Source\Order\Status\Processing</source_model><!--TODO: Check source model for available options and plan migration script-->
<source_model>Magento\Sales\Model\Config\Source\Order\Status\Processing</source_model>
<config_path>payment/adyen_abstract/payment_authorized</config_path>
</field>
<field id="payment_authorized_virtual" translate="label" type="select" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Payment capture (virtual products)</label>
<source_model>Adyen\Payment\Model\Config\Source\Complete</source_model>
<config_path>payment/adyen_abstract/payment_authorized_virtual</config_path><!--TODO: Check source model for available options and plan migration script-->
<config_path>payment/adyen_abstract/payment_authorized_virtual</config_path>
</field>
<field id="payment_cancelled" translate="label" type="select" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="0">
<label>Order cancellation</label>
<source_model>Adyen\Payment\Model\Config\Source\Cancelled</source_model>
<config_path>payment/adyen_abstract/payment_cancelled</config_path><!--TODO: Check source model for available options and plan migration script-->
<config_path>payment/adyen_abstract/payment_cancelled</config_path>
</field>
<field id="fraud_manual_review_status" translate="label" type="select" sortOrder="60" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Under manual review</label>
<source_model>Magento\Sales\Model\Config\Source\Order\Status\NewStatus</source_model>
<config_path>payment/adyen_abstract/fraud_manual_review_status</config_path><!--TODO: Check source model for available options and plan migration script-->
<config_path>payment/adyen_abstract/fraud_manual_review_status</config_path>
</field>
<field id="fraud_manual_review_accept_status" translate="label" type="select" sortOrder="70" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Manual review accepted</label>
<source_model>Magento\Sales\Model\Config\Source\Order\Status\Processing</source_model>
<config_path>payment/adyen_abstract/fraud_manual_review_accept_status</config_path><!--TODO: Check source model for available options and plan migration script-->
<config_path>payment/adyen_abstract/fraud_manual_review_accept_status</config_path>
</field>
<field id="send_email_bank_sepa_on_pending" translate="label" type="select" sortOrder="80" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Send order confirmation email for Bank Transfer/SEPA</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<config_path>payment/adyen_abstract/send_email_bank_sepa_on_pending</config_path><!--TODO: Check source model for available options and plan migration script-->
<config_path>payment/adyen_abstract/send_email_bank_sepa_on_pending</config_path>
</field>
<field id="ignore_refund_notification" translate="label" type="select" sortOrder="90" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Ignore refund notification</label>
......
......@@ -28,7 +28,6 @@
<adyen_abstract>
<active>0</active>
<model>AdyenPaymentGenericFacade</model>
<order_status>pending</order_status>
<demo_mode>1</demo_mode>
<debug>1</debug>
<title_renderer>title_image</title_renderer>
......@@ -38,6 +37,16 @@
<enable_oneclick>1</enable_oneclick>
<enable_recurring>0</enable_recurring>
<group>adyen</group>
<!-- etc/adminhtml/system/order_management/order_management.xml -->
<order_status>pending</order_status>
<payment_pre_authorized>pending</payment_pre_authorized>
<payment_authorized>processing</payment_authorized>
<payment_authorized_virtual>complete</payment_authorized_virtual>
<payment_cancelled>canceled</payment_cancelled>
<fraud_manual_review_status>pending</fraud_manual_review_status>
<fraud_manual_review_accept_status>processing</fraud_manual_review_accept_status>
<send_email_bank_sepa_on_pending>0</send_email_bank_sepa_on_pending>
<ignore_refund_notification>0</ignore_refund_notification>
</adyen_abstract>
<adyen_cc>
<active>1</active>
......
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