#challenge_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1348914240383090739
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there, you can use the "asynchorous failure" test card to trigger a failed refund https://docs.stripe.com/testing#refunds
i want to mock a refund that firstly success and after some minutes the status was failed
okay, i will check this doc
Yes, I think that's exactly the "asynchorous failure" test card is designed for
okay, i have read this doc. my needs was i apply a refund and it's status was success at first. And after sometime. the status of the refund was failed by some other reason.
maybe it can be called refund reversed.
success at first response, and then failed
it seems this card can meet my needs. ok thanks for your reply. let's give a try
b.t.w is there a command that can supported this (e.g stripe trigger command)?
refund.failed isn't an event that stripe trigger supports
Alternatively, you can creat and confirm a PaymentIntent with pm_card_refundFail payment method. If you are looking for a way to programmatically trigger the refund.failed event.
yup, thank you very much, got it.
If you are using CLI, here's the command
--amount=2000 \
--currency=usd \
--confirm=true \
--payment_method=pm_card_refundFail```
yes, thanks