# Fraud prevention

WHITELABEL integrates with external fraud detection services to help prevent fraud in your payment process. You can configure both **pre-authorization** and **post-authorization** fraud screening through your preferred **fraud detection provider**.

### Fraud prevention with WHITELABEL

When using WHITELABEL's SDK, no additional development is required. Simply add the fraud detection provider to the payment route, and WHITELABEL will handle the rest.

<Frame>![](/images/reference/fraud/image1.png)</Frame>

When a payment is created, WHITELABEL generates different transactions based on the payment method route. If fraud verification is enabled in the route, WHITELABEL creates a `FRAUD_SCREENING` transaction and associates it with the payment. This transaction contains details about the fraud verification outcome, which you can also view in the [payment details](/docs/transactions#transaction-types-and-statuses) on your WHITELABEL dashboard.

<Note>
**Session ID collection is route-specific**

The SDK only collects a device fingerprint or `session_id` for fraud providers configured in the merchant's active fraud route. If you need to collect a `session_id` for a specific provider, make sure that provider is added to the route for that payment method on your WHITELABEL dashboard.
</Note>

### Forter Session Token Capture

If you are using **Forter** for fraud detection, the WHITELABEL SDK provides a reliable way to capture the session token.

To ensure the token is correctly captured and associated with the transaction, you should listen for the `ftr:tokenReady` event. This event is triggered when the Forter session token is generated and ready to be used.

```javascript
window.addEventListener('ftr:tokenReady', (event) => {
  const forterToken = event.detail;
  console.log('Forter Session Token ready:', forterToken);
});
```

Using this listener prevents issues with stale or missing tokens by ensuring you always capture the token at the right moment during the initialization or unmounting of the Forter component.