fix(checkout): trucking new-carrier ordered the wrong (telecom) product + ACH broke
Two reported bugs, plus two related ones found while tracing: 1. WRONG PRODUCT (Stripe showed 'FCC setup package' for a trucking order): the trucking new-carrier form reused the slug 'new-carrier-bundle', which is the TELECOM VoIP onboarding bundle (FRN+499+RMD+CPNI+CALEA, $1799). So trucking customers were charged the telecom product/price and saw FCC on their receipt. Added a distinct 'dot-new-carrier-bundle' (USDOT+MC+BOC-3+MCS-150+Drug&Alcohol, $599 + FMCSA gov fees) and pointed the trucking page at it. 2. ACH 500 error: the Stripe session requested the Financial Connections 'balances' permission, which isn't activated on the account -> Stripe rejected the whole session (invalid_request_error). Removed 'balances' (+prefetch); we only need 'payment_method' to collect+charge the bank account. Also fixed (found while tracing): 3. The telecom new-carrier-bundle's BUNDLE_COMPONENTS listed TRUCKING slugs by mistake (copy/paste) -- corrected to its real FCC components. 4. The trucking page offered llc-formation / corp-formation / foreign-qual which did not exist in the catalog (batch would 400). Added llc-formation + corp-formation; remapped foreign-qual -> foreign-qualification-single. Catalog regenerated (66 -> 69 services), drift-check + tsc clean.
This commit is contained in:
parent
7c39a858cc
commit
c6819371d8
5 changed files with 52 additions and 6 deletions
|
|
@ -2,7 +2,7 @@
|
|||
* AUTO-GENERATED -- DO NOT EDIT.
|
||||
*
|
||||
* Source of truth: api/src/service-catalog.ts (COMPLIANCE_SERVICES).
|
||||
* Regenerate with: node scripts/gen-service-catalog.mjs (runs on site prebuild).
|
||||
* Regenerate with: python3 scripts/gen-service-catalog.py (runs on deploy).
|
||||
*
|
||||
* Display-only subset (name, price_cents, gov_fee_label) of the API catalog,
|
||||
* so the public site can never drift from what the API actually charges.
|
||||
|
|
@ -28,12 +28,14 @@ export const SERVICE_META: Record<string, ServiceMeta> = {
|
|||
"cdr-storage-tier2": { name: "CDR Storage Tier 2 (250 GB / 250M calls)", price_cents: 29900 },
|
||||
"cdr-storage-tier3": { name: "CDR Storage Tier 3 (1 TB / 1B calls)", price_cents: 79900 },
|
||||
"cores-frn-registration": { name: "CORES / FRN Registration", price_cents: 14900 },
|
||||
"corp-formation": { name: "Corporation Formation", price_cents: 24900 },
|
||||
"cpni-certification": { name: "CPNI Annual Certification", price_cents: 19900 },
|
||||
"ct-highway-use-fee": { name: "CT Highway Use Fee Setup", price_cents: 10900, gov_fee_label: "CT Highway Use Fee registration (state, billed at cost)" },
|
||||
"dc-agent": { name: "D.C. Registered Agent (Annual)", price_cents: 14900 },
|
||||
"dot-audit-prep": { name: "New Entrant Safety Audit Preparation", price_cents: 39900 },
|
||||
"dot-drug-alcohol": { name: "DOT Drug & Alcohol Compliance Program", price_cents: 14900 },
|
||||
"dot-full-compliance": { name: "DOT Full Compliance Bundle", price_cents: 39900 },
|
||||
"dot-new-carrier-bundle": { name: "New Carrier Starter Bundle (USDOT + MC Authority + BOC-3 + MCS-150 + Drug & Alcohol)", price_cents: 59900, gov_fee_label: "FMCSA registration fees (USDOT + operating authority, billed at cost)" },
|
||||
"dot-registration": { name: "New USDOT Number Registration", price_cents: 8900 },
|
||||
"ein-application": { name: "EIN Application (IRS SS-4)", price_cents: 7900 },
|
||||
"emergency-temporary-authority": { name: "Emergency Temporary Authority (ETA)", price_cents: 49900 },
|
||||
|
|
@ -57,6 +59,7 @@ export const SERVICE_META: Record<string, ServiceMeta> = {
|
|||
"intrastate-authority": { name: "Intrastate Operating Authority", price_cents: 10900, gov_fee_label: "State intrastate authority filing fee (state, billed at cost)" },
|
||||
"irp-registration": { name: "IRP Registration Assistance", price_cents: 10900, gov_fee_label: "Apportioned IRP registration & plate fees (state, by jurisdictions + weight, billed at cost)" },
|
||||
"ky-kyu-registration": { name: "KY Weight-Distance Tax Setup", price_cents: 10900, gov_fee_label: "KYU weight-distance account fees (state, billed at cost)" },
|
||||
"llc-formation": { name: "LLC Formation", price_cents: 19900 },
|
||||
"mc-authority": { name: "MC Operating Authority Application", price_cents: 19900, gov_fee_label: "FMCSA operating authority application fee" },
|
||||
"mcs150-update": { name: "MCS-150 Biennial Update", price_cents: 3900 },
|
||||
"medicare-enrollment": { name: "Medicare Enrollment (PECOS)", price_cents: 69900 },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue