spent way too long fixing this for a client who didnt realize they were paying twice on every subscription renewal. just use
metadata: {original_id: 'sub_123',is_renewal: true}to flag the transaction in your webhook logic so you dont trigger another payout email or duplicate ledger entry. its a
huge time saver if youre scaling.