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:
co-authored by
Cursor
parent
c59ca4444f
commit
016dd0b081
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user