#balgisa_webhooks

1 messages ¡ Page 1 of 1 (latest)

near briarBOT
#

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

hallow bridge
#

Hello

#

Can you share the PaymentIntent ID here?

mighty hazel
#

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

hallow bridge
#

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

mighty hazel
#

refund.updated

#

i am listening to this event

hallow bridge
#

Ah I'm sorry you are correct, the refund is still pending here.

mighty hazel
#

yes that 's what I am saying

hallow bridge
#

Looking for why that is, give me a moment

mighty hazel
#

thank you

hallow bridge
#

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.

mighty hazel
#

okay so what should I do ?

hallow bridge
#

What are you trying to test?

#

You can always mock a response if you don't want to wait here.

mighty hazel
#

how can i know f the refund was succesful ?

#

charge.refunded is it a good answer ?

hallow bridge
#

Overall you can assume a refund is successful unless you receive a refund.failed

mighty hazel
#

I can't assume if I dont get the answer from Stripe

hallow bridge
#

Then you want to listen for refund.created and refund.updated

mighty hazel
#

how can I kknow if the refund was succesful

hallow bridge
#

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.

mighty hazel
#

I didnt recieve the refund.updated for this payment

hallow bridge
#

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

mighty hazel
#

how long should I wait to get the notification ?

#

hours days ?

hallow bridge
#

Generally hours

#

Sorry to be clear that is for test mode

#

For live mode it takes ~3-4 business days

mighty hazel
#

Okay

#

I will see with my team what can I do