- Home
- Skills
- APIs & Backend
- Payment Webhook and Checkout Debugger
More screenshots
Works with the AI Agents you already use
Payment Webhook and Checkout Debugger
A buyer paid and got nothing, or got it twice. Your agent checks your webhook, orders and checkout code, finds the gap, fixes it, and proves the fix.
$10
Payment Webhook and Checkout Debugger
Example session with this skill installed
I have an order ref 'TRX-9921' where the user paid via Paystack, but the order table still shows 'pending' and they didn't get their credits. Check the webhook handler in /api/paystack/route.ts.
- Read your context and instructions
- Compiled the payment webhook
Payment diagnosis: SaaS App (Paystack, Live)
Symptom: Paid but nothing granted, Ref: TRX-9921, Amount: 5000 NGN
Provider record: Success (verified via user log)
Order record: Pending
Findings
-
[Blocker, Confirmed] Missing Webhook Idempotency / Duplicate Guard
Catalog match:late_webhook_race_condition
Cause: The handler at/api/paystack/route.tslacks a check to see if the order is already processed. If the redirect happens before the webhook, or if the webhook retries, it fails to update or grants twice.
Fix: Add a database transaction and checkwhere status != 'success'before granting credits inroute.ts.
Verify: Use the Paystack Test Dashboard to "Replay" the webhook for TRX-9921 and ensure it does not create a duplicate transaction log. -
[High, Confirmed] Unhandled
charge.successevent
Catalog match:event_type_mismatch
Cause: Code is looking forpayment.successbut Paystack sendscharge.success.
Fix: Update the switch statement inroute.tsline 24 to handle the correct event string.
Verify: Runpython -I scripts/scan_payments.py .after change to verify event mapping.
Orders to repair
- TRX-9921: Manually set status to 'success' and increment
credit_balanceby 50.
Next steps
- Apply the transaction guard to
api/paystack/route.ts. - Run the
references/webhook-audit-checklist.mdto ensure signature verification is active. - Update the learning log with this event mapping fix.
Connects securely to your tools. The creator never sees your data.
About this skill
Debug payment failures where money is taken but goods aren't delivered. This skill audits webhook handlers and checkout flows to resolve duplicate grants, empty order tables, and hanging checkout popups.
What it does
- Scans payment code using a bundled Python script to detect high-risk vulnerabilities and misconfigurations.
- Triages symptoms like "paid but nothing granted" against a catalog of known failure patterns from real-world apps.
- Audits webhooks to ensure signature verification, duplicate guards, and proper status handling are implemented.
- Reconciles records by comparing provider logs against internal database states to find the exact point of failure.
- Generates fix plans that rank issues by severity and provide specific verification steps for each change.
How it works
- Initialize scan: Run the
scan_payments.pytool against your project folder to surface immediate blockers or exposed keys. - Symptom collection: Provide an order reference and a description of the failure observed by the buyer or provider.
- Evidence matching: The agent compares logs and code against a failure catalog to identify confirmed or likely causes.
- Repair and Log: Follow the ranked fix plan to patch the code and record findings in a persistent learning log for the project.
Frameworks & tools
Works with web applications using Paystack, Flutterwave, or Stripe. Includes a Python-based scanner script.
Why this beats prompting it yourself
Generic prompts often miss the nuances of webhook idempotency and race conditions. This skill uses a structured failure catalog and a dedicated scanner to find "silent" bugs that standard LLMs overlook during basic code reviews.
Use cases
- Debugging why a customer was charged but their order remains "pending" in your database.
- Finding and fixing security blockers like hardcoded secret keys in client-side code.
- Preventing duplicate delivery of digital goods when a provider sends multiple webhook events.
- Auditing a new payment integration before moving from test mode to live production.
Known limitations
Does not perform live API calls or dashboard actions. Requires manual input of provider log data. Scanner requires a Python environment to execute.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.
Requires Python to run the scan script. Does not have direct access to private provider dashboards or API keys. User must provide log evidence manually.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 4 days ago