1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2025-11-28 03:12:26 +01:00

Make it easy to build without Stripe

This commit is contained in:
binwiederhier 2025-08-07 16:41:39 +02:00
parent 32fa8d43c1
commit ea338ae4fa
11 changed files with 89 additions and 41 deletions

16
payments/payments.go Normal file
View file

@ -0,0 +1,16 @@
//go:build !nopayments
package payments
import "github.com/stripe/stripe-go/v74"
const Available = true
type SubscriptionStatus stripe.SubscriptionStatus
type PriceRecurringInterval stripe.PriceRecurringInterval
func Setup(stripeSecretKey string) {
stripe.EnableTelemetry = false // Whoa!
stripe.Key = stripeSecretKey
}

View file

@ -0,0 +1,13 @@
//go:build nopayments
package payments
const Available = false
type SubscriptionStatus string
type PriceRecurringInterval string
func Setup(stripeSecretKey string) {
// Nothing to see here
}