1 of 6

EC Fraud Protection

Add Fraud Protection to EC2 checkout

Anybody using the default EC2 implementation

CB2 / EARDEN

SHOPRUNNER /

2 of 6

# / Section Title

Contributors

2

Asaf Peleg

David Klinge

Mali Patel

Me

Monika Mevenkamp

3 of 6

# / EC2 - UI

Purchase iFrame Enables Precog

export const forcePrecog = () => {

const img = document.createElement('img');

img.src = `https://${precogImgUrl}?apiKey=${precogKey}`;

img.style.display = 'none';

document.body.appendChild(img);

const script = document.createElement('script');

script.type = 'text/javascript';

script.text = precogScriptText;

document.head.appendChild(script);

};

4 of 6

# / EC2 - UI

Purchase iFrame Purchase Button Action

Triggers call to wallet endpoint /cart/{ID}/verify

const url = `${SR_URL}/cart/${

cart.checkoutId

}/verify?sessionId=${getPrecogSession()}`;

which comes back with

{

"code": 200,

"decision": "ok",

"score": null,

"confidence": null,

"signals": null,

"tokenId": null,

"message": "DarkMode / always ALLOW",

"details": null,

"allowed": true

}

5 of 6

Wallet to Precog

sessionId

cartId

Ip Address

Uses CMOS data

Customer Name

Billing Addr

Shipping Adr

Cart Items ...

Passes on ipAddress sessionId

Uses data tied to sessionId to make decision

EC2 UI

WALLET

Precog

6 of 6

# / Section Title

Request Details

6