Deploy Ladill POS / deploy (push) Successful in 40s
Card/MoMo always initializes with the merchant email, and Paystack/Flutterwave/Hubtel open in-page (desktop modal, mobile bottomsheet) instead of a full redirect. Co-authored-by: Cursor <cursoragent@cursor.com>
17 lines
491 B
PHP
17 lines
491 B
PHP
<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')
|
|
</div>
|
|
</div>
|