- 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> |
||
|---|---|---|
| .. | ||
| expireStaleChats.cfm | ||
| expireTabs.cfm | ||