Skip to content

Commit 3211e28

Browse files
committed
fixed old PaystackConfig path
1 parent cb6d65d commit 3211e28

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Http/Middleware/ValidatePaystackHook.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44

55
use Closure;
66
use Illuminate\Http\Request;
7-
use Myckhel\Paystack\Traits\PaystackConfig;
7+
use Myckhel\Paystack\PaystackConfig;
88

99
class ValidatePaystackHook
1010
{
11-
use PaystackConfig;
1211
/**
1312
* Handle an incoming request.
1413
*
@@ -23,7 +22,7 @@ public function handle(Request $request, Closure $next)
2322
abort(403, 'Signature header not found');
2423
}
2524

26-
$signingSecret = $this->config('secret_key');
25+
$signingSecret = PaystackConfig::config('secret_key');
2726

2827
if (empty($signingSecret)) {
2928
abort(403, 'Signing Secret Not Set');

0 commit comments

Comments
 (0)