subscription

package
v0.0.0-...-480b165 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyRoutes

func ApplyRoutes(r *gin.RouterGroup)

func CheckSubscription

func CheckSubscription(c *gin.Context)

func CreatePaymentIntent

func CreatePaymentIntent(c *gin.Context)

func HandleCanceledOrFailedPaymentIntent

func HandleCanceledOrFailedPaymentIntent(eventDataRaw json.RawMessage) error

func HandleWebhook

func HandleWebhook(c *gin.Context)

func TrialSubscription

func TrialSubscription(c *gin.Context)

Types

type SubscriptionResponse

type SubscriptionResponse struct {
	Subscription *models.Subscription `json:"subscription,omitempty"`
	Status       string               `json:"status"`
}

Jump to

Keyboard shortcuts

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