#muji1162
1 messages · Page 1 of 1 (latest)
Is there any way to change the values of data in the stripe webhook trigger payload
Yes, a couple of options
For example I would like the price id to be a different value, I want it to be the one I actually have in the database
1/ overrides. It's a bit cumbersome, but you can provide options to overwrite certain fixed values for the test requests that are made when trigger is used. it usually requires looking at the underlying fixture to see what's actually happening.
https://stripe.com/docs/cli/trigger#trigger-override
This stackoverflow answer gives a more or less complete example of how to do it: https://stackoverflow.com/a/76147471
2/ Create your own fixture and use that for your own custom test event sequences
Okay, I will look into this, thanks alot!!