Return Meet attendees to join flow after event registration.
Deploy Ladill Events / deploy (push) Successful in 47s
Deploy Ladill Events / deploy (push) Successful in 47s
Add badge verification API, preserve meet_return through registration and payment, and link confirmation back to Meet with badge auto-login. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -98,6 +98,9 @@ class EventRegistrationService
|
||||
}
|
||||
$amountMinor = (int) round($priceGhs * 100);
|
||||
|
||||
$meetReturn = trim((string) ($data['meet_return'] ?? ''));
|
||||
$metadata = $meetReturn !== '' ? ['meet_return' => $meetReturn] : null;
|
||||
|
||||
$registration = QrEventRegistration::create([
|
||||
'qr_code_id' => $qrCode->id,
|
||||
'user_id' => $qrCode->user_id,
|
||||
@@ -111,6 +114,7 @@ class EventRegistrationService
|
||||
'attendee_phone' => trim((string) ($data['attendee_phone'] ?? '')) ?: null,
|
||||
'badge_fields' => $badgeFields ?: null,
|
||||
'status' => $amountMinor > 0 ? QrEventRegistration::STATUS_PENDING : QrEventRegistration::STATUS_CONFIRMED,
|
||||
'metadata' => $metadata,
|
||||
]);
|
||||
|
||||
if ($amountMinor === 0) {
|
||||
|
||||
Reference in New Issue
Block a user