solidusio / solidus_stripe

💳 Integrate Solidus with Stripe
https://stripe.com
BSD 3-Clause "New" or "Revised" License
36 stars 62 forks source link

Support idempotent requests #282

Open waiting-for-dev opened 1 year ago

waiting-for-dev commented 1 year ago

Desired Behavior

Stripe API supports sending idempotent requests to avoid sending the same request twice in case of connectivity errors or users double-clicking by error.

It would be nice to support the feature from solidus_stripe.

(Optional) Additional notes

That would probably require an upstream change or creating a custom middleware, as the idempotency key is sent as a request header.