---
title: "Comment by Parminder singh on \"Payment failed but money deducted: how idempotency keys stop double charges\" | Hashnode"
description: "Great point, Paul Hartness . Renewals are the harder version of this, because nobody is sitting there to tap Pay again. I'd model it the way Stripe does: a past"
url: "https://hashnode.com/posts/payment-failed-money-deducted-idempotency/6af2d4383c36fe3908d4fd5a/comment/6af6f673f758036b040a026f"
---

[Discussion](https://hashnode.com/posts/payment-failed-money-deducted-idempotency/6af2d4383c36fe3908d4fd5a)

Comment [Payment failed but money deducted: how idempotency keys stop double charges](https://hashnode.com/posts/payment-failed-money-deducted-idempotency/6af2d4383c36fe3908d4fd5a)

[Parminder singh](https://hashnode.com/@param007)

[Nov 13](https://hashnode.com/posts/payment-failed-money-deducted-idempotency/6af2d4383c36fe3908d4fd5a/comment/6af6f673f758036b040a026f)

Great point, [Paul Hartness](https://hashnode.com/@retryfix "Paul Hartness") . Renewals are the harder version of this, because nobody is sitting there to tap Pay again.

I'd model it the way Stripe does: a past\_due state between active and canceled. Access continues for a grace period while the gateway retries. When the last retry fails, cut access and tell the user to pay to continue banner or something..

Might do a short on this. Thanks for adding it!

How have you handled it?

[Paul Hartness](https://hashnode.com/@retryfix)

[Nov 16](https://hashnode.com/posts/payment-failed-money-deducted-idempotency/6af2d4383c36fe3908d4fd5a/comment/6af6f673f758036b040a026f#reply-6afaee5f10da3aa3f62a098f)

I'd do it pretty much that way: access stays on while a retry is actually scheduled, and the notice gives the date it ends. One wrinkle worth putting in the short: in Stripe, past\_due on its own doesn't promise another charge, so I'd key the banner off whether a next attempt exists rather than the status alone. Thanks for writing it up.
