aimanecouissi / module-stripe-webhook-signature-bypass
Allow local testing of Stripe webhooks by bypassing signature verification
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 1
Open Issues: 0
Type:magento2-module
pkg:composer/aimanecouissi/module-stripe-webhook-signature-bypass
Requires
- php: ~8.3.0||~8.4.0
- magento/framework: 103.0.*
- stripe/module-payments: 4.4.*
README
Allows local testing of Stripe webhooks by bypassing signature verification, so you can replay real webhook payloads against your Magento endpoint when Stripe can’t reach your machine. Development use only — do not enable in production.
Installation
composer require --dev aimanecouissi/module-stripe-webhook-signature-bypass bin/magento module:enable AimaneCouissi_StripeWebhookSignatureBypass bin/magento setup:upgrade bin/magento cache:flush
Usage
Make a test payment in Magento. In the Stripe Dashboard, open Developers → Webhooks, select your Magento endpoint (typically /stripe/webhooks
), and locate the relevant Event delivery. Copy the request JSON, then POST it to your local webhook endpoint (e.g., https://your.local/stripe/webhooks
) using Postman or curl
with Content-Type: application/json
. With this module enabled, the request is accepted even without the Stripe-Signature
header and the event is processed as if it arrived from Stripe.
Uninstall
bin/magento module:disable AimaneCouissi_StripeWebhookSignatureBypass composer remove --dev aimanecouissi/module-stripe-webhook-signature-bypass bin/magento setup:upgrade bin/magento cache:flush