Embed event checkouts and send seller email to gateways.
Deploy Ladill Events / deploy (push) Successful in 1m42s

Ticket/contribution payments open in a desktop modal or mobile sheet, initialize with the organizer email, and break out of the iframe after callback.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-15 08:29:13 +00:00
co-authored by Cursor
parent 6b2d97967a
commit ab192e443f
5 changed files with 90 additions and 37 deletions
@@ -55,15 +55,21 @@ class EventRegistrationController extends Controller
$reference = (string) $request->query('reference', '');
if ($reference === '') {
return redirect()->away(LadillLink::url($shortCode))->with('error', 'Missing payment reference.');
return view('public.payment-return', [
'redirect' => LadillLink::url($shortCode),
]);
}
try {
$registration = $this->eventService->complete($reference);
return redirect()->away($this->confirmedUrl($registration->qrCode, $registration));
return view('public.payment-return', [
'redirect' => $this->confirmedUrl($registration->qrCode, $registration),
]);
} catch (\Throwable $e) {
return redirect()->away(LadillLink::url($shortCode))->with('order_error', 'Payment could not be verified. Reference: ' . $reference);
return view('public.payment-return', [
'redirect' => LadillLink::url($shortCode),
]);
}
}