Payment methode now selectable

This commit is contained in:
2026-08-05 16:53:35 +02:00
parent 7919d04dc3
commit daff70b4fe
22 changed files with 705 additions and 81 deletions
+11 -1
View File
@@ -44,7 +44,7 @@ class PaymentMethod extends CommonModel
}
/**
* Options-Schema für einen Slug.
* Admin-Options-Schema für einen Slug.
*
* @return array<int, array{name: string, label: string, type: string, required: bool}>
*/
@@ -53,6 +53,16 @@ class PaymentMethod extends CommonModel
return EventPaymentModuleRegistry::forSlug($slug)?->getOptions() ?? [];
}
/**
* Teilnehmer-Eingabe-Schema für einen Slug (payer-seitig).
*
* @return array<int, array{name: string, label: string, type: string, required: bool}>
*/
public static function participantOptionsFor(string $slug): array
{
return EventPaymentModuleRegistry::forSlug($slug)?->getParticipantOptions() ?? [];
}
/**
* Namen aller Pflicht-Optionen eines Slugs.
*