capitalism

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package capitalism provides a payment management interface for handling subscription plans and payment provider webhooks.

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