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

bwrigley's avatar

Stripe, Cashier & Webhooks

I have Stripe and Cashier all set up to manage subscriptions and so far all good.

I have implemented the webhook callback as per the Cashier documentation, but I'd like to test it to see what actually happens when an ongoing subscription fails/succeeds. The Cashier docs say:

That's it! Failed payments will be captured and handled by the controller. The controller will cancel the customer's subscription when Stripe determines the subscription has failed (normally after three failed payment attempts).

Which is great, but I'd like to actually try it. Stripe allows me to send a test webhook but I can't define the customer/credit card/plan that the test relates to.

Any thoughts on how to test this without waiting a month for a card to expire?

0 likes
1 reply
bwrigley's avatar
bwrigley
OP
Best Answer
Level 5

For anyone else who reads this. At the time of writing Stripe do not offer a way to test certain webhooks without waiting for them to actually trigger.

e.g. a card.expiring webhook won't run until one month before the card expires which means waiting for that date to occur if you want to truly end-to-end test your implementation.

Please or to participate in this conversation.