diff --git a/api/app/config.py b/api/app/config.py index 2aa8f6c..d2be15e 100644 --- a/api/app/config.py +++ b/api/app/config.py @@ -25,7 +25,7 @@ API_KEYS = [ API_KEY_ENCRYPTION_KEY = _get_env("API_KEY_ENCRYPTION_KEY") INVOICE_RECONCILE_INTERVAL_SECONDS = int(os.getenv("INVOICE_RECONCILE_INTERVAL_SECONDS", "30")) -INVOICE_DEFAULT_EXPIRY_HOURS = int(os.getenv("INVOICE_DEFAULT_EXPIRY_HOURS", "24")) +INVOICE_DEFAULT_EXPIRY_HOURS = int(os.getenv("INVOICE_DEFAULT_EXPIRY_HOURS", "1")) LATE_PAYMENT_LOOKBACK_HOURS = int(os.getenv("LATE_PAYMENT_LOOKBACK_HOURS", "48")) DONATION_EXPIRY_MINUTES = int(os.getenv("DONATION_EXPIRY_MINUTES", "30")) DONATION_ACTIVE_INVOICE_LIMIT = int(os.getenv("DONATION_ACTIVE_INVOICE_LIMIT", "25")) diff --git a/api/app/schemas.py b/api/app/schemas.py index 72e0047..a94608d 100644 --- a/api/app/schemas.py +++ b/api/app/schemas.py @@ -29,7 +29,7 @@ class InvoiceCreate(BaseModel): metadata: dict[str, Any] | None = None expires_at: datetime | None = Field( default=None, - description="Defaults to 24 hours from creation if omitted.", + description="Defaults to 60 minutes from creation if omitted.", ) @field_validator("currency") @@ -93,7 +93,7 @@ class InvoiceCreateUser(BaseModel): metadata: dict[str, Any] | None = None expires_at: datetime | None = Field( default=None, - description="Defaults to 24 hours from creation if omitted.", + description="Defaults to 60 minutes from creation if omitted.", ) @field_validator("currency") diff --git a/ui/components/create-invoice-card.tsx b/ui/components/create-invoice-card.tsx index ca84798..19a011f 100644 --- a/ui/components/create-invoice-card.tsx +++ b/ui/components/create-invoice-card.tsx @@ -316,7 +316,7 @@ export default function CreateInvoiceCard() { defaultValue={10} required /> -

Expiry defaults to 24 hours.

+

Expiry defaults to 60 minutes.

- Leave blank to keep the default 24-hour expiry. + Leave blank to keep the default 60-minute expiry.

diff --git a/ui/components/invoice-panel.tsx b/ui/components/invoice-panel.tsx index bae409f..74a4fbc 100644 --- a/ui/components/invoice-panel.tsx +++ b/ui/components/invoice-panel.tsx @@ -1013,7 +1013,7 @@ export default function InvoicePanel({ />

- Leave blank to keep the default 24-hour expiry. + Leave blank to keep the default 60-minute expiry.

@@ -1165,7 +1165,7 @@ export default function InvoicePanel({ ? new Date( expiryValue ).toLocaleString() - : "Default (24 hours)"} + : "Default (60 minutes)"}