#Chhay Toch-cli
1 messages · Page 1 of 1 (latest)
👋 happy to help
but I don't quite get what you're trying to achieve. could you please elaborate more?
currently, I am working on webhook
and listen the invoice.payment_failed event
I trigger stripe event while the CLI
stripe trigger invoice.payment_failed --add invoice:customer=cus_Ld3NRV9EOQZubz
but seems like the customer ID that i attached is not working
the invoice.payment_failed fixture would create a new customer for you
so it's not possible to pass the customer id for it
you could either write your own fixtures and run them
or you could trigger the event by creating the invoice from the dashboard
this is the fixture you're trying to use https://github.com/stripe/stripe-cli/blob/master/pkg/fixtures/triggers/invoice.payment_failed.json
and this is how you can create and use fixtures https://stripe.com/docs/cli/fixtures