diff --git a/src/Service/PaymentMethodService.php b/src/Service/PaymentMethodService.php index 446d4d703..6e2fe5349 100644 --- a/src/Service/PaymentMethodService.php +++ b/src/Service/PaymentMethodService.php @@ -181,8 +181,12 @@ public function addPaymentMethods(array $paymentMethods, Context $context): void $translations = $existingPaymentMethod->getTranslations(); if ($translations !== null) { + $paymentMethodData['translations'][Defaults::LANGUAGE_SYSTEM] = [ + 'name' => $existingPaymentMethod->getName() + ]; + foreach ($translations as $translation) { - $paymentMethodData['translations'][$translation->getLanguageId()]=[ + $paymentMethodData['translations'][$translation->getLanguageId()] = [ 'name' => $translation->getName() ]; }