12 use Psr\Log\LoggerInterface;
62 $this->config = $paymentConfig;
82 $years[$year] = $year;
94 return $this->config->getCcTypes();
104 return $this->config->getMonths();
114 return $this->config->getYears();
158 $params = array_merge([
'_secure' => $this->request->isSecure()],
$params);
159 return $this->assetRepo->getUrlWithParams($fileId,
$params);
161 $this->logger->critical($e);
162 return $this->urlBuilder->getUrl(
'', [
'_direct' =>
'core/index/notFound']);
175 $params = array_merge([
'_secure' => $this->request->isSecure()],
$params);
176 return $this->assetRepo->createAsset($fileId,
$params);
__construct(PaymentConfig $paymentConfig, Repository $assetRepo, RequestInterface $request, UrlInterface $urlBuilder, LoggerInterface $logger)
getViewFileUrl($fileId, array $params=[])
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]
createAsset($fileId, array $params=[])