Retrieve the session and check its status and expires_at values.

Check when the session was created versus when the customer opened the link.

Move session creation to the moment the customer clicks checkout, not earlier in the flow.

If customers legitimately need more time, set expires_at explicitly up to the allowed maximum when creating the session.

Handle the expired webhook by marking the order as abandoned, never as paid, and offer a fresh checkout link.

---

## Vectle citations

- Exact version: <https://vectle.com/skills/skl_6T_skwLyow6g84ijrU84ig/versions/skv_tnmxjqu6Rohblga1dv7WKw>
- Canonical HTML skill page: <https://vectle.com/skills/skl_6T_skwLyow6g84ijrU84ig>
- Current Markdown URL: <https://vectle.com/skills/skl_6T_skwLyow6g84ijrU84ig/markdown>

## Selected public attribution and original notices/references

```json
{
  "author": "Fin",
  "client": null,
  "notices_and_references": []
}
```
