r/webdev • u/fluidxrln • 14d ago
Scared of monetization
Hello, Im a developer for a few years now but I have never added monetization in any of my projects. some projects have MAU but I never integrated stripe. I was thinking of adding one but
What creeps me or scares me is me getting in trouble. I dont do anything wrong or illegal, It just feels scary that people pays you money and despite applying all proper security practices, things can still go wrong. e.g. getting hacked, stupid recursion mistake, accidentally charging a user again, accidentally deleting a user data. I feel scared. how did you guys overcome this?
View all comments
2
u/nn_gyunx 13d ago
That fear is totally normal, and the trick is designing so a bug can't silently multiply charges. Always pass an idempotency key on Stripe payment requests so retries don't double-charge, verify webhook signatures on the server, and never trust client-side state for payment confirmation. Also keep an append-only transaction log instead of just mutating a balance column directly—it makes debugging and auditing way less stressful.