How payguard-check works
Most payment bugs in small stores are not hacks. They are shortcuts. The price comes from the cart in the browser, so a buyer edits it to 1. The webhook marks an order as paid without checking it really came from Stripe. The success page updates the order, so visiting the URL is enough.
payguard-check reads your project and flags these patterns for Stripe, PayPal, Lemon Squeezy, Paddle and Razorpay, and it recognises JazzCash, Easypaisa and PayFast secrets too. It tells you the file and line, why it matters, and how to fix it.
The safe pattern is simple: the browser sends product IDs and quantities, the server looks up prices, the provider takes the money, and only a verified webhook marks the order as paid.
Try it
npx payguard-check
Free and open source under the MIT license. Want this done for your store, or need help with the findings? Book a call.