fix(kasse): Express-Hinweis nennt den Anzeigenamen des Anbieters statt 'Paypal v2'

This commit is contained in:
Thomas Bartelt
2026-09-18 07:53:29 +02:00
parent f1aef6e575
commit dec101f0cb
+2 -1
View File
@@ -529,7 +529,8 @@ class website_cashdesk {
$pm_id = (int)$r->id;
}
$this->layout_object->assign('express_active', 1);
$this->layout_object->assign('express_label', ucfirst(str_replace('_', ' ', $e['module'])));
$express_provider = $this->payment_provider($e['module']);
$this->layout_object->assign('express_label', $express_provider ? $express_provider->label() : ucfirst(str_replace('_', ' ', $e['module'])));
if (isset($_POST['cashdesk_action']) || isset($_POST['save_address'])) {
return; // Kunde hat das Formular selbst abgeschickt