#emmacai84-idempotency

1 messages · Page 1 of 1 (latest)

vernal bone
#

hello, so a few things

#

I want to check if it is possible or not for 2 charges with the same idempotency key to go through at the same time.
this would not be possible
a/ if you have 2 requests using the same idempotency key at the same time, the first one will succeed, the second one will error out with idempotency key in use since request-1 hasn't completed yet

secondly, if you make the requests serially, request-1 will create the actual Charge, request-2 will not create a real Charge, it will "replay" the response from request-1

so there will not be a double Charge if you're using idempotency properly (i.e. same idempotency key, same request params)