How does the Braintree module implement the vault payments?

1. The «braintree_cc_vault» payment method declaration


It refers to the BraintreeCreditCardVaultFacade virtual class.

2. The «BraintreeCreditCardVaultFacade» virtual class definition


It uses the BraintreeFacade virtual class instance as a value of the vaultProvider parameter.

3. The «BraintreeFacade» virtual class definition

4. Magento\Vault\Model\Method\Vault::authorize()

See also: