EC Fraud Protection
Add Fraud Protection to EC2 checkout
Anybody using the default EC2 implementation
CB2 / EARDEN
SHOPRUNNER /
# / Section Title
Contributors
2
Asaf Peleg
�
David Klinge
Mali Patel
Me
Monika Mevenkamp
# / 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);
};
# / 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
}
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
# / Section Title
Request Details
6