Name Description Size Coverage
helpers.js Creates a Payment Method Identifier (PMI) URL pointing to payment-method-identifier.py. @param {string} testId - The unique test run token. @param {Object} [options] - URL configuration options. @param {string} [options.host] - Custom host (default: location.host). @param {string|string[]} [options.link] - Custom Link header(s). @param {number} [options.num_redirects] - Number of redirects in chain. @param {string} [options.redirect_location] - Target URL for redirect. @param {number} [options.status] - HTTP response status code. @returns {string} Fully qualified PMI URL. 4288 -
payment-method-identifier.py Server handler for Payment Method Identifier (PMI) endpoints. Logs incoming request metadata into request.server.stash under `id`. Supports declarative query parameters: - `id`: Unique test run token (generated by token() in JS test). - `redirect_status`: HTTP redirect status code (default 302). - `num_redirects`: Integer count for multi-hop redirect chains. - `redirect_location`: Target URL for redirect. - `status`: HTTP response status code (default 200). - `link`: Custom Link header value. If omitted, defaults to `<{default_manifest}>; rel="payment-method-manifest"`. Pass `link=none` to omit the Link header entirely. Multiple `link` query parameters can be passed to emit multiple Link header lines. 3857 -
payment-method-manifest.py Server handler for Payment Method Manifest (PMM) JSON files. Logs incoming request metadata into request.server.stash under `id`. Supports declarative query parameters: - `id`: Unique test run token (generated by token() in JS test). - `redirect_location`: Target URL for redirect (e.g. testing redirect mode error). - `redirect_status`: HTTP redirect status code (default 302). - `status`: HTTP response status code (default 200). - `content_type`: Custom Content-Type header (default: application/json). - `body`: Custom raw response body (default: JSON with supported_origins). 2548 -
server_constants.py Shared constants for payment-method-manifest server handlers. 122 -
stash-query.py Server handler for inspecting server access logs. Given an `id` query parameter, this handler reads and returns the JSON list of recorded request objects (containing endpoint, method, url, and headers) logged for that specific test run. Supports CORS (Access-Control-Allow-Origin: *) to allow cross-origin test scripts to query server access logs. 1227 -