Skip to content

Payment config settings not decrypted when used? #2984

Closed
@cscd98

Description

@cscd98

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

Inchoo/magento2-Inchoo_Stripe#6

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions