Documentation
¶
Overview ¶
Package commercecheck checks public offer snapshots without contacting Stripe. Only the documented optional commerce convention has typed fields; extensions remain ordinary data and are never normalized or removed from the template.
Index ¶
- func Catalog() []diagnostic.RuleInfo
- func ConfigSecrets(values map[string]any, sources jsonsrc.Sources) []diagnostic.Diagnostic
- func Decimal(raw any) (*big.Rat, bool)
- func Identity(raw string) string
- func Secret(value string) bool
- func SecretOffset(raw []byte) int
- func StripeHost(host string) bool
- type Facts
- type Money
- type Offer
- type URLFinding
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Catalog ¶
func Catalog() []diagnostic.RuleInfo
func ConfigSecrets ¶
func ConfigSecrets(values map[string]any, sources jsonsrc.Sources) []diagnostic.Diagnostic
func Decimal ¶
Decimal accepts finite JSON numbers or machine-readable decimal text, without binary floating-point arithmetic or unbounded scientific-notation expansion.
func Identity ¶
Identity deliberately excludes only query/fragment; it never equates distinct paths, removes trailing slashes or strips the test-mode prefix.
func Secret ¶
Secret recognizes only concrete Stripe secret-key shapes, never publishable keys, public object IDs, customer field names or generic words like token.
func SecretOffset ¶
func StripeHost ¶
Types ¶
type Facts ¶
type Money ¶
type Offer ¶
type Offer struct {
Path, SKU, Name, CheckoutURLKey, CheckoutURL string
Price *Money
Location diagnostic.Location
}
type URLFinding ¶
func Checkout ¶
func Checkout(raw string) []URLFinding
Checkout never fetches a destination or assumes that a custom domain is not Stripe. Parameter checks apply to confirmed standard Payment Link hosts only.