For a payment test, write down the intended activity, where it runs and whose permission covers it. “The number was generated” is useful provenance, but it does not answer every legal, contractual or security question. This guide separates those questions so a test plan can be reviewed without claiming a universal legal verdict.
This is general information for developers, not advice on a specific legal situation. A qualified adviser in the relevant jurisdiction can assess facts that this page cannot establish.
Separate four decisions
| Decision | Evidence to collect | What another decision cannot substitute for |
|---|---|---|
| System authorization | Owner approval, environment, allowed actions and limits | Ownership of your frontend does not grant permission over a third-party service |
| Provider terms | Current sandbox instructions and product-specific restrictions | A checksum-valid input does not create a supported test scenario |
| Applicable law | Jurisdiction, conduct, intent and relevant legal elements | A provider account or “educational” label is not a legal exemption |
| PCI/data handling | Data flow, scope, applicable requirements and assessment evidence | Synthetic fixtures do not automatically remove every connected system from scope |
For example, an offline formatter test using invented fixtures has a different data flow from a test hitting an external checkout. A staging deployment can still contain a live API key. Name the environment from its actual configuration and behavior, not just from a hostname containing test.
Correct the live-data assumption
PCI DSS requirement 6.5.5 includes a defined exception: live PANs can be used in pre-production when that environment is included in the cardholder data environment and protected under all applicable PCI DSS requirements. The requirement is visible in PCI SSC’s published SAQ D text, section 6.5.5. Use the current document library and your compliance-accepting entity for the applicable assessment documents.
This is not a recommendation to copy production data into development. Synthetic fixtures and provider sandboxes avoid the need for live account data in these examples. An exception under a security standard also does not override privacy obligations, a provider agreement or a person’s authorization. The PCI guide maps those handling boundaries in more detail.
Read legal references as scoped rules
In the United States, 18 U.S.C. § 1029 defines several access-device offenses with specific elements, including knowledge and intent for relevant provisions. A page should not replace those elements with “any unsuccessful test is automatically a crime.”
For England, Wales and Northern Ireland, Fraud Act 2006 section 2 addresses dishonest false representation with the specified intent to gain or cause loss/risk of loss. The Crown Prosecution Service guidance explains the offense and related provisions. These references are examples of why the actual conduct and jurisdiction matter; they are not a worldwide permission table.
Do not present synthetic data as an issued card to obtain goods or evade payment or access requirements. For age/identity verification testing, use the service’s authorized test identities and environment. If its documentation does not provide a route, obtain scope clarification from the service owner rather than experimenting against production.
Make a fixture preflight executable
Our small internal rule permits two configurations: synthetic input in an offline harness, or a provider fixture in an authorized sandbox with test credentials. Anything else stops for review.
export function fixtureScope(config) {
// Internal harness preflight only: never a legal or PCI compliance verdict.
if (config?.data === 'synthetic' && config.target === 'offline' && config.network === false) return 'offline-fixture';
if (config?.data === 'provider-fixture' && config.target === 'sandbox' &&
config.credentials === 'test' && config.authorized === true) return 'sandbox-fixture';
return 'stop-and-review';
}| Case | Input / condition | Expected result |
|---|---|---|
| offline | Synthetic values, no network | "offline-fixture" |
| sandbox | Authorized provider fixture with test credentials | "sandbox-fixture" |
| live-key | Provider fixture with live credentials | "stop-and-review" |
| production-copy | Production data copied into a local test | "stop-and-review" |
The function only reads declared settings. It does not inspect sockets, validate permission or establish compliance. Enforce network isolation and credential separation separately. In particular, authorized: true is a test flag, not a substitute for an approval record.
Extract the preflight examples and run with Node.js 22 or later:
node guide-demo.mjs scope
node --test guide-examples.test.mjs payment-guide-examples.test.mjs
Keep a reviewable test record
Record the owner and scope reference, provider/product, target environment, data origin, fixture version, credential mode, allowed operations and cleanup responsibility. Include the expected outcome and how to stop a run that reaches an unexpected endpoint. Keep actual secrets out of the record.
A synthetic source reduces reliance on production records, but surrounding identifiers, screenshots or logs can still contain personal data. Review the complete artifact before sharing it. The QA data-management guide covers reproducibility and export handling.
Our card generator creates local fixtures; the site also accepts custom prefixes and performs local format checks. They do not issue accounts, check balances or verify live card status. Describe those capabilities precisely when documenting a test; avoid promising that a generated value cannot overlap any existing account number, since no issuer lookup establishes that here.
The cited legal references and PCI requirement text were last checked against provider documentation on . Providers do change what they publish — the official link beside each claim is authoritative.