---
title: SDK WEB in fraud detection
description: Integration information for SDK WEB in fraud detection
---

[Skip to content](https://docs.ironchip.com/en/sdk-web-in-fraud-detection#main-content)

- [English](https://docs.ironchip.com/en/sdk-web-in-fraud-detection)
- [Español](https://docs.ironchip.com/sdk-web-in-fraud-detection)

English

Show submenu for translations

[Contac us](https://docs.ironchip.com/en/kb-tickets/new?hsLang=en) [Customer portal](https://support.ironchip.com/tickets?hsLang=en)

![01\_1-ironchip\_logo\_articulación horizontal\_ppal.png\]](https://docs.ironchip.com/hs-fs/hubfs/01_1-ironchip_logo_articulacio%CC%81n%20horizontal_ppal.png?height=40&name=01_1-ironchip_logo_articulacio%CC%81n%20horizontal_ppal.png)

Open main navigation

Close main navigation

- - [English](https://docs.ironchip.com/en/sdk-web-in-fraud-detection)
    - [Español](https://docs.ironchip.com/sdk-web-in-fraud-detection)

  English
  
  Show submenu for translations
- [Contac us](https://docs.ironchip.com/en/kb-tickets/new)
- [Customer portal](https://support.ironchip.com/tickets)
- Contact Us

 Contact Us

 Hello. ¿How can we help you?

- There are no suggestions because the search field is empty.

1. [Help Center](https://docs.ironchip.com/en?hsLang=en)
2. [Fraud Detection platform](https://docs.ironchip.com/en/fraud-detection-platform?hsLang=en)
3. [For developers](https://docs.ironchip.com/en/fraud-detection-platform?hsLang=en#for-developers)

# SDK WEB in fraud detection

## SDK WEB in fraud detection

### What is LBFraud web SDK?

LBFraud web SDK is the piece that allow you to integrate Ironchip LBFraud in your web  
environment. Using it Ironchip can evaluate if the device and environment that uses the  
website is secure. To add the SDK to the website you just need to follow the next steps.

#### JavaScript integration

[https://lbfraud-web-sdk.s3.eu-west-3.amazonaws.com/release/0.1/LBFraud-SDKWeb.modern.js](https://lbfraud-web-sdk.s3.eu-west-3.amazonaws.com/release/0.1/LBFraud-SDKWeb.modern.js)

First, you need to download the JavaScript file necessary JavaScript file. Once you  
have it you need to import the file 

```
import { LBFraudSDK, LBFraudSDKEnvironment } from 'ironchip.modern.js';
```

Then, with the SDK imported you need to initialize the client. Please ensure that you  
have the API- Key and the environment where you will work.

You will initialize the client (Choose just one environment): 

```
const client = new LBFraudSDK({apiKey: 'api-key',environment: LBFraudSDKEnvironment.Development,LBFraudSDKEnvironment.Testing,LBFraudSDKEnvironment.Production,});
```

No sooner you initialize the client you can send transaction using the next method.

Web SDK 2

You have to pass as entry parameters the Transaction ID and the User ID. 

```
client.sendTransaction(transactionID, userID)
```

And that is all. Every time the method is called it will send a transaction. 

### Full example

The following code is a very simple example to test the SDK

```
import { LBFraudSDK, LBFraudSDKEnvironment } from '../dist/ironchip.modern.js';const client = new LBFraudSDK({apiKey: 'api-key',environment: LBFraudSDKEnvironment.Testing});const myButton = document.getElementById('myButton');function setListener() {myButton.onclick = function(){const transactionID = document.getElementById('transactionId').value;const userID = document.getElementById('userId').value;client.sendTransaction(transactionID, userID).then((success) => {console.log(success)}).catch((errorMsg) => {console.log(errorMsg)});}}window.onload=function(){setListener()} 
```

```
<!DOCTYPE html><html><head>Web SDK 3<title>Web SDK test</title></head><body><label for="transactionId">Transaction ID:</label><input type="text" id="transactionId" name="transactionId"><label for="userId">User ID:</label><input type="text" id="userId" name="userId"><button id="myButton">Send transaction</button><script type="module" src="test.js"></script></body></html>

```

 

 

- [Identity Platform](https://docs.ironchip.com/en/identity-platform?hsLang=en#main-content)

    - [User Guide](https://docs.ironchip.com/en/identity-platform?hsLang=en#user-guide)
    - [Administrator Guide](https://docs.ironchip.com/en/identity-platform?hsLang=en#administrator-guide)
    - [Get Started](https://docs.ironchip.com/en/identity-platform?hsLang=en#get-started)
    - [Integration protocols](https://docs.ironchip.com/en/identity-platform?hsLang=en#integration-protocols)
    - [Integrations](https://docs.ironchip.com/en/identity-platform?hsLang=en#integrations)
    - [SLA](https://docs.ironchip.com/en/identity-platform?hsLang=en#sla)
- [Fraud Detection platform](https://docs.ironchip.com/en/fraud-detection-platform?hsLang=en#main-content)

    - [Guides](https://docs.ironchip.com/en/fraud-detection-platform?hsLang=en#guides)
    - [For developers](https://docs.ironchip.com/en/fraud-detection-platform?hsLang=en#for-developers)
    - [SDK](https://docs.ironchip.com/en/fraud-detection-platform?hsLang=en#sdk)
- [Security & SLA](https://docs.ironchip.com/en/security-sla?hsLang=en)
- [FAQ's](https://docs.ironchip.com/en/faqs?hsLang=en#main-content)

    - [General](https://docs.ironchip.com/en/faqs?hsLang=en#general)
    - [Identity platform](https://docs.ironchip.com/en/faqs?hsLang=en#identity-platform)

[![Ironchip](https://docs.ironchip.com/hs-fs/hubfs/logohubspot.png?width=300&height=74&name=logohubspot.png "Ironchip")](http://www.ironchip.com)

Help center ironchip.net

Copyright © 2026, Ironchip Telco S.L.