#pelf-CLI
1 messages · Page 1 of 1 (latest)
Hi @pearl sorrel! If you want to make small changes to the objects when triggering events with the Stripe CLI, you can use the --override option
https://stripe.com/docs/cli/trigger#trigger-override
For bigger changes, you can use fixtures as explained here
https://stripe.com/docs/cli/fixtures
Thanks. How do I know what the real object looks like? Is there a full blown sample somewhere?
Or alternatively, is there a way to do the equivalent of expand: ['charges.data.balance_transaction'] when generating from the CLI?
Thanks. How do I know what the real object looks like? Is there a full blown sample somewhere?
What do you mean by "real object"? If you want to use the Stripe CLI, you could create a new fixture to create a new SetupIntent + PaymentIntent with the options you need, and it should generate apayment_intent.succeededevent.
Otherwise you could directly create a SetupIntent + PaymentIntent in test mode with the API, and it should also generate apayment_intent.succeededevent.
Ok. I'll play around with the fixtures, maybe that is enough for my needs. Thanks for the help.
One more thing while I have you. When trying to charge customers via ACSS, after I create the PaymentIntent and receive the payment_intent.suceeded webhook, I should still receive a charge.succeeded later on, correct?