Undefined type SignatureVerification in StripeWebhookController

Created on 6 March 2023, almost 2 years ago
Updated 29 November 2024, about 2 months ago

Problem/Motivation

    catch (SignatureVerification $e) {
      return new Response('Invalid signature', Response::HTTP_BAD_REQUEST);
    }

Proposed resolution

It should be

use Stripe\Exception\SignatureVerificationException;
...
    catch (SignatureVerificationException $e) {
      return new Response('Invalid signature', Response::HTTP_BAD_REQUEST);
    }

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024