Context: How is a Braintree vault payment processed on the Magento 2 server side?
Steps 1-4 (the generic part)
How are the payment data assigned to the chosen payment on an order placement?
Step 5. Magento\Vault\Model\Method\Vault::assignData()
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)