Stop Paystack pre-modal flash on customer checkout.
Deploy Ladill Events / deploy (push) Successful in 1m25s

Use the shared Inline sheet, hold busy until payment UI opens, and avoid locking page scroll during the handoff.
This commit is contained in:
isaacclad
2026-07-24 10:14:40 +00:00
parent 7f65204127
commit ce5ef67a7c
5 changed files with 321 additions and 954 deletions
@@ -59,8 +59,7 @@
this.accessCode = data.access_code || '';
this.publicKey = data.public_key || '';
this.returnUrl = data.callback_url || '';
this.showSheet = true;
this.loading = false;
this.showSheet = true; // loading cleared when payment UI opens (ladill-pay-opened)
} catch (error) {
window.LadillPayCheckout?.cancel?.(); this.errorMsg = 'Network error. Please try again.';
this.loading = false;
File diff suppressed because it is too large Load Diff
+3 -5
View File
@@ -365,8 +365,7 @@
this.accessCode = data.access_code || '';
this.publicKey = data.public_key || '';
this.returnUrl = data.callback_url || '';
this.showSheet = true;
this.loading = false;
this.showSheet = true; // loading cleared when payment UI opens (ladill-pay-opened)
} catch(e) {
window.LadillPayCheckout?.cancel?.(); this.errorMsg = 'Network error. Please try again.';
this.loading = false;
@@ -687,7 +686,7 @@
this.checkoutUrl = data.checkout_url;
this.accessCode = data.access_code || '';
this.publicKey = data.public_key || '';
this.returnUrl = data.callback_url || ''; this.showSheet = true; this.loading = false;
this.returnUrl = data.callback_url || ''; this.showSheet = true; // loading cleared when payment UI opens (ladill-pay-opened)
return;
}
if (data.success_url) { window.location.href = data.success_url; return; }
@@ -1273,8 +1272,7 @@
this.accessCode = data.access_code || '';
this.publicKey = data.public_key || '';
this.returnUrl = data.callback_url || '';
this.showSheet = true;
this.loading = false;
this.showSheet = true; // loading cleared when payment UI opens (ladill-pay-opened)
} catch(e) {
window.LadillPayCheckout?.cancel?.(); this.errorMsg = 'Network error. Please try again.';
this.loading = false;