Context: How is a vault payment implemented?
Step 1. How are the payment data assigned to the chosen payment on an order placement?
It triggers the following events:
-
payment_method_assign_data_vault
(it is handled by theMagento\Vault\Observer\PaymentTokenAssigner
observer)
-
payment_method_assign_data
(it is handled by theMagento\Vault\Observer\VaultEnableAssigner
observer)