Files
ladill-pos/resources/views/partials/payment-checkout-host.blade.php
T
isaacclad 4f97b6ff70
Deploy Ladill POS / deploy (push) Successful in 37s
Present Paystack checkout in a responsive mobile sheet and desktop modal.
Standardize customer-facing Ladill Pay checkout shells across products, open them on all viewports, and escape iframe callbacks back to the product flow.
2026-07-21 16:50:07 +00:00

24 lines
949 B
PHP

{{-- Global host for till-operator Card/MoMo sheets (register + open tickets). --}}
<div x-data
x-init="
const url = @js(session('checkout_url'));
if (url) {
$store.paymentCheckout.open(url);
}
"
class="contents">
<div x-data="{
get showSheet() { return $store.paymentCheckout.isOpen },
set showSheet(v) { if (!v) { $store.paymentCheckout.close() } },
get checkoutUrl() { return $store.paymentCheckout.url },
}">
@include('partials.paystack-sheet', [
'audience' => 'operator',
'sheetTitle' => 'Customer payment',
'sheetSubtitle' => 'Hand this screen to the customer for card or mobile money.',
'sheetFooter' => 'Stay on this screen until the customer finishes. Closing only hides the sheet.',
'iframeTitle' => 'Customer card or mobile money checkout',
])
</div>
</div>