#IamAnon
1 messages · Page 1 of 1 (latest)
👋 Hi there - can you summarize what you're trying to do here?
I don't have context on the earlier convo, and it'll go faster if you can give a summary
I've configured a webhook that listens to stripe charge.succeeded event. this processes charge data and sends customer custom payment confirmation email. I'm trying to use the same custom email structure when/if the customer requests a duplicate receipt. Current stripe functionality sends receipt to customer email in dashboard customer tab. Ideally this functionality would trigger our webhook but it doesn't appear that can be done. I'm thinking of using the webhook events list as a workaround to this. this would trigger the charge.succeeded event and thus trigger our webhook and send our customized email structure.
can this be done in prod as well?
I need to double check, but it's possible you may run into some issues with this method - I'm not sure if you can resend events that are older than 30 days (let me double check though)
Yeah it looks like you can't resend events that are older than 30 days - so you're method will work for a short time, but isn't a long term solution
any suggestions for a long term solution?
It depends on what kind of solution you need - you could do somethign like listen for charge.updated events and whenever you want to re-send a charge receipt you can update the charge metadata in some way
even if this charge is older than 30 days?
Yeah, you'll get a new charge.updated event each time you update the charge