This commit is contained in:
binwiederhier
2025-07-04 06:41:14 +02:00
parent 7b470a7f6f
commit 5ccc131e73
5 changed files with 50 additions and 2 deletions

View File

@@ -1,3 +1,5 @@
//go:build !nopayments
package server
import (
@@ -22,7 +24,7 @@ import (
// Payments in ntfy are done via Stripe.
//
// Pretty much all payments related things are in this file. The following processes
// Pretty much all payments-related things are in this file. The following processes
// handle payments:
//
// - Checkout:
@@ -42,6 +44,8 @@ import (
// This is used to keep the local user database fields up to date. Stripe is the source of truth.
// What Stripe says is mirrored and not questioned.
const hasStripe = true
var (
errNotAPaidTier = errors.New("tier does not have billing price identifier")
errMultipleBillingSubscriptions = errors.New("cannot have multiple billing subscriptions")