stripe-testing
Installation
SKILL.md
Stripe Testing
Overview
This skill helps you test and debug Stripe payment integrations end-to-end. It covers webhook verification, payment flow simulation using Stripe CLI and test mode, charge failure diagnosis, and subscription lifecycle validation.
Instructions
Setting Up the Test Environment
- Verify Stripe CLI is installed:
stripe --version - Check for a test API key in environment variables (
STRIPE_SECRET_KEYstarting withsk_test_) - If no key is found, instruct the user to set one from the Stripe Dashboard → Developers → API keys
- Run
stripe listen --forward-to localhost:<port>/webhooks/stripeto forward webhooks locally
Debugging Failed Charges
- Ask for the payment intent ID or charge ID (starts with
pi_orch_) - Retrieve details:
stripe payment_intents retrieve <id> --api-key $STRIPE_SECRET_KEY
Related skills