| 1 |
//go:build !nopayments |
| 2 |
|
| 3 |
package payments |
| 4 |
|
| 5 |
import "github.com/stripe/stripe-go/v74" |
| 6 |
|
| 7 |
// Available is a constant used to indicate that Stripe support is available. |
| 8 |
// It can be disabled with the 'nopayments' build tag. |
| 9 |
const Available = true |
| 10 |
|
| 11 |
// SubscriptionStatus is an alias for stripe.SubscriptionStatus |
| 12 |
type SubscriptionStatus stripe.SubscriptionStatus |
| 13 |
|
| 14 |
// PriceRecurringInterval is an alias for stripe.PriceRecurringInterval |
| 15 |
type PriceRecurringInterval stripe.PriceRecurringInterval |
| 16 |
|
| 17 |
// Setup sets the Stripe secret key and disables telemetry |
| 18 |
func Setup(stripeSecretKey string) { |
| 19 |
stripe.EnableTelemetry = false // Whoa! |
| 20 |
stripe.Key = stripeSecretKey |
| 21 |
} |