Skip to content
Development
Command

/test-cards

Display Stripe test card numbers for various testing scenarios

From plugin
stripe-ai
1.7k2 skills1 agent2 commands
Install
$ npx -y skills add stripe/ai --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/test-cards

Context preview

What this command does when you run it.

Display Stripe test card numbers for various testing scenarios

Command definition

test-cards.md
description: Display Stripe test card numbers for various testing scenarios
argument-hint: [scenario]

Test Cards Reference

Provide a quick reference for Stripe test card numbers:

1. If a scenario argument is provided (e.g., "declined", "3dsecure", "fraud"), show relevant test cards for that scenario 2. Otherwise, show the most common test cards organized by category:

  • Successful payment (default card)
  • 3D Secure authentication required
  • Generic decline
  • Specific decline reasons (insufficient_funds, lost_card, etc.)

3. For each card, display:

  • Card number (formatted with spaces)
  • Expected behavior
  • Expiry/CVC info (any future date and any 3-digit CVC)

4. Use clear visual indicators (✓ for success, ⚠️ for auth required, ✗ for decline) 5. Mention that these only work in test mode 6. Provide link to full testing documentation: https://docs.stripe.com/testing.md

If the user is currently working on test code, offer to generate test cases using these cards.

Ships withstripe-ai

This repo is the one-stop shop for building AI-powered products and businesses on top of Stripe.

Get the whole plugin, auto-invoked
Stats
1,728
Stars
2
Views
322
Forks
Active
Maintenance
TypeScript
Language
MIT
License
14h ago
Last commit
1y ago
Created

Repo: stripe/ai