checkouts

package
v0.2.30 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2025 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfEmailIsBeingUsedInStripe

func CheckIfEmailIsBeingUsedInStripe(email string) bool

func CheckIfIDBeingUsedInStripe

func CheckIfIDBeingUsedInStripe(id string) bool

func GetCustomer

func GetCustomer(id string) (*stripe.Customer, error)

func GetFixedBillingCycleAnchor

func GetFixedBillingCycleAnchor(month int, day int) int64

func GetFixedBillingFromENV

func GetFixedBillingFromENV() int64

func HandleCreatingCustomer

func HandleCreatingCustomer(usr database.User, customer_id string) (*stripe.Customer, error)

if custumer already exists in stripe it does not create a new one and uses the existing one

func ValidateUserInfoToActivate

func ValidateUserInfoToActivate(customer_id string) (database.User, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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