This repository has been archived on 2026-03-21. You can view files and clone it, but cannot push or open issues or pull requests.
payfrit-biz/cron
John Mizerek 03c675336e fix: harden tab expiry cron against silent capture failures
- Check PI state on Stripe before capture/cancel (requires_capture,
  canceled, requires_payment_method, etc.)
- Add application_fee_amount for Stripe Connect (was missing — all
  money went to connected account on auto-close)
- Re-verify tab StatusID=1 before processing (prevents race with
  user-initiated close)
- Add WHERE StatusID=1 to closing UPDATE (prevents overwriting
  concurrent user close)
- Log full Stripe response status and HTTP code for debugging
- Handle already-cancelled PIs gracefully (mark tab expired)
- Handle unconfirmed PIs (cancel and mark expired)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 13:00:39 -08:00
..
expireStaleChats.cfm Fix TaskID → ID in WHERE clauses on Tasks table (4 files + cron copy) 2026-01-31 21:00:46 -08:00
expireTabs.cfm fix: harden tab expiry cron against silent capture failures 2026-03-03 13:00:39 -08:00