Appearance
@swapped/connect-sdk / react / UseRestartSessionResult
Type Alias: UseRestartSessionResult
UseRestartSessionResult =
object
Defined in: src/react/session/hooks/useRestartSession.ts:6
Properties
error
error:
Error|null
Defined in: src/react/session/hooks/useRestartSession.ts:12
Last restart error, or null.
isRestarting
isRestarting:
boolean
Defined in: src/react/session/hooks/useRestartSession.ts:10
Whether a restart is currently in progress.
restartSession
restartSession: (
sessionId?) =>Promise<SessionData>
Defined in: src/react/session/hooks/useRestartSession.ts:8
Start a new transaction for the same merchant flow.
Parameters
sessionId?
string
Returns
Promise<SessionData>