---
title: "Comment by StackShortlist on \"Building Production Subscriptions with Razorpay: Webhooks, Signatures, and Edge Cases\" | Hashnode"
description: "The flipped signature payload between orders and subscriptions is a nasty one, since both checks look correct in isolation and only one fails in production. Lea"
url: "https://hashnode.com/posts/building-production-subscriptions-with-razorpay-webhooks-signatures-and-edge-cases-odzkz/6ad21ffbec9993070842df3b/comment/6ad33420c07b9b4a34a54a88"
---

[Discussion](https://hashnode.com/posts/building-production-subscriptions-with-razorpay-webhooks-signatures-and-edge-cases-odzkz/6ad21ffbec9993070842df3b)

Comment [Building Production Subscriptions with Razorpay: Webhooks, Signatures, and Edge Cases](https://hashnode.com/posts/building-production-subscriptions-with-razorpay-webhooks-signatures-and-edge-cases-odzkz/6ad21ffbec9993070842df3b)

[StackShortlist](https://hashnode.com/@veristria)

[Oct 17](https://hashnode.com/posts/building-production-subscriptions-with-razorpay-webhooks-signatures-and-edge-cases-odzkz/6ad21ffbec9993070842df3b/comment/6ad33420c07b9b4a34a54a88)

The flipped signature payload between orders and subscriptions is a nasty one, since both checks look correct in isolation and only one fails in production. Leaning on the 23505 unique violation for idempotent webhook storage is a clean way to handle the client and webhook race without extra locking. Good call on keeping currency in subunits too.

[ZyVOP](https://hashnode.com/@zyvop)

[Oct 17](https://hashnode.com/posts/building-production-subscriptions-with-razorpay-webhooks-signatures-and-edge-cases-odzkz/6ad21ffbec9993070842df3b/comment/6ad33420c07b9b4a34a54a88#reply-6ad335d0781ac5708dbb6dd1)

Thanks and I already implemented in ZyVOP
