Webhooks returning 400 for Stripe event IDs not generated by CiviCRM Stripe
CiviCRM 5.26.2 on Drupal 7 with CiviCRM Stripe 6.4.1 and MJWShared 0.8.
I have one stripe account and two web sites that post transactions to it:
- CiviCRM using CiviCRM Stripe 6.4.1 on Drupal
- WooCommerce on Wordpress
Both CiviCRM and WooCommerce have web hooks configured in the Stripe dashboard. When either WooCommerce or CiviCRM create transactions in Stripe, both webhooks are notified.
When CiviCRM creates a transaction in Stripe, the WooCommerce webhook returns a 500 (OK) status. All good.
However, when WooCommerce creates a transaction in Stripe, the CiviCRM Stripe webhook returns a 400 (Bad Request) status. On my site, at the moment, there are far more transactions created by WooCommerce than CiviCRM, so a very large proportion of webhook calls to the CiviCRM Stripe webhook URL are returning 400 statuses. This is causing Stripe to threaten to block the webhook altogether.
Would it be possible to have CiviCRM Stripe return a 500 and just internally ignore webhook calls for event IDs that it does not recognize?