Finance
stripe-verify - Claude MCP Skill
End-to-end verification of Stripe integration. Deep testing including real checkout flows, webhook delivery, and subscription state transitions.
SEO Guide: Enhance your AI agent with the stripe-verify tool. This Model Context Protocol (MCP) server allows Claude Desktop and other LLMs to end-to-end verification of stripe integration. deep testing including real checkout flows, webhook d... Download and configure this skill to unlock new capabilities for your AI workflow.
Documentation
SKILL.md# Stripe Verify
Comprehensive end-to-end verification. Go deep ā billing bugs are expensive.
## Objective
Prove the integration works. Not "looks right" ā actually works. Test real flows, verify real state changes, confirm real webhook delivery.
## Process
**1. Configuration Verification**
Before functional tests, verify all configuration:
```bash
# Env vars exist
bunx convex env list | rg "^(STRIPE_|CONVEX_WEBHOOK_TOKEN=)"
bunx convex env list --prod | rg "^(STRIPE_|CONVEX_WEBHOOK_TOKEN=)"
vercel env ls --environment=production 2>/dev/null | rg "^(STRIPE_|CONVEX_WEBHOOK_TOKEN=)" || true
# Token parity (Next/Vercel ā Convex) - P0 invariant
vercel env pull .env.vercel-parity-check --environment=production --yes >/dev/null
vercel_token=$(rg "^CONVEX_WEBHOOK_TOKEN=" .env.vercel-parity-check | head -n1 | cut -d= -f2-)
rm -f .env.vercel-parity-check
convex_token=$(bunx convex env get --prod CONVEX_WEBHOOK_TOKEN 2>/dev/null || true)
[ -n "$vercel_token" ] && [ -n "$convex_token" ] && [ "$vercel_token" = "$convex_token" ] && echo "ā CONVEX_WEBHOOK_TOKEN parity (prod)" || echo "ā CONVEX_WEBHOOK_TOKEN parity failed (prod)"
# Webhook URL accessible
curl -s -o /dev/null -w "%{http_code}" -I -X POST "$WEBHOOK_URL"
# Must be 4xx or 5xx, not 3xx
# Stripe CLI connected
stripe listen --print-json --latest
```
**2. Checkout Flow Test**
Create a real test checkout session:
```bash
# Trigger checkout (via app or API)
# Complete with Stripe test card: 4242 4242 4242 4242
# Verify:
# - Session created successfully
# - Redirect works
# - Success page loads
# - POST /api/stripe/checkout/confirm succeeds (or equivalent return-page sync)
# - Webhook received (check logs)
# - Subscription created in Stripe Dashboard
# - User state updated in database
```
**3. Webhook Delivery Test**
Verify webhooks are actually delivering:
```bash
# Check pending webhooks
stripe events list --limit 5 | jq '.data[] | {id, type, pending_webhooks}'
# Resend a recent event
stripe events resend <event_id> --webhook-endpoint <endpoint_id>
# Watch logs for delivery
vercel logs <app> --json | grep webhook
```
All recent events should have `pending_webhooks: 0`.
**4. Subscription State Transitions**
Test each state transition:
**New ā Trial**
- Create account
- Verify trial starts
- Verify trial end date correct
**Trial ā Active**
- Complete checkout during trial
- Verify remaining trial honored (trial_end passed to Stripe)
- Verify local state updated
**Active ā Canceled**
- Cancel subscription (via customer portal or API)
- Verify access continues until period end
- Verify state reflects cancellation
**Canceled ā Resubscribed**
- Resubscribe after cancellation
- Verify new subscription created
- Verify billing starts immediately (no new trial)
**Trial Expired**
- Let trial expire (or simulate)
- Verify access revoked
- Verify proper messaging to user
**5. Edge Case Testing**
**Webhook Idempotency**
- Resend the same webhook event twice
- Verify no duplicate processing
- Verify no state corruption
**Out-of-Order Webhooks**
- If possible, simulate events arriving out of order
- Verify system handles gracefully
**Payment Failure**
- Use Stripe test card for decline: 4000 0000 0000 0002
- Verify subscription goes to past_due
- Verify access policy for past_due state
**6. Access Control Verification**
Test that access control actually works:
- Active subscriber ā can access features
- Trial user ā can access features
- Expired trial ā blocked
- Canceled (in period) ā can access
- Canceled (past period) ā blocked
- Past due ā depends on policy (usually grace period)
**7. Business Model Compliance**
Verify against `business-model-preferences`:
- Single pricing tier? (no multiple options)
- Trial honored on upgrade? (check Stripe subscription has trial_end)
- No freemium logic? (expired trial = no access)
**8. Subscription Management UX**
Verify against `stripe-subscription-ux` requirements:
**Settings Page Exists:**
- [ ] Settings page has subscription section
- [ ] Current plan name displayed
- [ ] Subscription status with visual indicator
- [ ] Next billing date shown
- [ ] Payment method displayed (brand + last4)
**Stripe Portal Integration:**
- [ ] "Manage Subscription" button exists
- [ ] Button creates portal session and redirects
- [ ] Return URL configured correctly
**Billing History:**
- [ ] Past invoices displayed
- [ ] Invoice PDFs downloadable
- [ ] Payment statuses shown
**State-Specific UX:**
- [ ] Trial banner shows for trialing users
- [ ] Canceled state shows period end date
- [ ] Past due state shows payment update CTA
- [ ] Active state shows "all good" indicator
**This is a hard requirement.** If subscription management UX is missing,
verification fails. Users must be able to manage their billing.
## Output
Verification report:
```
STRIPE VERIFICATION REPORT
=========================
CONFIGURATION
ā All env vars present
ā Webhook URL responds correctly
ā Stripe CLI connected
CHECKOUT FLOW
ā Session creates
ā Payment succeeds
ā Webhook received
ā State updated
SUBSCRIPTION STATES
ā Trial ā Active
ā Active ā Canceled
ā Canceled ā Resubscribed
ā Trial expiration: not tested (would require waiting)
EDGE CASES
ā Idempotent webhook handling
ā Payment decline handled
ā Out-of-order webhooks: not testable
ACCESS CONTROL
ā Active: access granted
ā Trial: access granted
ā Expired: access denied
ā Canceled in-period: access granted
BUSINESS MODEL
ā Single tier
ā Trial completion on upgrade
ā No freemium
SUBSCRIPTION MANAGEMENT UX
ā Settings page has subscription section
ā Plan name and status displayed
ā Next billing date shown
ā Payment method displayed
ā Manage Subscription button works
ā Billing history accessible
ā Trial banner for trialing users
ā Canceled state messaging
ā Past due state: not tested
---
STATUS: VERIFIED (with minor gaps)
```
## When to Run
- After `stripe-setup` (new integration)
- After `stripe-reconcile` (fixes applied)
- Before production deployment
- Periodically as health check
## Deep Mode
This skill defaults to deep verification. Don't skip tests to save time. Billing bugs cost more than the time spent testing.Signals
Information
- Repository
- phrazzld/claude-config
- Author
- phrazzld
- Last Sync
- 3/2/2026
- Repo Updated
- 3/1/2026
- Created
- 1/23/2026
Reviews (0)
No reviews yet. Be the first to review this skill!
Related Skills
upgrade-nodejs
Upgrading Bun's Self-Reported Node.js Version
cursorrules
CrewAI Development Rules
cn-check
Install and run the Continue CLI (`cn`) to execute AI agent checks on local code changes. Use when asked to "run checks", "lint with AI", "review my changes with cn", or set up Continue CI locally.
CLAUDE
CLAUDE.md
Related Guides
Bear Notes Claude Skill: Your AI-Powered Note-Taking Assistant
Learn how to use the bear-notes Claude skill. Complete guide with installation instructions and examples.
Mastering tmux with Claude: A Complete Guide to the tmux Claude Skill
Learn how to use the tmux Claude skill. Complete guide with installation instructions and examples.
OpenAI Whisper API Claude Skill: Complete Guide to AI-Powered Audio Transcription
Learn how to use the openai-whisper-api Claude skill. Complete guide with installation instructions and examples.