From 6a4dfd4c2d42b0f35e9a6644e3ae76bb59b1c1e9 Mon Sep 17 00:00:00 2001 From: isaacclad Date: Thu, 23 Jul 2026 22:37:27 +0000 Subject: [PATCH] Force Paystack checkout into the sheet mount on first insert. Redirect first iframe append into the Ladill sheet body and keep absolute fill styles applied so checkout is not a second full-screen modal. --- .../views/partials/paystack-sheet.blade.php | 1064 +++++++++++++++-- 1 file changed, 963 insertions(+), 101 deletions(-) diff --git a/resources/views/partials/paystack-sheet.blade.php b/resources/views/partials/paystack-sheet.blade.php index 4aee647..3c63f5e 100644 --- a/resources/views/partials/paystack-sheet.blade.php +++ b/resources/views/partials/paystack-sheet.blade.php @@ -13,7 +13,7 @@ - publicKey (string, optional) — unused by resumeTransaction; kept for callers - returnUrl (string, optional) — where to go after Inline onSuccess (?reference=) - Paystack checkout.paystack.com cannot be iframed (X-Frame-Options: SAMEORIGIN). + checkout.paystack.com cannot be iframed (X-Frame-Options: SAMEORIGIN). Primary path: Paystack Inline JS (PaystackPop.resumeTransaction) — in-page overlay, not a separate browser tab. Same-origin URLs (e.g. MoMo waiting) still use iframe. --}} @@ -44,7 +44,8 @@ @once @endonce +{{-- Keep Paystack checkout inside the Ladill sheet loading area. --}} +@once('ladill-paystack-contain-css') + +@endonce