/** * Loads a specified payment token. * * @param int $entityId The payment token entity ID. * @return \Magento\Vault\Api\Data\PaymentTokenInterface Payment token interface. */ public function getById($entityId) { $tokenModel = $this->paymentTokenFactory->create(); $this->resourceModel->load($tokenModel, $entityId); return $tokenModel; }