_storeManager->getStore()->getId(); $vaultPayment = $this->getVaultPayment(); return $vaultPayment->isActive($storeId); } /** * On backend this block does not have any conditional checks * * @return bool */ protected function shouldRender() { return true; } /** * {inheritdoc} */ protected function initializeMethod() { return; } /** * Get configured vault payment for PayflowPro * @return VaultPaymentInterface */ private function getVaultPayment() { return $this->getPaymentDataHelper()->getMethodInstance(Transparent::CC_VAULT_CODE); } /** * Get payment data helper instance * @return Data * @deprecated 100.1.0 */ private function getPaymentDataHelper() { if ($this->paymentDataHelper === null) { $this->paymentDataHelper = ObjectManager::getInstance()->get(Data::class); } return $this->paymentDataHelper; } }