mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-09-24 16:05:44 +08:00
- Add POST /payment/orders/:id/sync endpoint that queries upstream provider on each poll, complementing webhooks for timely payment detection when webhooks are delayed or unreachable - Fix Stripe payment countdown: pass expires_at to PaymentStatusPanel instead of empty string (was falling back to hardcoded 30 minutes) - Idempotent: toPaid uses atomic UPDATE WHERE status=PENDING, so concurrent webhook + sync calls won't double-credit