#Zebert-payment
1 messages · Page 1 of 1 (latest)
Can you be more specific about what you're struggling with? Are you seeing errors? what guide are you following?
I saw a video on a livestream, but I don't know how to notify the client after my webhook was executed with the result payment payload.
What specifically was the video showing you how to implement?
Payment Element? Checkout? something else?
payment
Is that, but I don't know how to update the frontend when something comes.
Or well, the best way to do it.
Hello! Typically webhooks are not directly related to anything on the frontend. They're designed to notify your server directly of events you're interested in so you can fulfill your orders, make database updates, and things like that.
Can you tell me more about what you're trying to do? The more detail you can provide the better.
I want to notify the frontend if a webhook that is related to user. But idk the best way to do it, ik that it might be great to use EventSource but I am not sure.
For example this one, when I receive the webhook I want to tell the user something like 'Your payment has passed', or something similar
Tell them how? Send an email?
Or are you asking how to notify your customer a payment they make on your website is successful when they're on your site making the payment?
If it's the latter that typically doesn't involve webhooks, you would use client-side code to handle that. However, it's hard to say without more details about what you're building.
For example I receive a webhook, then I want to send a notification to the frontend and there I have a toast, so I want to show a toast telling the user something important happen.
Ah, okay, so that would be something you need to implement on your end. We send the event to your webhook endpoint URL, and from there it's up to you to implement what you're talking about using your own toast notification system.
I'm happy to help with the Stripe parts of that if you have questions!
Not a bother at all! If you need anything else just let us know!
You can ask if anyone has built a similar system in #841573134531821615 and see if anyone has pointers for you there (tell them I sent you). 🙂