Skip to content

Commit d268f2b

Browse files
Tim OladoyinboTim Oladoyinbo
Tim Oladoyinbo
authored and
Tim Oladoyinbo
committed
format fixes
1 parent c5e8a78 commit d268f2b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Http/Middleware/VerifyWebhookSignature.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ public function handle($request, Closure $next): \Illuminate\Http\Response
1717

1818
$input = $request->getContent();
1919

20-
$paystack_key = config('paystackwebhooks.secret', env('PAYSTACK_SECRET'));
21-
if ($request->header('x-paystack-signature') !== hash_hmac('sha512', $input, $paystack_key)) {
20+
$paystackKey = config('paystackwebhooks.secret', env('PAYSTACK_SECRET'));
21+
22+
if ($request->header('x-paystack-signature') !== hash_hmac('sha512', $input, $paystackKey)) {
2223
throw new AccessDeniedHttpException("Access Denied");
2324
}
2425

0 commit comments

Comments
 (0)