#cris-moshtix_code
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/1344589794444972032
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
You can use test card that isn't listed as aysnc refund test card. For example 4242 4242 4242 4242: https://docs.stripe.com/testing#cards
This isn't the answer I was looking for. I need a credit card to test declined refunds, without any previous approval.
Could you please clarify what you mean by "without any previous approval"?
Your online doc states the following:
Asynchronous failure
4000000000005126
The charge succeeds. If you initiate a refund, its status begins as succeeded.
Some time later, its status transitions to failed and sends a refund.failed
This is not what I'd like to test. All I need is a simple refund decline.
There's no synchronous failure for refunds, they're an async process. We mimic that behaviour with those test cards
Async is fine, but why "status begins as succeeded"?! Is this always the case?
Ok, but then I have a logic problem. Your webhook is sending back a refund.update event, which I use to complete the refund on my side. Meaning I finilise the refund on my end.
Receiving a refund.failed later means I have to revert the entire process, which is quite complicated on the platform I'm working on as this affects quite a few records, with other complexities I don't need to mention.
Is there something from the "status begins as succeeded" first webhook which I can detect as a temp status? Like if the refund is pending?
Can you share some example evt_xxx IDs that are causing confusing?
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
This is a sandbox transaction
Not an evt_xxx ID but ok, I can look
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Alright, let me have a look
Thanks
Thanks for the patience, seems this is expected and can occur so unfortunately you'd need to potentially account for a failure post 'success'
Though this can happen, it's obviously poorly handled on your (or the banks) side. It's going to be very hard for us to handle this. Can I assume this is the banks system, and not Stripe, behaviour?
In any case, how come u also don't have just a decline as the very first response? Even a pending, and then decline would work.
You already have:
success
pending > success
how about:
fail
pending > fail
Can I assume this is the banks system, and not Stripe, behaviour?
Not sure I can confirm that, nor why it matters?
If it's on your end, hopefully u can review it
If it's on the banks side, I gues we all have to deal with it
Yeah maybe it's valid feedback for us but I'm sure it was designed this way for a reason
Ok, I'll be in touch with Chris McDonnell to follow up on this as it seems something that requires some deeper discussion before I can proceed with my integration. Thanks for your help.