How is Magento\Vault\Model\Method\Vault::getPaymentExtensionAttributes() implemented and used?

The single usage

Magento\Vault\Model\Method\Vault::attachTokenExtensionAttribute()

Implementation

The $payment->getExtensionAttributes() code:

  1. Calls the Magento\Sales\Model\Order\Payment::getExtensionAttributes() method.