Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

htchtc052's avatar

Subscriptions management and testing with laravel and stripe dashboard questions

I tested web site subscriptions users through stripe. Website uses php laravel 5.5 with cashier on linux server.

If I perform some actions with users and their subscriptions from my stripe dashboard. Should I, for each such action, process webhook on my server? Without this change will not be reflected in my database? Manual says that for most actions, webhook are not needed. This concerns actions with subscriptions made on the site, and not in a stripe dashboard?

I'm talking about actions such as adding, canceling, deleting subscriptions, adding and removing trial

0 likes
1 reply
janderson's avatar

To me, your question distills down to the Byzantine Generals problem. Short answer, yes, use webhooks.

You can write a lot of the transaction data to your db at the same time as you send it to Stripe, but using webhooks is a good idea for verifying events that are complex (refunds come to mind) have processed correctly. Stripe is pretty good about giving you useful synchronous responses, it depends on your use case, as always. I like using webhooks for everything remotely important that relies on a 3rd party service. It gives more verification that what you thought happened, actually happened. The fact you are dealing with customers and money are good darn reasons to do a little bit of "extra" work to protect your business and your sanity. https://en.wikipedia.org/wiki/Byzantine_fault_tolerance

Please or to participate in this conversation.