#malware_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/1309122035766657064
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi! I think the best solution is to write some one-off code to just retrieve it from the API (https://docs.stripe.com/api/events/retrieve) and pass that response directly to the part of your code that would handle events , bypassing the webhook part.
otherwise https://docs.stripe.com/cli/events/resend can help but has caveats and you'd have to have stripe-cli installed, and so on
Oh okay... I was not aware of that.
So after we consume all the retries for an event, there is still a way to trigger it again using either stripe-cli or a script?
I need this for future charges because we have this issue sometimes.
hmm. We retry over 72 hours, it would be unusual that you have a server that is consistently down for that long.
If you do expect this to be something that happens, I do think writing some real code that retrieves/pulls the event and invokes your handling code directly is the best bet, that way you can have some code-reviewed and versioned "scripts"/tool to use. Like something that calls the Event List API filtered by delivery_success (https://docs.stripe.com/api/events/list#list_events-delivery_success) and replays them to your code.
or yes the resend action in stripe-cli can also resend events
The issue is people use various unicode formats in their names and we fail save those charges in the database. While we strip clean the first charge creation data request but Stripe in webhooks sends the names with those unicode characters. We cater for some but don't allow some formats because of security. Otherwise all is working good.