Fix Mini Pay sheet: same-origin pay URL and visible chrome.
Deploy Ladill Mini / deploy (push) Successful in 57s

Cross-origin fetch to ladl.link had no CORS, so showSheet never ran. Open the sheet immediately and keep Paystack behind the Continue CTA.
This commit is contained in:
isaacclad
2026-07-21 18:46:26 +00:00
parent 50e1b68b5f
commit 42257ab444
6 changed files with 146 additions and 134 deletions
@@ -19,6 +19,13 @@ class RedirectLegacyQrToLadillLink
return $next($request);
}
// Same-origin AJAX from Mini-hosted payment pages (e.g. mini.ladill.com)
// must hit local /q/{code}/pay — redirecting to ladl.link breaks CORS and
// the checkout sheet never opens.
if ($request->ajax() || $request->expectsJson() || $request->wantsJson()) {
return $next($request);
}
return LadillLink::legacyRedirect($request);
}
}