Hi all,
I am struggling with testing that webhooks are executed correctly when the credit card attached to as subscription expires (or becomes invalid for another reason).
Although there has been some discussion on this in this forum (though the last post I could find dates back to 2016) as well as in the Stripe documentation
https://stripe.com/docs/subscriptions/testing#payment-failuresthese are problematic for two reasons:
1) This solution is complex to execute, even as a developer. It is certainly not something that I can expect testers to do nor can it be done using production ready code as expected on a staging environment since it requires setting custom trial end times.
2) Secondly it requires at least a day every time a test is run. This doesn't allow for any reasonably fast development or test cycle or make it possible to test (or remember) a large number of scenarios.
Is there any other means of testing that I am missing. TIt seems that there must be a better way to do this.
--
Marc