capitalism

package
v0.0.0-...-98cd694 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Unlicense Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NoopPaymentManager

type NoopPaymentManager struct{}

NoopPaymentManager is a no-op payment manager.

func (*NoopPaymentManager) HandleEventWebhook

func (n *NoopPaymentManager) HandleEventWebhook(_ *http.Request) error

HandleEventWebhook satisfies our interface.

type PaymentManager

type PaymentManager interface {
	HandleEventWebhook(req *http.Request) error
}

PaymentManager handles payments via 3rd-party providers.

type SubscriptionPlan

type SubscriptionPlan struct {
	ID    string
	Name  string
	Price uint32
}

SubscriptionPlan describes a plan you pay on a recurring monthly basis for.

Directories

Path Synopsis
Package stripe provides Stripe functionality.
Package stripe provides Stripe functionality.

Jump to

Keyboard shortcuts

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