## Create a Radar session Use `stripe.createRadarSession()` to associate client browser information with a Radar Session ID. This ID can then be passed to Stripe when [creating charges and payment methods](/radar/radar-session.md) to associate client browser information with those charges and improve Radar's ability to identify fraud. > Note that `stripe.createRadarSession` should be non-blocking. If you receive an error from this function, continue on with completing charges without passing through a Radar Session ID. This method returns a `Promise` which resolves with a `result` object. This object has either: * `result.radarSession`: a Radar Session was created successfully. * `result.error`: an error. Refer to the [API reference](/api#errors) for all possible errors and the [FPX guide](/payments/fpx/accept-a-payment#error-codes) for FPX specific errors. After you receive a Radar Session ID, pass it to your server and subsequently include it in your API requests to create charges, payment methods, or to create or confirm a PaymentIntent. **Syntax:** `stripe.createRadarSession(...)` ### Create a Radar Session ```js var stripe = Stripe('{TEST_PUBLISHABLE_KEY}'); stripe.createRadarSession().then(function(result) { // Handle result.error or result.radarSession }); ``` ```es_next var stripe = Stripe('{TEST_PUBLISHABLE_KEY}'); const {radarSession, error} = await stripe.createRadarSession(); ```