diff --git a/Block/QuickPay.php b/Block/QuickPay.php
new file mode 100644
index 0000000..cfcc4c9
--- /dev/null
+++ b/Block/QuickPay.php
@@ -0,0 +1,50 @@
+configProvider = $configProvider;
+ }
+
+ /**
+ * Return payment logo, label, and description based on selected payment method
+ *
+ * @param string $methodCode
+ * @return array
+ */
+ public function getPaymentConfigByMethod(string $methodCode)
+ {
+ $config = $this->configProvider->getConfig();
+ $methodConfig = $config['payment'][$methodCode] ?? null;
+
+ return [
+ 'paymentLogo' => $methodConfig['paymentLogo'] ?? [],
+ 'description' => $this->configProvider->getDescription($methodCode),
+ 'label' => $methodCode
+ ];
+ }
+}
diff --git a/Plugin/Hyva/Checkout/MethodListPlugin.php b/Plugin/Hyva/Checkout/MethodListPlugin.php
deleted file mode 100644
index a197f8c..0000000
--- a/Plugin/Hyva/Checkout/MethodListPlugin.php
+++ /dev/null
@@ -1,86 +0,0 @@
-configProvider = $configProvider;
- $this->methodMetaDataFactory = $methodMetaDataFactory;
- $this->logger = $logger;
- }
-
- /**
- * After getting method metadata, add QuickPay specific data from ConfigProvider
- */
- public function afterGetMethodMetaData(
- $subject,
- $result,
- Template $parent,
- PaymentMethodInterface $method
- ) {
- // Check if Hyva classes are available
- if (!interface_exists('Hyva\Checkout\Model\MethodMetaDataInterface') ||
- !class_exists('Hyva\Checkout\Model\MethodMetaDataFactory')) {
- return $result;
- }
- $methodCode = $method->getCode();
-
- // Check if it's a QuickPay payment method
- if (strpos($methodCode, 'quickpay') === 0) {
- try {
- $config = $this->configProvider->getConfig();
- $paymentConfig = $config['payment'][$methodCode] ?? [];
-
- // Add icon data if available (use paymentLogo for both Luma and Hyva compatibility)
- if (isset($paymentConfig['paymentLogoPath']) && is_array($paymentConfig['paymentLogoPath'])) {
- if (!empty($paymentConfig['paymentLogoPath'])) {
- // Use only the first logo (Hyva checkout limitation)
- $firstLogo = $paymentConfig['paymentLogoPath'][0];
-
- $iconData = [
- 'src' => $firstLogo,
- 'attributes' => [
- 'width' => '60',
- 'height' => '',
- 'alt' => $methodCode
- ]
- ];
-
- $result->setData('icon', $iconData);
- }
- }
-
- // Add description as subtitle if available
- if (isset($paymentConfig['description']) && !empty($paymentConfig['description'])) {
- $result->setData('subtitle', $paymentConfig['description']);
- }
- } catch (\Exception $e) {
- $this->logger->error('QuickPay MethodListPlugin: Error processing ' . $methodCode, ['exception' => $e]);
- }
- }
-
- return $result;
- }
-}
diff --git a/etc/frontend/di.xml b/etc/frontend/di.xml
index 5f5e28c..50789ae 100644
--- a/etc/frontend/di.xml
+++ b/etc/frontend/di.xml
@@ -27,14 +27,4 @@
type="QuickPay\Gateway\Plugin\Hyva\Checkout\PlaceOrderServiceProcessorPlugin"
sortOrder="10"/>
-
-
-
-