Skip to content

@swapped/connect-sdk / react / useRestartSession

Function: useRestartSession()

useRestartSession(): UseRestartSessionResult

Defined in: src/react/session/hooks/useRestartSession.ts:23

Restart the current session (new payment run for the same merchant flow).

Prefer this over calling client.restartSession() directly when you need button loading / error state in React.

Returns

UseRestartSessionResult