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

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 84cf01c927
commit b737725be4
12 changed files with 284 additions and 89 deletions
@@ -89,6 +89,8 @@ class MerchantSaleService
return [
'order' => $order,
'checkout_url' => (string) ($payOrder['checkout_url'] ?? ''),
'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,
];
}
@@ -179,6 +181,8 @@ class MerchantSaleService
return [
'booking' => $booking,
'checkout_url' => (string) ($payOrder['checkout_url'] ?? ''),
'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,
];
}