How does Magento\Vault\Model\Method\Vault::authorize() work?

Context: How is a Braintree vault payment processed on the Magento 2 server side?


Details: How does Magento\Vault\Model\Method\Vault::attachTokenExtensionAttribute() work?





Details: How is Magento\Payment\Gateway\Command\CommandManager::executeByCode() implemented and used?