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:
@@ -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.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user