stripe

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: 12 Imported by: 0

Documentation

Overview

Package stripe provides Stripe functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProvideStripePaymentManager

func ProvideStripePaymentManager(logger logging.Logger, tracerProvider tracing.TracerProvider, cfg *Config) capitalism.PaymentManager

ProvideStripePaymentManager builds a Stripe-backed PaymentManager.

Types

type APIKey

type APIKey string

APIKey is a string alias for dependency injection.

type Config

type Config struct {
	APIKey        string `json:"apiKey"        toml:"api_key"`
	WebhookSecret string `json:"webhookSecret" toml:"webhook_secret"`
}

Config configures our Stripe interface.

func (*Config) ValidateWithContext

func (cfg *Config) ValidateWithContext(ctx context.Context) error

ValidateWithContext validates a Config struct.

type WebhookSecret

type WebhookSecret string

WebhookSecret is a string alias for dependency injection.

Jump to

Keyboard shortcuts

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