/**
 * Buy More Permits — server-side payment gate (2026-09-29 task §9.3, D4).
 *
 * When on, `POST /api/trips/[id]/requests` refuses a `permit_request` that
 * does not carry a `payment_confirmation_token` (obtained by the two-step
 * dialog from Synchron's card-confirmation page). Default OFF this phase so
 * the freight-broker and driver views, which still use the one-step dialog,
 * keep working unchanged (D6: Carrier Dispatch only).
 */
export const PERMIT_PAYMENT_GATE = process.env.PERMIT_PAYMENT_READINESS_GATE === 'true'

export const PERMIT_PAYMENT_GATE_ERROR = 'Confirm your payment method with Synchron Permits first.'
