#duxsec_best-practices
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/1311054975304073286
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Or would caching or something help? (I use NGINX). Really looking for the best way to go forward
Hi, you're right - that is a bd idea. You would want to store that data on your end and map it in the metadata, https://docs.stripe.com/api/subscriptions/object#subscription_object-metadata.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thank you for the reply. So I would then prefer to keep a model in my own database that syncs via the webhooks. However, what would happen with the webhook from stripe if a customer goes to the stripe checkout page from my website, and I am running an update? Will stripe send it again once I am 'live' again?
Is there also a way to fetch all customers to make sure all data in my own database is correct?
Can you clarify what you mean with ' am running an update? Will stripe send it again once I am 'live' again'?
Of course, If in that timeframe I push an update via CI/CD so my webserver will be offline for let's say a minute or two.
Will stripe re-send the webhook once my webserver is live again? - I could not receive the original webhook from stripe since the webserver was offline
Yes, if the webhook event delivery fails, Stripe attempts to deliver a given event to your webhook endpoint for up to 3 days with an exponential back off. In test mode, Stripe retries three times over a few hours: https://docs.stripe.com/webhooks#retries
Thank you so much
Happy to help!