How are the payment data assigned to the Vault payment method instance on an order placement?

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:

  1. payment_method_assign_data_vault (it is handled by the Magento\Vault\Observer\PaymentTokenAssigner observer)

See also: