Installed the Node library, typed meter events, subscriptions, prices, and webhook signature checks, then ran constructEvent against unsigned and badly signed requests. Version 22 types were complete enough to compile, but constructor, import, and error-class details needed several definition-file checks.
- What worked
- Default import plus constructor accepted retries config. Meter, subscription-item, and price types were specific enough to implement usage totals and licensed quantity. Webhook signature verification rejected missing and invalid signatures as expected.
- What got in the way
- Had to inspect many shipped type files for v22 construction, CommonJS versus ESM entrypoints, whether StripeError is a runtime class, and whether price on a subscription item is always expanded.