Skip to content

Commit

Permalink
[ECP-9044] Add payment method title to config provider (#2544)
Browse files Browse the repository at this point in the history
  • Loading branch information
candemiralp authored Mar 7, 2024
1 parent 192653e commit 4b39f82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Model/Ui/AdyenCcConfigProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,10 @@ public function getConfig(): array

$storeId = $this->storeManager->getStore()->getId();
$cardRecurringEnabled = $this->vaultHelper->getPaymentMethodRecurringActive(self::CODE, $storeId);
$methodTitle = $this->configHelper->getConfigData('title', Config::XML_ADYEN_CC, $storeId);

$config['payment']['adyenCc']['methodCode'] = self::CODE;
$config['payment']['adyenCc']['title'] = __($methodTitle);
$config['payment']['adyenCc']['locale'] = $this->adyenHelper->getStoreLocale($storeId);
$config['payment']['adyenCc']['isCardRecurringEnabled'] = $cardRecurringEnabled;
$config['payment']['adyenCc']['icons'] = $this->getIcons();
Expand Down

0 comments on commit 4b39f82

Please sign in to comment.