#alexanderg-idempotent

1 messages · Page 1 of 1 (latest)

short talon
#

Hey! Can you elaborate on the flag? Not aware of anything like that

maiden ginkgo
#

I basically need to know if a call is a replay of a previous call

short talon
#

Ah, got it. Yep it'll be in the HTTP headers of the API response. Not in the body

maiden ginkgo
#

So I need to parse the HTTP, there is no Stripe Api getter to do this?

short talon
#

You'd parse the API response, which you'd be doing anyway in most instances

#

Are you using one of our server libraries?

maiden ginkgo
#

Yes, I use PaymentIntent object

#

from Stripe API

short talon
#

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

Stripe has official libraries for different programming languages and mobile platforms. There are also many more third-party libraries and plugins created by the Stripe community.

maiden ginkgo
#

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.

short talon
#

Yep, sounds right!

maiden ginkgo
#

Thank you!