Файловый менеджер - Редактировать - /home/clickysoft/public_html/somni.clickysoft.net/vendor/laravel/cashier/src/Http/Middleware/VerifyWebhookSignature.php
Назад
<?php namespace Laravel\Cashier\Http\Middleware; use Closure; use Stripe\Exception\SignatureVerificationException; use Stripe\WebhookSignature; use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException; class VerifyWebhookSignature { /** * Handle the incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return \Illuminate\Http\Response * * @throws \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException */ public function handle($request, Closure $next) { try { WebhookSignature::verifyHeader( $request->getContent(), $request->header('Stripe-Signature'), config('cashier.webhook.secret'), config('cashier.webhook.tolerance') ); } catch (SignatureVerificationException $exception) { throw new AccessDeniedHttpException($exception->getMessage(), $exception); } return $next($request); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка