isValidWebhook() needs to provide the api_keyto Event::retrieve

Created on 9 November 2021, almost 4 years ago
Updated 13 October 2025, 11 days ago

Problem/Motivation

At the moment I'm getting 500 errors when trying to test webhooks with the error Stripe\Exception\AuthenticationException: No API key provided. (HINT: set your API key using "Stripe::setApiKey(<API-KEY>)". You can generate API keys from the Stripe web interface. See https://stripe.com/api for details, or email support@stripe.com if you have any questions. in Stripe\ApiRequestor->_prepareRequest() (line 370 of /var/www/html/drupal/vendor/stripe/stripe-php/lib/ApiRequestor.php).. It looks like a simple solution is just to provide the api key directly from StripeApiWebhook::isValidWebhook. Attaching a patch for this shortly.

πŸ› Bug report
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mrweiner

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.

No activities found.

Production build 0.71.5 2024