stripe

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package stripe provides Stripe integration helpers. EXPERIMENTAL: This package is a convenience wrapper and may change.

Index

Constants

This section is empty.

Variables

View Source
var (
	// WithSkipVerify disables webhook signature verification in dev mode.
	WithSkipVerify = stripe.WithSkipVerify
	// WithDevMode enables development-only webhook behavior.
	WithDevMode = stripe.WithDevMode
	// AllowInsecureWebhook marks webhook contexts safe for dev-only skipping.
	AllowInsecureWebhook = stripe.AllowInsecureWebhook
	// AllowInsecureWebhookFromRequest marks webhook contexts safe based on request IP.
	AllowInsecureWebhookFromRequest = stripe.AllowInsecureWebhookFromRequest
)

Functions

func AllowInsecureWebhookContext

func AllowInsecureWebhookContext(ctx context.Context, ip netip.Addr) context.Context

AllowInsecureWebhookContext marks a webhook request as safe for dev-only skipping.

func AllowInsecureWebhookContextFromRequest

func AllowInsecureWebhookContextFromRequest(ctx context.Context, r *http.Request, resolver identity.Resolver) context.Context

AllowInsecureWebhookContextFromRequest derives source IP via resolver and marks context.

func HealthChecker

func HealthChecker(provider ports.PaymentProvider) ports.HealthChecker

HealthChecker reports readiness of the Stripe provider.

Types

type Config

type Config = stripe.Config

Config aliases the Stripe configuration struct.

func LoadConfig

func LoadConfig(loader *config.Loader) Config

LoadConfig reads Stripe config from environment.

type Option

type Option = stripe.Option

Option aliases the Stripe provider option type.

type Provider

type Provider = stripe.Provider

Provider aliases the Stripe payment provider type.

func New

func New(secretKey, webhookSecret string, opts ...Option) *Provider

New returns a Stripe-backed payment provider.

Jump to

Keyboard shortcuts

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