Make Mini Pay never fail silently.
Deploy Ladill Mini / deploy (push) Successful in 48s

Use form POST fallback, re-register Alpine Pay handler in Blade, timeout fetch, and always full-page navigate for MoMo so the waiting page is not blank in the Paystack iframe.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-13 23:04:28 +00:00
co-authored by Cursor
parent 53a83b84c5
commit a2bf4f435f
3 changed files with 158 additions and 43 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ class PayClient
/** @param array<string,mixed> $payload */
public function createCheckout(array $payload): array
{
$res = Http::withToken($this->token())->acceptJson()->timeout(15)->post($this->base().'/checkouts', $payload);
$res = Http::withToken($this->token())->acceptJson()->timeout(45)->post($this->base().'/checkouts', $payload);
return $this->jsonOrFail($res, 'Could not start checkout. Please try again.');
}