Basic implementation of payment methods
This commit is contained in:
@@ -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,
|
||||
]
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user