#adunsmoor

1 messages · Page 1 of 1 (latest)

halcyon mossBOT
mossy trench
#

Hi there!

#

These event triggers essentially trigger a single API request or a sequence of requests on Stripe.

#

Charge IDs are automatically created by Stripe so cannot be added using the add flag

white yew
#

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.

mossy trench
#

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

white yew
#

OK. You just cannot override the ID?

mossy trench
#

Correct. The CLI trigger will always create a new Charge object