Agent skill
test-webhook
Simulate Paddle webhook events to test payment processing pipeline
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/test-webhook
SKILL.md
User Input
$ARGUMENTS
Options: payment-success, chargeback, refund, or custom payment_id
Task
Send a mock Paddle webhook to the local/staging backend to test the full payment → AI → PDF → Email pipeline.
Steps
-
Parse Arguments:
payment-successor empty: Test successful payment flowchargeback: Test chargeback handlingrefund: Test refund processing- Custom
pay_123: Use specified payment_id
-
Run Helper Script:
bashcd .claude/skills/test-webhook python test_webhook_helper.py --event [event_type] --payment-id [payment_id] -
The helper script will:
- Check if backend is running
- Create test quiz data (for payment-success events)
- Generate webhook payload with proper structure
- Calculate HMAC-SHA256 signature
- Send webhook request with headers
- Monitor pipeline execution
- Check database for results
- Report summary
-
Output will show:
- Webhook processing status
- Pipeline execution times (AI, PDF, Blob, Email)
- Database record verification
- Total completion time
- Any errors or issues
Example Usage
/test-webhook # Test payment success flow
/test-webhook payment-success # Same as above
/test-webhook chargeback # Test chargeback handling
/test-webhook refund # Test refund processing
/test-webhook pay_custom_123 # Use custom payment_id
Exit Criteria
- Webhook request sent with valid signature
- Backend processes webhook successfully
- Full pipeline executes (AI → PDF → Blob → Email)
- Database records created correctly
- Completion time within 90s target
Testing Scenarios
The helper script supports testing edge cases:
--missing-quiz: Delete quiz before webhook (tests manual_resolution)--duplicate: Send same payment_id twice (tests idempotency)--invalid-signature: Send with wrong HMAC (tests validation)--expired-timestamp: Use old timestamp >5 min (tests timestamp validation)
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?