{{-- Payment checkout shell. Audiences: - buyer (default): public ticket buyers, donors, shoppers — self-serve checkout - operator: signed-in staff flows such as wallet top-up Optional overrides: $sheetTitle, $sheetSubtitle, $sheetFooter, $sheetAria, $iframeTitle Requires Alpine ancestor with: - showSheet (bool) - checkoutUrl (string) — authorization / waiting URL - accessCode (string, optional) — Paystack initialize access_code for Inline - publicKey (string, optional) - returnUrl (string, optional) — where to go after Inline onSuccess (?reference=) checkout.paystack.com cannot be iframed (X-Frame-Options: SAMEORIGIN). Paystack Inline owns its secure payment popup. We do not place a Ladill loading sheet in front of it: that created a needless first screen before the checkout appeared. The Ladill bottomsheet/modal is reserved for same-origin waiting pages (such as MoMo) and recoverable errors. --}} @php $audience = $audience ?? 'buyer'; $defaults = match ($audience) { 'operator' => [ 'title' => 'Complete payment', 'subtitle' => null, 'aria' => 'Complete payment', 'iframe' => 'Payment checkout', 'footer' => null, ], default => [ 'title' => 'Complete your payment', 'subtitle' => 'Pay securely. You\'ll get a confirmation when it succeeds.', 'aria' => 'Complete your payment', 'iframe' => 'Secure payment checkout', 'footer' => 'Your payment is processed securely. Do not close this window until finished.', ], }; $sheetTitle = $sheetTitle ?? $defaults['title']; $sheetSubtitle = $sheetSubtitle ?? $defaults['subtitle']; $sheetAria = $sheetAria ?? $defaults['aria']; $iframeTitle = $iframeTitle ?? $defaults['iframe']; $sheetFooter = $sheetFooter ?? $defaults['footer']; @endphp @once @endonce