# v346 Stripe Platform Test Customer Creation Foundation

## Purpose
v346 adds the first controlled Stripe SDK call for Dispatch Spot platform subscriptions.

This is Super Admin-only and test-mode-only.

## What v346 allows
Super Admin can create or confirm a Stripe test customer for a selected workspace from `/admin/stripe-scaffold`.

The result is saved to the workspace subscription as the Stripe customer ID.

## What v346 does not allow
v346 does not create:

- live charges
- checkout sessions
- customer portal sessions
- Stripe subscriptions
- invoices
- payment methods
- subscription items

## Safety requirements
The Stripe customer creation path is blocked unless:

- `STRIPE_SECRET_KEY` exists
- the key starts with `sk_test_`
- `STRIPE_PLATFORM_BILLING_TEST_MODE` is not set to `false`
- the selected workspace has a workspace subscription assignment

## Billing separation preserved
- Super Admin platform subscriptions use this Stripe platform path.
- Workspace Admin dispatcher services will use a separate future Stripe path to bill carriers.
- Carrier/company billing to brokers and shippers remains factoring or Net 30 based.

## Next safe billing steps
After v346 passes, the next possible Stripe track is controlled test-mode subscription creation.
Editable add-on assignment should still wait until the base customer and subscription flow is stable.
