#usamarashad

1 messages · Page 1 of 1 (latest)

tacit wolfBOT
#

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.

leaden atlas
hasty zenith
#

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?

leaden atlas
#

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