Class "Drupal\commerce_stripe_webhook_event\WebhookEvent" not found

Created on 14 October 2024, about 1 month ago

Problem/Motivation

Webhooks from Stripe no longer work unless you have the event logging module enabled. With the change from #3401145, there was code put in to check if the module existed before logging the events, however, there's a number of calls to updateWebhookEventStatus that passes a constant from the event class that only exists in the submodule. These calls aren't gated so the webhooks fail.

Steps to reproduce

1. Setup webhooks in Stripe
2. Don't enable the commerce_stripe_webhook_event module
3. Obvserve the errors in Stripe

Proposed resolution

Ensure all code in the processWebHook method is gated around the module being installed.

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ› Bug report
Status

Active

Version

1.0

Component

Payment Element

Created by

πŸ‡¬πŸ‡§United Kingdom mjpa

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024