payment-ecommerce-testing
Installation
SKILL.md
Payment & E-commerce Testing
Money paths need the highest rigor: bugs cost revenue, trust and compliance. Sandbox only — never real cards or live keys in tests.
Journey map
Browse → search/filter → PDP (variants, stock) → cart (qty, merge guest→user) → coupon → shipping & tax → payment → confirmation/email → fulfillment → returns/refund → invoices/reports.
Test-card & sandbox cheat-sheet (Stripe test mode)
| Scenario | Card |
|---|---|
| Success | 4242 4242 4242 4242 |
| Decline (generic) | 4000 0000 0000 0002 |
| Insufficient funds | 4000 0000 0000 9995 |
| 3-D Secure required | 4000 0027 6000 3184 |
| Fails after 3DS | 4000 0000 0000 3220 (auth fails) |
| Dispute | 4000 0000 0000 0259 |
Use any future expiry/CVC. PayPal: sandbox buyer/seller accounts. Adyen/Braintree: their published test numbers. stripe listen --forward-to localhost:3000/webhook + stripe trigger payment_intent.succeeded for webhooks. |