#usamarashad
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. 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.
- usamarashad-idempotency-keys, 13 hours ago, 29 messages
- usamarashad, 14 hours ago, 4 messages
- usamarashad, 15 hours ago, 8 messages
- usamarashad, 17 hours ago, 12 messages
- usamarashad, 19 hours ago, 17 messages
- usamarashad, 22 hours ago, 16 messages
and 6 more
yes it's the latest SDK and it has idempotency support. Just follow https://stripe.com/docs/videos/developer-foundations?video=idempotency-and-retries&lang=node
I saw that video earlier on. The problem I am having is that I don't know how idempotency keys are managed i.e. when to make one, when to change it. In my program all the stripe related functions are placed in a "try catch" block so I don't see why I need idempotency keys, since if an error occurs (including network errors) the "try catch" block will simply fail. Won't it?
To my understanding you would need to generate the key and manually set it inside the request like the video demostrate. When your code has try catch block then yes it will catch when an error occurs, but what if you want to retry? You can retry with the same key and ensure no double charge is made
I guess this blog would be a great start: https://stripe.com/blog/idempotency
Online payment processing for internet businesses. Stripe is a suite of payment APIs that powers commerce for businesses of all sizes.