Stripe returns HTTP 402 ("Payment Required") when a card is declined.
- setTimeout/setInterval
- event handlers
- ajax response handlers
Wrap those entry points (along with a single top-level wrapper which can be done as a build step) and you're almost entirely covered. If you use jQuery along with TraceKit, this plugin does it for you: https://github.com/getsentry/raven-js/blob/master/plugins/jq...