Do you have any good tutorial about implementing Magento Vault to a payment module. I am trying to add Vault to the payfort module by following the official doc https://devdocs.magento.com/guides/v2.1/payments-integrations/vault/vault-intro.html, but i cannot get the dependency injection correct.
I tried to copy the di.xml from the braintree module but it is also very confusing. the code inside the VaultDetailsHandler which is used as handler is not getting executed. What is your opinion about using sales_order_payment_save_after or checkout_onepage_controller_success_action event observers to add token to vault