Open Paystack from the Pay click gesture, not after fetch.
Deploy Ladill Merchant / deploy (push) Successful in 56s
Deploy Ladill Merchant / deploy (push) Successful in 56s
Paystack blocks iframes, so checkout uses a popup beside the sheet/modal chrome. Opening about:blank on the user tap keeps that window from being blocked after the async initiate response.
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
if (this.method !== 'paystack') return;
|
||||
|
||||
event.preventDefault();
|
||||
this.loading = true;
|
||||
this.loading = true; window.LadillPayCheckout?.prepare?.();
|
||||
this.errorMsg = '';
|
||||
|
||||
try {
|
||||
@@ -59,7 +59,7 @@
|
||||
this.showSheet = true;
|
||||
this.loading = false;
|
||||
} catch (error) {
|
||||
this.errorMsg = 'Network error. Please try again.';
|
||||
window.LadillPayCheckout?.cancel?.(); this.errorMsg = 'Network error. Please try again.';
|
||||
this.loading = false;
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user