Runtime payment-provider configuration helpers.
PAYMENTS_ENVIRONMENT is the single switch that selects sandbox versus
production provider credentials for this host.
Summary
Functions
The API version for creating a Checkout Session: the configured one, raised to 2025-03-31.basil when Managed Payments is on and the configured one is older. Only that call is raised, so every other request, and the payloads core parses from them, keep the configured version.
Whether checkouts go through Stripe Managed Payments (Stripe as merchant of record).
Types
@type environment() :: String.t()
Functions
@spec environment() :: environment()
@spec environments() :: [String.t()]
@spec production?() :: boolean()
@spec stripe_api_version() :: String.t()
@spec stripe_candidate_labels(:secret_key | :webhook_secret) :: [String.t()]
@spec stripe_checkout_api_version() :: String.t()
The API version for creating a Checkout Session: the configured one, raised to 2025-03-31.basil when Managed Payments is on and the configured one is older. Only that call is raised, so every other request, and the payloads core parses from them, keep the configured version.
@spec stripe_managed_payments?() :: boolean()
Whether checkouts go through Stripe Managed Payments (Stripe as merchant of record).
@spec stripe_secret_key() :: String.t() | nil
@spec stripe_webhook_secret() :: String.t() | nil