Magento 2.1.18 is the final 2.1.x release. After June 2019, Magento 2.1.x will no longer receive security patches, quality fixes, or documentation updates.
To maintain your site's performance, security, and PCI compliance, upgrade to the latest version of Magento.

Add vault to module dependencies

You need to add dependencies on the Magento_Vault module in the payment method’s composer.json and module.xml files.

Example: adding Vault module dependencies for the Braintree payment method

app/code/Magento/Braintree/composer.json:

1
2
3
4
5
6
7
8
9
10
{
    "name": "magento/module-braintree",
    ...
    "require": {
        ...
        "magento/module-vault": "100.1.*"
        ...
    }
    ...
}

app/code/Magento/Braintree/etc/module.xml:

1
2
3
4
5
6
7
8
9
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
    <module name="Magento_Braintree" setup_version="2.0.0">
        <sequence>
            ...
            <module name="Magento_Vault"/>
            ...
        </sequence>
    </module>
</config>

What’s next

Configure vault general parameters.

Updated