#hoyong_webhooks

1 messages ¡ Page 1 of 1 (latest)

plain condorBOT
#

👋 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/1234592996817633311

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

hazy domeBOT
still vale
#

Hello Charge objects refer to any charge from any payment method, so charge.regunded can work here. If you try this in test mode you should be able to see what that event looks like.
Do you know what doc you saw that we say that Charges only refer to card charges? I will make sure we fix that doc

woven monolith
#

I see. So, when payment_intent gets refunded through the Stripe dashboard, it will still fire that charge.refunded event?

#

it isn't really clear that charge.rufunded can be used for payment_intent

#

having payment_intent specific evnets and charge specific events made me a bit confused that they are related

still vale
#

Yep, payment intents create charges. So events will often get triggered for both. Here only the charge event exists, but it will be created because the refund is being created on the payment intent's underlying charge

woven monolith
#

That's good to know. Thanks so much.

#

I have another webhook related question. Can a payment_intent be canceled through the dashboard? When I checked, it's not possible.

#

And this is a dashboard related question, but do you support creating a custom link for an existing payment_intent? I also tried, but I can only create a payment_link when I create a payment_intent through the dashboard.

still vale
#

I am 99% sure you can cancel via the dashboard but am not immediately seeing the button. I will confirm one way or the other and will get back to you

#

Unfortunately we don't support creating a payment link or checkout session for an existing PI

woven monolith
woven monolith
still vale
#

Not for the existing PI, but you can definitely cancel it via the API and then create a Checkout Session that makes a PI for the same amount

woven monolith
still vale
#

Just one or the other should work. Both events will always get created for the same payment succeeding, so you only need to subscribe to one for your server to get the signal that the payment has succeeded

woven monolith
#

Cool. That's good to know.

#

Do you have the answer for canceling an existing PI through the dashboard?

still vale
#

🤷

#

So it depends on your usecase

#

I am honestly a bit surprised by that but it is good to have a definitive answer from the docs

woven monolith
#

Yeah. That's good to know. Less thing to write in the code base haha.

#

Thanks for checking.

#

I really appreciate for the answers! Thanks a lot.

still vale
#

Of course, happy to help!