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

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 0046e96a7b
commit 4ab2fcb3ad
7 changed files with 262 additions and 89 deletions
@@ -46,6 +46,9 @@ class DonationController extends Controller
return response()->json([
'checkout_url' => $result['checkout_url'],
'access_code' => $result['access_code'] ?? null,
'public_key' => $result['public_key'] ?? null,
'callback_url' => $result['callback_url'] ?? null,
'callback_url' => $result['callback_url'],
]);
}
@@ -102,6 +102,8 @@ class GiveDonationService
return [
'donation' => $donation->fresh(),
'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,
'callback_url' => $callbackUrl,
];
}