Hide payment steps from the admin order status modal.

Admins can only choose fulfillment steps; payment status stays gateway-driven.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-10-02 22:07:34 +03:30
co-authored by Cursor
parent c59ca4444f
commit 016dd0b081
4 changed files with 38 additions and 3 deletions
@@ -146,6 +146,16 @@ export interface SettingsResponse {
settings: BusinessSettings
}
/** Set by payment gateway only — not selectable in admin status change. */
export const SYSTEM_PAYMENT_PROCESS_STEP_IDS = [
'awaiting-payment',
'payment-successful',
] as const
export function isSystemPaymentProcessStep(stepId: string): boolean {
return (SYSTEM_PAYMENT_PROCESS_STEP_IDS as readonly string[]).includes(stepId)
}
export const DEFAULT_ORDER_PROCESS_STEPS: OrderProcessStep[] = [
{
id: 'awaiting-payment',