← NIGHTSHIFT COLLECTIVE   /   INDEPENDENT PROJECT
PAYMENT SYSTEMS / CONCEPT STAGE

Nightshift
Payment Solutions.

Agent-to-agent commerce first. Human payments remain fully supported through the same endpoints. Clients and agents pay for resources; merchants receive preferred stablecoins. No persistent client data is collected or shared.

This project is separate from Nightshift's proposed nonprofit accountability initiative. Sharing the same business-ethics principles does not make it a charitable program or permit the use of charitable funds for private benefit.

Status: Exploratory project. This website does not process payments, hold customer funds, or claim any money-transmitter license, approval, or operational service.

Agent-First Design

AI agents cannot hold credit cards or complete KYC. They can hold or receive stablecoins and sign payment authorizations. Nightshift Payment Solutions leads with machine-to-machine commerce: an agent requests a resource, receives a standard x402 challenge, signs, and receives the resource. The identical endpoints accept human callers who pay in ordinary USD; a thin routing layer converts that USD into the same authorization the agent would have produced. Settlement is identical for both.

Dual-Mode Payment Sequence

Agent or Human | | 1. Request resource v Resource Server | | 2. 402 + PAYMENT-REQUIRED v Caller | +-- Agent path: signs EIP-3009 directly | +-- Human path: ZPTP collects USD via licensed on-ramp → produces same signed authorization | | 3. Retry with PAYMENT-SIGNATURE v Resource Server → Facilitator /verify | | 4. On success, fulfill resource v Facilitator /settle → on-chain transferWithAuthorization | | 5. 200 + PAYMENT-RESPONSE (tx receipt) v Caller receives resource

Both paths end at the same facilitator verify/settle endpoints and the same on-chain settlement. The resource server does not distinguish the caller type beyond the presence of a valid signature.

Minimal Resource Server Example

A resource server that accepts both agents and humans. It returns a 402 challenge, then accepts a signed payload and settles via any standard x402 facilitator. No identity checks, no stored profiles.

// Minimal dual-mode resource server (illustrative)
app.get('/resource/:id', async (req, res) => {
  const requirements = {
    scheme: 'exact',
    network: 'eip155:8453', // or Robinhood Chain / Arbitrum
    amount: '150000',       // 0.15 USDC (6 decimals)
    asset: '0x...',         // USDC or USDG
    payTo: process.env.MERCHANT_WALLET,
    maxTimeoutSeconds: 60,
    extra: { assetTransferMethod: 'eip3009' }
  };

  const signature = req.headers['payment-signature'];
  if (!signature) {
    return res.status(402)
      .set('PAYMENT-REQUIRED', Buffer.from(JSON.stringify({
        accepts: [requirements]
      })).toString('base64'))
      .json({ error: 'Payment Required' });
  }

  // Verify via facilitator (same for agent or human-produced signature)
  const verified = await facilitator.verify(signature, requirements);
  if (!verified) return res.status(402).json({ error: 'Invalid payment' });

  // Fulfill resource (data, tracking, API response, etc.)
  const resource = await getResource(req.params.id);

  // Settle asynchronously or immediately
  const settlement = await facilitator.settle(signature, requirements);

  res.set('PAYMENT-RESPONSE', Buffer.from(JSON.stringify(settlement)).toString('base64'))
     .json(resource);
});

Human Embed (Compatibility Layer)

Merchants can still drop a single script for human visitors. The embed shows free basic order status. Private details are unlocked with a normal USD payment. ZPTP handles conversion so the human never sees wallets or chains. Agents calling the same resource endpoint bypass the embed entirely and speak x402 directly.

ZPTP Protocol Layer

ZPTP sits only on the human path. It accepts a USD payment through a licensed on-ramp, produces an x402-compliant authorization, and feeds it into the challenge above. Agents never touch ZPTP. ZPTP stores no client identity data.

Privacy and Attack Surface

Brands and platforms that expose payable resources this way become usable by both people and autonomous agents without expanding data collection.

About the Founder

Kyleigh May Peterson is the founder of Nightshift Collective, building privacy-first infrastructure at the intersection of payments, AI agents, and independent creators. She designed and documented the full Nightshift / ZP2P-X402 system — a non-custodial HTTP 402 payment and trust rail that lets AI agents settle stablecoin micro-transactions for APIs and digital resources while humans pay in fiat through licensed upstream rails. The work includes the complete technical architecture (facilitator with CEI pattern, dual agent/human settlement, circuit breakers, on-chain reputation layer), the legal and tax structure (US DevCo + offshore Foundation with cost-plus transfer pricing and non-custodial merchant terms), and the initial developer surface (local mock server, dual-mode sequence diagrams, and full technical documentation). She also operates multiple product websites and AI tools for content creators, and is studying cybersecurity while self-teaching Python and smart-contract development. Based in Washington state, she focuses on zero-PII design, non-custodial architecture, and shipping practical systems for the autonomous economy.

Explore Nightshift Studio →   Return to Nightshift →