Implement payment reconciliation, callbacks, and invoice expiry/cancel flows #9

Open
opened 2026-03-10 14:40:55 +03:00 by sirily · 0 comments
Owner

Problem
The repo can create invoices and manually mark them paid, but it still lacks provider callback handling, reconciliation jobs, and invoice expiration/cancel state transitions.

Why this matters
The current billing flow is not production-safe and still depends on manual mutation of invoices for core subscription activation.

Acceptance criteria

  • Add provider callback/webhook endpoints or polling integration.
  • Implement worker-side reconciliation of pending invoices.
  • Transition invoices to expired / canceled when appropriate.
  • Keep subscription activation idempotent across callbacks and manual operations.
Problem The repo can create invoices and manually mark them paid, but it still lacks provider callback handling, reconciliation jobs, and invoice expiration/cancel state transitions. Why this matters The current billing flow is not production-safe and still depends on manual mutation of invoices for core subscription activation. Acceptance criteria - Add provider callback/webhook endpoints or polling integration. - Implement worker-side reconciliation of pending invoices. - Transition invoices to `expired` / `canceled` when appropriate. - Keep subscription activation idempotent across callbacks and manual operations.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sirily/nroxy#9