#balgisa_webhooks
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/1362444500601147756
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
pi_3REtpOJluJ7sxz8c1ntBXgcB
i dont get it why is it stuck because I am in test mode
is the payment method that I used ?
it used to work all the time , my e2e arefailing because I dont recieve a hook refund success from stripe
The refund is in a succeeded state so it did succeed.
What webhook are you expecting here?
You should be listening for charge.refunded... refunds always move into succeeded initially and then they would only move to failed if they fail in which case you would listen for refund.failed: https://docs.stripe.com/refunds#failed-refunds
Ah I'm sorry you are correct, the refund is still pending here.
yes that 's what I am saying
Looking for why that is, give me a moment
thank you
Okay looks like for recently created SEPA Debit payments we do hold the refund for a short time. This is to prevent fraud in live mode. But I do understand this is confusing for test mode and we likely should exempt test mode from this hold here. I'll pass on feedback internally about that.
okay so what should I do ?
What are you trying to test?
You can always mock a response if you don't want to wait here.
Overall you can assume a refund is successful unless you receive a refund.failed
I can't assume if I dont get the answer from Stripe
Then you want to listen for refund.created and refund.updated
how can I kknow if the refund was succesful
And check the status of the refund
Synchronous payment methods, like cards, will show succeeded immediately. Whereas for this situation for SEPA Debit you would see a refund.updated Event once it moves from pending --> succeeded.
I didnt recieve the refund.updated for this payment
That is because it hasn't moved to succeeded yet.
It is in the short-term hold period that I mentioned above.
For instance take a look at pi_3R8vQFJluJ7sxz8c1DTbTe9v
That is a previous example you tested with and you can see the transition there from pending to succeeded
Via refund.updated