stripe / stripe-cli

A command-line tool for Stripe
https://stripe.com/docs/stripe-cli
Apache License 2.0
1.57k stars 362 forks source link

Ability to define what charge a dispute is created when triggering a charge.dispute.created event. #1068

Open that-guy-iain opened 1 year ago

that-guy-iain commented 1 year ago

Problem

Trigger a dispute for a specific charge or customer.

If I define a customer I get an error that the source tok_createDisputeInquiry does not exist. If I define a source that does exist it'll just create a charge that doesn't get a dispute created.

What I'm trying to do is to test a workflow for when a dispute is created and what happens to the customer after the dispute is created. A dispute with no customer info doesn't help.

Feature

The ability trigger a dispute for a specific charge or customer.

Examples

stripe trigger charge.dispute.created --override charge:customer=cus_NWumfBHklanbrA to create a dispute for that customer.