componentFactory = $componentFactory; } /** * @inheritdoc */ public function getComponentForToken(PaymentTokenInterface $paymentToken) { $data = json_decode($paymentToken->getTokenDetails() ?: '{}', true); $component = $this->componentFactory->create( [ 'config' => [ TokenUiComponentProviderInterface::COMPONENT_DETAILS => $data, TokenUiComponentProviderInterface::COMPONENT_PUBLIC_HASH => $paymentToken->getPublicHash(), 'template' => 'Magento_Paypal::payflowpro/vault.phtml' ], 'name' => Template::class ] ); return $component; } }