The most recent test webhook could not be processed
-
Hi all, I have troubles with payments on my website (still in sandbox mode) where the payment process goes smoothly when simulating a payment via the PayPal process, but not being confirmed correctly when using the Stripe process (although it worked a week ago). While trying to pin down the problem, I noticed that the webhook can be tested in the WooCommerce>Settings>Payments>Stripe>Settings Despite checking the settings multiple times, de- and reinstalling the stripe payments for Woocommerce plugin and entering the stripe settings again, I get the following error when I test my stripe webhook (https://diamanti-greece.com/?wc-api=wc_stripe) in the plugin: Warning: The most recent test webhook, received at 2021-12-15 20:32:50 UTC, could not be processed. Reason: The webhook was not signed with the expected signing secret. (No test webhooks have been processed successfully since monitoring began at 2021-12-04 15:22:39 UTC.) I turned on logging and in the fatal errors I found numerous errors similar to this one: 2021-12-15T20:04:14+00:00 CRITICAL Uncaught Stripe\Exception\SignatureVerificationException: No signatures found matching the expected signature for payload in /var/www/wptbox/wp-content/plugins/wprentals-core/resources/stripe-php-master/lib/Exception/SignatureVerificationException.php:28 Stack trace: #0 /var/www/wptbox/wp-content/plugins/wprentals-core/resources/stripe-php-master/lib/WebhookSignature.php(61): Stripe\Exception\SignatureVerificationException::factory() #1 /var/www/wptbox/wp-content/plugins/wprentals-core/resources/stripe-php-master/lib/Webhook.php(29): Stripe\WebhookSignature::verifyHeader() #2 /var/www/wptbox/wp-content/themes/wprentals/stripecharge.php(15): Stripe\Webhook::constructEvent() #3 /var/www/wptbox/wp-includes/template-loader.php(106): include('/var/www/wptbox...') #4 /var/www/wptbox/wp-blog-header.php(19): require_once('/var/www/wptbox...') #5 /var/www/wptbox/index.php(17): require('/var/www/wptbox...') #6 {main} thrown in /var/www/wptbox/wp-content/plugins/wprentals-core/resources/stripe-php-master/lib/Exception/SignatureVerificationException.php on line 28 Regarding the webhook event I test on: I go to my stripe account, it is in test mode, go to the webhook https://diamanti-greece.com/?wc-api=wc_stripe and send a test event (tried different ones, including payment_intend.succeeded. Then I refreshed in my admin panel>WooCommerce>Settings>Payments>Stripe>Settings the account details panel. Other settings I have there are "enable stripe" and "enable test mode", both activated. In "edit account keys">Test I put the information from my stripe test environment (like publishable key = pk_test_51Jo9a3IyY87qnqdtTy8xhQEn6prF1ViDVjnEuc1RmuHvp7zSxph3pQceqnvhkdcIwJRj8NOrgtlpzbdpjDTeO5W60056EqOCUY, etc. also the webhook key for the appropriate webhook). All plugins are up to date as of 15.12.2021 Any clue what I did wrong?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘The most recent test webhook could not be processed’ is closed to new replies.