## Checkout form timeout
After 15 minutes, a timeout will occur in the checkout process. The handling differs based on whether the form is embedded or non-embedded:
- For non-embedded form, when the checkout session times out, the user will be redirected to the failure URL.
- For embedded form for handle form timeout you can use timeout callback in mount config:


```javascript
upgate.mountPaymentElement("%elementId%", "%checkoutUrl%", {
  theme: "LIGHT",
  onTimeout: handleTimeOutFn,
});
```
Or call `onTimeout` method after mount with timeout handler function as a parameter:

```javascript
upgate.onTimeout("%elementId%", handleTimeOutFn);
```
When timeout handler was called you need to remount payment element.
