Basic implementation of payment methods

This commit is contained in:
2026-07-28 16:09:38 +02:00
parent 6c9281516e
commit ab3d526217
13 changed files with 34 additions and 15 deletions
@@ -21,7 +21,6 @@ class SignUpCommand {
};
$participantAge = new Age($this->request->birthday);
$paymentMethod = $this->request->event->paymentMethods()->where('active', true)->first();
$response->participant = $this->request->event->participants()->create(
[
@@ -62,7 +61,7 @@ class SignUpCommand {
'notes' => $this->request->notes,
'amount' => $this->request->amount,
'payment_purpose' => $this->request->event->name . ' - Beitrag ' . $this->request->firstname . ' ' . $this->request->lastname,
'payment_method' => $paymentMethod?->slug, // available_payment_methods.slug === payment_methods.slug
'payment_method' => $this->request->paymentMethod,
'efz_status' => $participantAge->isfullAged() ? EfzStatus::EFZ_STATUS_NOT_CHECKED : EfzStatus::EFZ_STATUS_NOT_REQUIRED,
]
);