Skip to content

Commit b04a447

Browse files
authored
Update VerifyWebhookSignature.php
1 parent d268f2b commit b04a447

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Http/Middleware/VerifyWebhookSignature.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@
44

55
use Closure;
66
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
7+
use Symfony\Component\HttpFoundation\Response;
78

89
class VerifyWebhookSignature
910
{
10-
11-
public function handle($request, Closure $next): \Illuminate\Http\Response
11+
public function handle($request, Closure $next): Response
1212
{
13-
// validate that callback is coming from Paystack
14-
if ((! $request->isMethod('post')) || ! $request->header('x-paystack-signature', null)) {
13+
if ((!$request->isMethod('post')) || !$request->header('x-paystack-signature', null)) {
1514
throw new AccessDeniedHttpException("Invalid Request");
1615
}
1716

0 commit comments

Comments
 (0)