payment

package
v0.0.0-...-cb886e6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const StandardPlanEnvLimit = 10

Variables

This section is empty.

Functions

func NewStripePaymentProvider

func NewStripePaymentProvider(
	db *database.DB,
	secretKey, standardPlanProductID, professionalPlanProductID string,
	friendsArr []string,
	bestFriendsArr []string,
) *stripePaymentProvider

Types

type PaymentPlan

type PaymentPlan string
const (
	PaymentPlanFree         PaymentPlan = "free"
	PaymentPlanStandard     PaymentPlan = "standard"
	PaymentPlanProfessional PaymentPlan = "professional"
)

func (*PaymentPlan) ActiveEnvironmentsLimit

func (plan *PaymentPlan) ActiveEnvironmentsLimit() int

func (*PaymentPlan) PermanentEnvironmentsLimit

func (plan *PaymentPlan) PermanentEnvironmentsLimit() int

type PaymentProvider

type PaymentProvider interface {
	SaveSubscription(ctx context.Context, owner, subscriptionID string) error
	GetOwnerPlan(ctx context.Context, owner string) (PaymentPlan, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL