ANTI-TAMPERING: recompute the total from authoritative line prices + the discount and compare it to the amount
the client claims (e.g. a PaymentIntent amount the browser posted). Reject any mismatch beyond toleranceCents
(default 0 — money is exact). The server must call this before honoring any client-supplied amount.
Deprecated
@suluk/stripe is DEPRECATED and gutted (C048) — it is now a thin re-export shell over @suluk/payments and will be REMOVED in the next major. Import everything below from
@suluk/paymentsinstead.What moved to @suluk/payments (re-exported here for backward compatibility): the pricing primitives, the Stripe webhook surface (signature verification + the event router), and the Stripe form-encoder/transport. What was DELETED (dead — no consumer): the Stripe usage-billing (Billing Meters), the checkout-param builders, the shipping/tax adapters, the
PaymentProvider/StripeLiketypes, andrestStripe/retrievePaymentIntent. Use@suluk/payments'PaymentConnector(agnostic) orstripeConnectorfor payment flows.