add
Add a second payment provider alongside an existing integration, without touching the one already running.
Audit a hand-written payment integration and FIX what it finds. Unlike /pagokit:doctor, which is read-only, this one writes.
> /plugin marketplace add Hainrixz/agente-pagokit > /plugin install pagokit@tododeia
How it fires
How this command gets triggered: by you, by Claude, or both.
/hardenContext preview
What this command does when you run it.
Audit a hand-written payment integration and FIX what it finds. Unlike /pagokit:doctor, which is read-only, this one writes.
description: Audit a hand-written payment integration and FIX what it finds. Unlike /pagokit:doctor, which is read-only, this one writes. argument-hint: "[--dry-run]"
For integrations PagoKit did not write. Most payment code in the world was written by hand and has at least one of the silent failures the validators exist to catch.
Run `--dry-run` first by default, and only write after the user has seen the list.
Glob for webhook routes, payment SDK imports, checkout endpoints and migrations. Identify the provider from the SDK import and the key prefixes in `.env.example` — matched against the catalog's `detection` and `credentials` entries, not guessed.
The checks in `hooks/checks/` are ordinary functions. Call them directly on each candidate file rather than waiting for a write to trigger them:
node -e "
const check = require('./hooks/checks/webhook-has-signature');
console.log(check.run({ filePath: '<path>', content: require('fs').readFileSync('<path>','utf8'), toolName:'Write', projectDir: process.cwd() }));
"Do this for every rule, on every payments file. That is the whole audit — the same checks that would have blocked the code as it was written.
values and mixing them fails silently forever.
id? Signature verification alone does not stop replay.
the ones nobody thought about — `charge.dispute.created`, `subscription.payment_failed`?
answers that, and the answer is sometimes yes.
PagoKit hardening report — <provider> · <n> files audited CRITICAL <what an attacker or a bug can do today, in one line> HIGH ... MEDIUM ... <n> critical · <n> high · <n> medium
Order by what an attacker can actually do, not by rule number. An unsigned webhook is not "one finding among five" — it means anyone who knows the URL can grant themselves a paid account.
Then fix them one at a time, smallest blast radius first, running the test suite between changes if the project has one. Write `PAGOKIT_INTEGRATION.md` at the end so `/pagokit:doctor` can audit it from now on.
required env var — stop and say so before writing.
Claude Code plugin that picks and implements the right payment method for your app — from your terminal. 42 providers, 136 payment rails, and deterministic validators that block insecure payment code as it is written.
Repo: Hainrixz/agente-pagokit
Add a second payment provider alongside an existing integration, without touching the one already running.
Compare two or more payment providers head to head for a concrete situation — real fees on a real amount, coverage, onboarding time, and what PagoKit can…
Show what you can actually use in a given country — providers, local rails, currency exponent, e-invoicing obligation, and whether a local acquirer is required.
Audit an existing PagoKit integration — gitignore, env vars, key prefixes, webhook secret, raw body, replay protection, idempotency, DB schema, minimum events…
Migrate from one payment provider to another, keeping the old one running until the new one is proven.
Analyze the current project and generate a production-ready payment integration (frontend + backend + webhook + DB + portal + refund).