#mandalorianiv_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/1217086036807778426
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- mandalorianiv_best-practices, 22 hours ago, 27 messages
Hello
Hey! Bit of a broad question! Is there a specific use case you're trying to account for?
I'm implementing stripe for flutter but I need to ask a question about webhooks. After payment is success, I would like to close an order
This guide is a good starting point:
https://docs.stripe.com/webhooks/quickstart
in app, if you try to close an order in app after success is received by stripe
it may corrupted
And you can listen to this event:
https://docs.stripe.com/api/events/types#event_types-payment_intent.succeeded
but with webhook we can close an order as soon as payment is success
problem is we need to use a bearer token, in order to close an order but I can not share my bearer token to achieve this, is this secure to share bearer token in stripe's payload=
?
Why you need the bearer token ?
so backend can close the order
You can secure your webhook endpoint using Stripe library:
https://docs.stripe.com/webhooks#verify-official-libraries
Stripe will call your webhook endpoint which is one of your backend endpoints
yes I know we already listening events without problem
Great, then in the webhook endpoint you update the order status
so I can share my bearer token with this method?
That method is in your own system/integration so you can share whatever you want with it
Yes.
we also created a structure that takes care of everything in backend , but if there is a 3D payment, we screw :D. So is there any change that backend can return a redirectURL so I can redirect user to a webview so 3d actions can be done
In some cases you can have the redirect url of a 3ds auth attempts:
https://docs.stripe.com/payments/3d-secure/authentication-flow?platform=web#manual-redirect
but ideally you should handle this in your mobilde SDK
all stripe users that needs to close an order via app uses webhook ?
If we are on the right path, then I will try to find a way to use webhooks anyway
yes webhook is the recommended approach to handle post payments events:
https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=elements#web-post-payment
Happy to help!