controllers

package
v0.0.0-...-e686010 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCheckoutSession

func CreateCheckoutSession(ctx *fiber.Ctx) error

CreateCheckoutSession creates a stripe checkout

func CreateProduct

func CreateProduct(ctx *fiber.Ctx) error

CreateProduct creates a stripe product

func GetAllProduct

func GetAllProduct(ctx *fiber.Ctx) error

GetAllProduct ...

func GetSession

func GetSession(ctx *fiber.Ctx) error

GetSession returns a stripe checkout

func Login

func Login(ctx *fiber.Ctx) error

func VerifyToken

func VerifyToken() fiber.Handler

VerifyToken user token

func Webhook

func Webhook(ctx *fiber.Ctx) error

Webhook to fulfill orers after checkout session

Types

type CreateCheckoutSessionResponse

type CreateCheckoutSessionResponse struct {
	SessionID string `json:"id"`
}

CreateCheckoutSessionResponse has the checkout session id

type LoginInput

type LoginInput struct {
	Identity string `json:"identity"`
	Password string `json:"password"`
}

type Token

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

Token represents a user token id

Jump to

Keyboard shortcuts

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