#marcossilva-webhooks
1 messages · Page 1 of 1 (latest)
How are you currently testing them? Through the CLI?
If you're using stripe trigger from the CLI to test this out, you can look into the add, remove, and override flags (see https://stripe.com/docs/cli/trigger#trigger-add) to add a bit more customization to the created objects. You can also look into using fixtures (https://stripe.com/docs/cli/fixtures).
If you're not tied to using the CLI, you can also just create these objects through the API and the relevant events will be automatically created/triggerd
Complete reference documentation for the Stripe CLI.
Thanks @runic plover . I will take a look in the options you mentioned
I was trying to test a invoice.upcoming webhook event, and for that reason I need a proper invoice method in order to test it.
Ah gotcha - yeah you'll either want to try implementing that with a fixture or just go through and make the requests with the API
I was using test events from the Dashboard once the CLI doesn't have this invoice.upcoming trigger
There's no way to change the test events you trigger from the dashboard, but again, I'm pretty sure this is something you can implement yourself with fixtures or through API requests