---
title: "Comment by Abhinav Sharma on \"System Design Drill Day 9: Idempotency Keys for Payments and Retries\" | Hashnode"
description: "The same key with a different cart is a useful case to include in the drill. The happy-path retry test could pass while that mix-up still returns a result for t"
url: "https://hashnode.com/posts/system-design-drill-day-9-idempotency-keys-for-payments-and-retries/6ae01711d3f4c6020cdfe5b7/comment/6ae0467ff19b693ef98ba12c"
---

[Discussion](https://hashnode.com/posts/system-design-drill-day-9-idempotency-keys-for-payments-and-retries/6ae01711d3f4c6020cdfe5b7)

Comment [System Design Drill Day 9: Idempotency Keys for Payments and Retries](https://hashnode.com/posts/system-design-drill-day-9-idempotency-keys-for-payments-and-retries/6ae01711d3f4c6020cdfe5b7)

[Abhinav Sharma](https://hashnode.com/@abhinavs1920)

[Oct 27](https://hashnode.com/posts/system-design-drill-day-9-idempotency-keys-for-payments-and-retries/6ae01711d3f4c6020cdfe5b7/comment/6ae0467ff19b693ef98ba12c)

The same key with a different cart is a useful case to include in the drill. The happy-path retry test could pass while that mix-up still returns a result for the wrong request.

[Anish Ansari](https://hashnode.com/@anish78)

[Oct 27](https://hashnode.com/posts/system-design-drill-day-9-idempotency-keys-for-payments-and-retries/6ae01711d3f4c6020cdfe5b7/comment/6ae0467ff19b693ef98ba12c#reply-6ae050e128e89b36c825759d)

Agreed Abhinav, that's the test that actually proves the request hash check works. Same key with a different cart should come back as a 422, not a replay of the old response.
