Skip to content

Instantly share code, notes, and snippets.

@rianorie
Forked from justinpage/system.xml
Created July 24, 2014 23:02
Show Gist options
  • Save rianorie/85da54b7cac5c1da8665 to your computer and use it in GitHub Desktop.
Save rianorie/85da54b7cac5c1da8665 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<config>
<sections>
<payment>
<groups>
<foggyline_stripe translate="label" module="pay">
<label>Foggyline Stripe</label>
<tab>Sales</tab>
<frontend_type>text</frontend_type>
<sort_order>0</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<fields>
<!-- Enabled -->
<active>
<label>Enabled</label>
<frontend_type>select</frontend_type>
<source_model>adminhtml/system_config_source_yesno</source_model>
<sort_order>10</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>0</show_in_store>
</active>
<!-- Title -->
<title>
<label>Title</label>
<frontend_type>text</frontend_type>
<sort_order>15</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</title>
<!-- API Key -->
<api_key>
<label>Title</label>
<frontend_type>obscure</frontend_type>
<backend_model>adminhtml/system_config_backend_encrypted</backend_model>
<sort_order>20</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>0</show_in_store>
</api_key>
<!-- API Key -->
<debug>
<label>Debug</label>
<frontend_type>select</frontend_type>
<source_model>adminhtml/system_config_source_yesno</source_model>
<sort_order>25</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>0</show_in_store>
</debug>
<!-- Credit Card Types -->
<cctypes>
<label>Credit Card Types</label>
<frontend_type>multiselect</frontend_type>
<source_model>foggyline_stripe/source_cctype</source_model>
<sort_order>30</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>0</show_in_store>
</cctypes>
<!-- Use CCV -->
<useccv>
<label>Credit Card Verification</label>
<frontend_type>select</frontend_type>
<source_model>adminhtml/system_config_source_yesno</source_model>
<sort_order>35</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>0</show_in_store>
</useccv>
<!-- Allow Specific -->
<allowspecific>
<label>Payment from Applicable Countries</label>
<frontend_type>allowspecific</frontend_type>
<source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
<sort_order>40</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>0</show_in_store>
</allowspecific>
<!-- Specific Country -->
<specificcountry>
<label>Payment from Specific Countries</label>
<frontend_type>multiselect</frontend_type>
<source_model>adminhtml/system_config_source_country</source_model>
<sort_order>45</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>0</show_in_store>
<depends>
<allowspecifc>1</allowspecifc>
</depends>
</specificcountry>
</fields>
</foggyline_stripe>
</groups>
</payment>
</sections>
</config>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment