#alexanderg-idempotent
1 messages · Page 1 of 1 (latest)
Please see the very bottom of this page https://stripe.com/docs/idempotency
I basically need to know if a call is a replay of a previous call
Ah, got it. Yep it'll be in the HTTP headers of the API response. Not in the body
So I need to parse the HTTP, there is no Stripe Api getter to do this?
You'd parse the API response, which you'd be doing anyway in most instances
Are you using one of our server libraries?
I mean, how are you making API calls? Which language are you using and are you using the corresponding library: https://stripe.com/docs/libraries
Java, so I just looked at the object and plan to do this pi.getLastResponse().headers().map().get("idempotent-replayed").get(0)
I think this is it.
Yep, sounds right!
Thank you!