{
  "id": "unit6-payment-page-script-file",
  "version": "0.1.0",
  "stage": null,
  "title_en": "Payment Page Script File, per checkout",
  "titles_json": {
    "en": "Payment Page Script File, per checkout"
  },
  "inputs_schema": {
    "checkout_url": "string",
    "origin": "own_property | test_domain | stranger",
    "test_path": [
      "string"
    ],
    "payment_provider": "string"
  },
  "steps": [
    "load the checkout and inventory every script with its source and business reason",
    "write the Content Security Policy",
    "add integrity tags on outside scripts served as fixed files",
    "written memo from evidence on SAQ A eligibility, not a Qualified Security Assessor assessment",
    "retest with a fresh load",
    "signed file"
  ],
  "acceptance_tests_json": [
    {
      "test_id": "script_inventory_complete",
      "test_version": "1",
      "outside_observable": true,
      "evidence_source": "page_load",
      "definition": "Every script the checkout runs in a test load along the given test path is in the inventory, with a business reason."
    },
    {
      "test_id": "csp_matches_inventory",
      "test_version": "1",
      "outside_observable": true,
      "evidence_source": "page_load",
      "definition": "The checkout sends a Content Security Policy whose script sources match the inventory and that allows inline script only by nonce or hash."
    },
    {
      "test_id": "integrity_on_fixed_files",
      "test_version": "1",
      "outside_observable": true,
      "evidence_source": "page_load",
      "definition": "Every outside script served as a fixed file carries an integrity attribute; a script that changes by design is listed with its reason."
    },
    {
      "test_id": "no_unlisted_script",
      "test_version": "1",
      "outside_observable": true,
      "evidence_source": "page_load",
      "definition": "A fresh test load runs no script outside the inventory."
    },
    {
      "test_id": "saq_a_memo_on_file",
      "test_version": "1",
      "outside_observable": false,
      "evidence_source": "firm_record",
      "definition": "The SAQ A memo is on file with the evidence it rests on."
    }
  ],
  "risk_class": "read_only",
  "signer_type": "accountable_reviewer",
  "turnaround_hours": null,
  "price_direct_usd": "490.00",
  "price_wholesale_usd": "320.00",
  "tier_rule": {
    "tier_share": {
      "1": "1.00",
      "2": "0.85",
      "3": "0.55",
      "4": "0.35"
    },
    "runbook_mode_discount": "0.20",
    "runbook_price_direct_usd": "392.00",
    "runbook_price_wholesale_usd": "256.00"
  },
  "warranty_terms_hash": null,
  "allowed_tools": [
    "page_load_headless",
    "tls_handshake"
  ],
  "approval_rules": {
    "mode": "runbook",
    "client_applies_every_change": true,
    "write_tools": []
  },
  "review_level": "full",
  "bench_min_cases": 40,
  "bench_pass_rate": null,
  "bench_passed_at": null,
  "status": "draft"
}
