Re:Stripe charged me $714 for duplicate transactions within ...
by leto_ii on Wednesday February 12, 2020 @05:08PM
(#22313346)
Yeah, but that should only prevent duplicates due to technical errors, but not duplicates because the person actually made a number of distinct purchases my mistake.
Take a look also at edwinwee's answer below.
Re:Stripe charged me $714 for duplicate transactions within ...
by celticmusic on Wednesday February 12, 2020 @05:21PM
(#22313449)
What you just said is 100% incorrect and I strongly recommend you read back over what I wrote and think about it a bit more.
Stripe will not allow an idempotent key to be reused w/i 24 hours.
You can use anything for the idempotent key and Stripe will actually track that along with the charge object so you can use something more meaningful if it's useful for your business.
edit: and if you generate a key that's more meaningful I'd be careful about leaking important/private data.