#challenge_api

1 messages ¡ Page 1 of 1 (latest)

sweet swallowBOT
#

👋 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.

upbeat knot
sullen adder
#

i want to mock a refund that firstly success and after some minutes the status was failed

#

okay, i will check this doc

upbeat knot
#

Yes, I think that's exactly the "asynchorous failure" test card is designed for

sullen adder
#

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)?

upbeat knot
#

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.

sullen adder
#

yup, thank you very much, got it.

upbeat knot
#

If you are using CLI, here's the command

  --amount=2000 \
  --currency=usd \
  --confirm=true \
  --payment_method=pm_card_refundFail```
sullen adder
#

yes, thanks