I have added some custom fields to the admin->configurations->sales->payment section using the following method.
created config.xml inside etc
folder of my module dir.
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
<default>
<payment>
<ProductSpecificPayments>
<model>Vendor\Module\Model\Carrier\ProductSpecificPayments</model>
<name>Product Specific Payment</name>
</ProductSpecificPayments>
</payment>
</default>
Then created system.xml in adminhtml
folder.
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<section id="payment">
<group id="productspecific" translate="label" type="text" sortOrder="500" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Productspecific Payment Configuration</label>
<field id="active" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="0">
<label>Enabled</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="title" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Title</label>
</field>
<field id="name" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Name</label>
</field>
<field id="allowed_shippings" translate="label" type="multiselect" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="0">
<label>Allowed Payment Methods</label>
<source_model>Vendor\Module\Model\AllPayements</source_model>
</field>
<field id="highes_amount" translate="label" type="select" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="0">
<label>Fallback Payment</label>
<source_model>Vendor\Module\Model\AllPayements</source_model>
</field>
</group>
</section>
</system>
now it is working fine. but How I can retrieve these saved values in product adding a page or any other files?
especialy inside a Model.