AI and store security JavaScript

payguard-checkFind payment security mistakes that give away free orders

payguard-check finds Stripe, PayPal, Lemon Squeezy, Paddle and Razorpay secrets in the browser, webhooks without signature checks, prices taken from the client and orders marked paid on the success page.

npx npx payguard-check

Free · MIT license · runs on your machine · no signup npm ↗GitHub ↗

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.

Agent skill included

Let your AI coding agent run payguard-check for you

The payguard-review skill works with Claude Code, Codex, Cursor, Gemini CLI and other agents that read SKILL.md files. It runs the tool, explains each finding in plain words and helps you fix it.

npx skills add MuhammadAhmadZia/payguard-check --skill payguard-review

Using the Claude or ChatGPT apps instead? Download the skill ZIP from the GitHub releases page and upload it under Skills.

See all 30 agent skills →

Questions about payguard-check

Does it work with Shopify?

If you use Shopify Checkout, Shopify handles payments and most of these risks do not apply. payguard-check is for stores that integrate a payment provider in their own code.

Will it catch everything?

No. It uses patterns, so treat each finding as a place to look. Payment flows that move real money deserve a human review too.

UN Sustainable Development Goals

How each tool maps to SDG targets →

Want this set up and tuned for your store?

The tools are free. If you would rather have the checks run, the findings fixed and the results measured for you, that is what I do for clients.