Skip to content

Commit

Permalink
Mark free payments as payed during registration
Browse files Browse the repository at this point in the history
  • Loading branch information
blackshadev committed Oct 29, 2023
1 parent 53cb466 commit 5d12f47
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/Http/Controllers/RegistrationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,12 @@ public function storeParticipant(NewParticipantRequest $request)
->existing(false);
$iDeal = $request->iDeal;

if ($payment->isFree()) {
$camp->participants()->updateExistingPivot($participant->id, [
'datum_betaling' => Carbon::now(),
]);
}

// Send update to office committee
Mail::send(new NewParticipantNotification(
$participant,
Expand Down

0 comments on commit 5d12f47

Please sign in to comment.