payment

package
v0.42.3 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCartCacheKey

func GenerateCartCacheKey(r *http.Request) string

GenerateCartCacheKey generates a cache key for guest cart based on IP and user agent

func GenerateStripePaymentsCheckoutURL

func GenerateStripePaymentsCheckoutURL(options GenerateStripePaymentsCheckoutURLOptions) (string, error)

GenerateStripePaymentsCheckoutURL - generates checkout URL for "Stripe Payments"

Types

type GenerateStripePaymentsCheckoutURLOptions

type GenerateStripePaymentsCheckoutURLOptions struct {
	CustomerEmail     string
	AmountToPay       float64
	UrlPaymentCancel  string
	UrlPaymentSuccess string
	StripeKeyPrivate  string
	LineItems         []LineItem
	OrderID           string
}

GenerateStripePaymentsCheckoutURLOptions options for "Stripe Payments"

type LineItem

type LineItem struct {
	Name     string
	Quantity int
	Price    float64
}

Jump to

Keyboard shortcuts

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