diff --git a/README.md b/README.md index bc36f44..1c779ff 100644 --- a/README.md +++ b/README.md @@ -120,6 +120,19 @@ xmrpay.link/ --- +## Invoice Lifecycle + +**Optional Deadline:** When creating an invoice, you can set an expiration deadline (7/14/30 days or custom). + +**Lazy Cleanup:** When a deadline is enabled, the short URL and payment proof are automatically deleted if accessed after expiration: +- Accessing an expired short URL returns **HTTP 410 Gone** and removes the entry +- Retrieving a proof for an expired invoice returns `verified: false` and cleans up the entry +- No background jobs or cron tasks required + +**No deadline?** Invoices without a deadline persist indefinitely (no auto-cleanup). + +--- + ## Self-Hosting ```bash @@ -152,7 +165,7 @@ Requirements for full functionality: - [ ] Embeddable `