#adunsmoor
1 messages · Page 1 of 1 (latest)
Hi there!
These event triggers essentially trigger a single API request or a sequence of requests on Stripe.
the charge.succeeded event is triggered after a single call to create a charge. You can view this in the CLI fixtures file here: https://github.com/stripe/stripe-cli/blob/master/pkg/fixtures/triggers/charge.succeeded.json
Charge IDs are automatically created by Stripe so cannot be added using the add flag
OK. Can I trigger an event on an existing charge? In my example, the payment is from a bank and its status is pending. So I want to trigger succeeded and see how my code reacts.
No, it's not possible to trigger an event on an existing charge.
Testing a charge.succeeded event should get you what you need though
If needed, you can use add to add a customer to the call, or use override to change the amount, source, currency, or description specified in the fixture
OK. You just cannot override the ID?
Correct. The CLI trigger will always create a new Charge object