payment-testing
覆盖 webhook、订阅时钟与嵌套 iframe 等常漏测场景
需要访问第三方支付沙箱和测试凭据,可能泄露敏感信息
在 PSP 沙箱环境中端到端测试支付与结账流程,包含 Stripe 测试卡与 3DS 等。
在 PSP 沙箱里做端到端支付与结账测试,Stripe 为主,覆盖测试卡号、各种拒付码、3DS 嵌套 iframe、test clocks、webhook 验签与幂等性、退款与重试场景。专门针对那些常被常规 E2E 忽略的故障(跨域 iframe 找不到字段、重试导致重复履约等)来设计用例,绝对不要用真实卡。适合验收 checkout、订阅续费和 webhook 流程时使用。
▸ 展开 SKILL.md 英文原文
Test payment and checkout flows end to end against PSP sandboxes — Stripe first, with the general pattern for Adyen/Braintree/PayPal. Covers Stripe test-mode card numbers and their decline codes, the 3DS/SCA challenge flow and its nested-iframe handling in Playwright, test clocks for subscription/billing-cycle simulation, webhook testing (stripe listen/trigger, signature verification, idempotency), failed/retried payments and refunds, and never using real cards. Use when: "test Stripe checkout," "payment test," "3DS test," "test webhook signature," "test subscription renewal," "test clock," "refund test," "decline card test," "checkout E2E." Not for: General API contract testing of non-payment endpoints — api-testing. PCI-DSS/regulatory compliance audit — compliance-testing. Related: api-testing, playwright-automation, compliance-testing, test-data-management, qa-project-context.
帮我安装这个 skill:https://raw.githubusercontent.com/petrkindlmann/qa-skills/main/skills/payment-testing/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/petrkindlmann/qa-skills/main/skills/payment-testing/SKILL.md"<objective> Payment flows fail in ways generic E2E tests miss: a card field in a cross-origin iframe that `page.locator` silently never reaches, a renewal that won't trigger for a year, a webhook handler that "works" until Stripe retries and fulfills an order twice, an order marked paid on a redirect that the browser forged. This skill makes you test payments the way they actually break — against PSP sandboxes, with the real test cards, the nested 3DS challenge, server-side test clocks, signature-verified webhooks, and idempotent fulfillment. Never a real PAN, never a live key. </objective> ## Quick Route | You need to test… | Go to | Reference | |-------------------|-------|-----------| |