#pabloaraujo_

1 messages · Page 1 of 1 (latest)

minor etherBOT
cold sleet
#

No, that's what the dispute-specific test cards are for. Since there's no real bank involved in test mdoe there is no way to trigger a dispute aside from those test cards.

#

You can use the Stripe CLI to stripe trigger charge.dispute.created but that will use one of those cards under the hood, too

stoic plover
#

my problem is that when I use a dispute card I got both events, payment and dispute almost at the same time and sometimes I got a race condition and when comes the dispute the payment is still processing

#

this is not a thing that happens in production, since the dispute is created time after the payment was performed

cold sleet
#

Right, I see. Unfortunately I don't think there's any way around that at the moment.

#

As a workaround, you could deliberately error on the first attempt of a dispute event delivery

#

then wait for the retry delivery

stoic plover
#

hmmm, good one, it could work

#

but I'll be adding an implementation only for testing

#

anyway, I'll do taht

#

*that

#

thank you @cold sleet