Closed
Description
In my system.xml:
<field id="production_secret" translate="label" type="obscure" sortOrder="5" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Production Secret</label>
<backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
<depends><field id='is_sandbox_mode'>0</field></depends>
</field>
In my payment class which extends \Magento\Payment\Model\Method\Cc
$this->secret = $this->getConfigData('production_secret');
$this->secret is still encrypted? it should be a plain text value
I'm using PHP 7.0.2