fix(payment): fail order polling after timeout

This commit is contained in:
2026-06-30 10:37:44 +08:00
parent c94c13d863
commit 01a17fbdc9
6 changed files with 142 additions and 7 deletions
+2
View File
@@ -16,6 +16,7 @@ export interface PaymentState {
currentOrderId: string | null;
payParams: Record<string, unknown> | null;
orderStatus: PaymentOrderStatus | null;
orderPollingStartedAt: number | null;
errorMessage: string | null;
launchNonce: number;
}
@@ -29,6 +30,7 @@ export const initialState: PaymentState = {
currentOrderId: null,
payParams: null,
orderStatus: null,
orderPollingStartedAt: null,
errorMessage: null,
launchNonce: 0,
};