mourosSub

package
v0.2.24 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GLOBAL_TYPE_OF_SUBSCRIPTION types.TypeOfSubscription
)

Functions

func HandleInitialSubscriptionPaymentStartToday

func HandleInitialSubscriptionPaymentStartToday(charge stripe.Charge) error

Initial Subscription Payment Start Today

func InitNormalCheckouts

func InitNormalCheckouts(d string, sp string, cp string, gtos types.TypeOfSubscription)

func MourosSubscription

func MourosSubscription(w http.ResponseWriter, r *http.Request)

func ReturnDisctountStruct

func ReturnDisctountStruct(userID int) []*stripe.CheckoutSessionDiscountParams

this is for mouros subscription, if user had any subscription, return the discount

func SetCoupon

func SetCoupon(subscriptionStripeID string, couponID ...string) error

Types

type PrePayment

type PrePayment struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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