Documentation
¶
Overview ¶
Package stripe provides Stripe integration helpers. EXPERIMENTAL: This package is a convenience wrapper and may change.
Index ¶
- Variables
- func AllowInsecureWebhookContext(ctx context.Context, ip netip.Addr) context.Context
- func AllowInsecureWebhookContextFromRequest(ctx context.Context, r *http.Request, resolver identity.Resolver) context.Context
- func HealthChecker(provider ports.PaymentProvider) ports.HealthChecker
- type Config
- type Option
- type Provider
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 ¶
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 ¶
Config aliases the Stripe configuration struct.
func LoadConfig ¶
LoadConfig reads Stripe config from environment.
Click to show internal directories.
Click to hide internal directories.