the story: I was integrated in-app purchase directly with apple, but sometimes i got duplicate transactions, i don't know why so i switched to using RevenueCat. Below is the problem i got when using RevenueCat.


the context: customer 46611 made a purchase with package1 but the webhook was duplicated. the first webhook request was called to handle package1, the second one was called with package4 info
note: the second transaction was created before using RevenueCat SDK. my event type is Non renewing purchase
question: Why do duplicate webhooks happen, and how can I avoid them?