Skip to content

[Signifyd] Making system configs dependent by Active field #25584

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
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
12 changes: 12 additions & 0 deletions app/code/Magento/Signifyd/etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,22 +41,34 @@
<comment><![CDATA[Your API key can be found on the <a href="http://signifyd.com/settings" target="_blank">settings page</a> in the Signifyd console]]></comment>
<config_path>fraud_protection/signifyd/api_key</config_path>
<backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
<depends>
<field id="active">1</field>
</depends>
</field>
<field id="api_url" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="0">
<label>API URL</label>
<config_path>fraud_protection/signifyd/api_url</config_path>
<comment>Don’t change unless asked to do so.</comment>
<depends>
<field id="active">1</field>
</depends>
</field>
<field id="debug" translate="label" type="select" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="0">
<label>Debug</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<config_path>fraud_protection/signifyd/debug</config_path>
<depends>
<field id="active">1</field>
</depends>
</field>
<field id="webhook_url" translate="label comment" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="0">
<label>Webhook URL</label>
<comment><![CDATA[Your webhook URL will be used to <a href="https://app.signifyd.com/settings/notifications" target="_blank">configure</a> a guarantee completed webhook in Signifyd. Webhooks are used to sync Signifyd`s guarantee decisions back to Magento.]]></comment>
<attribute type="handler_url">signifyd/webhooks/handler</attribute>
<frontend_model>Magento\Signifyd\Block\Adminhtml\System\Config\Field\WebhookUrl</frontend_model>
<depends>
<field id="active">1</field>
</depends>
</field>
</group>
</group>
Expand Down