Restore Paystack Inline in-page sheet/modal; stop separate-browser checkout.
Deploy Ladill Events / deploy (push) Successful in 1m6s

Pass access_code through pay responses and launch PaystackPop from the shared sheet instead of window.open.
This commit is contained in:
isaacclad
2026-07-21 19:12:24 +00:00
parent 14c17fffa7
commit 837c249634
6 changed files with 243 additions and 88 deletions
@@ -45,6 +45,9 @@ class EventRegistrationController extends Controller
return response()->json([
'paid' => $result['paid'],
'checkout_url' => $result['checkout_url'],
'access_code' => $result['access_code'] ?? null,
'public_key' => $result['public_key'] ?? null,
'callback_url' => $result['callback_url'] ?? null,
'badge_code' => $result['registration']->badge_code,
'success_url' => $this->confirmedUrl($qrCode, $result['registration'], $request->input('meet_return')),
]);
@@ -178,6 +178,8 @@ class EventRegistrationService
'registration' => $registration->fresh(),
'paid' => true,
'checkout_url' => $checkoutUrl,
'access_code' => isset($payOrder['access_code']) ? (string) $payOrder['access_code'] : null,
'public_key' => isset($payOrder['public_key']) ? (string) $payOrder['public_key'] : null,
];
}