/qa-payment:payment-gateway-sandboxesfrom qa-payment
Provides sandbox test credentials, deterministic test card numbers, and webhook simulators for Adyen, PayPal, and Braintree integrations. Use when writing tests or wiring sandbox environments into CI.
Ships in qa-payment. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Every major payment gateway ships the same four sandbox primitives, each under a different name:
environment
flag that routes calls to the test stack.This skill is the single entry point for the non-Stripe gateways. The body covers the shared pattern; the per-gateway mechanics live in references/.
| Gateway | Reference | Distinctive sandbox trait |
|---|---|---|
| Adyen | references/adyen.md | Explicit sync-API / async-notification duality; HMAC-validated notifications |
| PayPal | references/paypal.md | Sandbox Business + Personal accounts; dashboard + API webhook simulator |
| Braintree | references/braintree.md | Amount-based magic values; sandbox-only gateway.testing.settle |
| Stripe | stripe-test-cards-and-webhooks | Stripe CLI (stripe listen / stripe trigger); test clocks in stripe-subscription-billing-test-author |
Regardless of gateway, a payment integration suite has the same skeleton:
bt_signature
parsing for Braintree); the suite must reject unsigned and wrong-secret
payloads.payment-flow-test-author.payment-flow-test-author (its payment-states reference) before
asserting on states.Sandbox credentials are secrets like any other:
jobs:
gateway-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v4
- run: npm ci && npm test
env:
ADYEN_TEST_API_KEY: ${{ secrets.ADYEN_TEST_API_KEY }}
PAYPAL_SANDBOX_CLIENT_ID: ${{ secrets.PAYPAL_SANDBOX_CLIENT_ID }}
BT_SANDBOX_MERCHANT_ID: ${{ secrets.BT_SANDBOX_MERCHANT_ID }}
Per-gateway variable lists are in each reference.
| Anti-pattern | Why it fails | Fix |
|---|---|---|
| Prod credentials in tests | Real settlement / real charges | Sandbox-only keys, per-env config |
| Skip webhook signature validation | Spoofed events trigger fulfillment | Verify per the gateway's scheme |
| Treat the sync API return as final | All three gateways finalize async | Webhook-driven state, per payment-flow-test-author (its payment-states reference) |
| One happy-path test | Decline / 3DS / fraud paths untested | One test per documented outcome row |
| Hardcoded merchant/account IDs | Per-env accounts drift | Env vars |
| One suite for all gateways | Result-code vocabularies differ | Per-gateway test directory |
payment-flow-test-author (its payment-states reference: state machines + 3DS
flows).payment-flow-test-author.stripe-test-cards-and-webhooks,
stripe-subscription-billing-test-author.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
payment-testing, sandbox, adyen, paypal, braintree, test-cards
npx claudepluginhub testland/qa --plugin qa-payment4 skills in this plugin
/payment-flow-test-authorUse when a payment integration needs refund, dispute or payment-webhook tests: a refund matrix (full, partial, over-refund) for Stripe, Adyen, PayPal and Braintree, chargebacks with card-network reason codes, and webhook replay through each gateway's simulator./stripe-subscription-billing-test-authorUse when Stripe subscriptions or recurring billing need tests: trial to paid, proration on upgrade and downgrade, dunning on failed renewals, cancel and reactivate, and the subscription webhook events, using Stripe test clocks to skip through billing cycles without waiting./2 plugins ship this exact skill · first indexed Nov 12, 2026
Other plugins' skills for the same job