$payload */ public function createCheckout(array $payload): array { $res = Http::withToken($this->token())->acceptJson()->timeout(15)->post($this->base().'/checkouts', $payload); $res->throw(); return (array) $res->json(); } public function verify(string $reference): array { $res = Http::withToken($this->token())->acceptJson()->timeout(15)->post($this->base().'/checkouts/verify', [ 'reference' => $reference, ]); $res->throw(); return (array) $res->json(); } public function show(string $reference): array { $res = Http::withToken($this->token())->acceptJson()->timeout(10)->get($this->base().'/orders/'.$reference); $res->throw(); return (array) $res->json(); } }