Stripe API Keeps sending requests to Webhook end-point

91 views Asked by At

My Stack: laravel v10.14 PHP 8.2.7 Stripe API 2020-08-27 Laravel Cashier v14.7 spatie/laravel-stripe-webhooks 3.2

I have connected my Laravel application to Stripe via Cashier and by using the Spatie Webhook library, I am listening to some Stripe events. After I updated from Laravel 9 to 10, Whenever I update a subscription, Stripe keeps sending me these three events every second, even though the response code is 200. And it crashes the app and fills the database.

Here is an example log: Stripe CLI Log

Is there anything I can do to stop this? Or what might have caused this?

UPDATE: In the job that was handling the webhook request, I was using the swap() method from Cashier. The Stripe would swap the plan and send another POST request which would create some sort of loop.

0

There are 0 answers