Deduce

Integration guide for leveraging Deduce's fraud detection service.

Objective

Deploy a 'Before registration' hook in Strivacity leveraging Deduce's fraud detection service that uses trust and risk indicators to determine if a session can be trusted.

πŸ“˜

For more insights, visit Deduce's knowledge base.

This integration will demonstrate how to allow customer registration from trusted sessions to prevent registration fraud.

Overview

Protect your brand from fraudulent actors by integrating with Deduce's fraud detection solution. Combining Deduce with Strivacity's powerful Lifecycle Event Hooks, rely on extensive online behavior data to make informed security decisions.

Prerequisites

General

  • Basic familiarity with nodejs, javascript, or similar languages
  • Basic understanding of HTTP request/response flows

OR

  • Web application development experience

Deduce

  • Site and API key provided by Deduce

Strivacity

  • A Strivacity instance for testing
  • An application in your Strivacity instance to apply and test the Lifecycle Event Hook

Configuration steps

Set up your Deduce test site

  1. Sign up for a Deduce test site here.
  2. Submit your details.

πŸ“˜

Deduce's integration guide will start downloading automatically after submitting your form.

  1. Deduce will supply you with your API key and site details shortly after.

Create a 'Before registration' hook from the Deduce plugin

Our plugin library contains an off-the-shelf Deduce event hook template that jumpstarts your integration process and allows you to customize it to your needs.

  1. In the Admin Console, go to Lifecycle Event Hooks.
  2. Click ' Add plugin'. You will be redirected to the plugin library.
  3. Click on the Deduce logo. You can find it in the Fraud Detection section.
  4. There will be a pre-select for the event hook, so you only need to click 'Add'.
  5. Wait for the Deduce hook template to be added.

🚧

If the Admin Console doesn't want to add the hook, it's most likely that the name of the hook is already taken. Click 'Edit' and you can modify the name of the event hook. Then continue with 'Try again'.

  1. If the hook has been successfully added, you can return to the list view with 'Back to plugin library', then 'Back to event hooks'.

Add dependencies

  1. Select the Deduce event hook you've just added.
  2. In editor view, click on the cube icon on the top left corner of the IDE panel.
  3. Click 'Add dependency'.
  4. Search for the 'request-promise-native' package and add its latest version.

This should appear in the dependencies list on the left.

πŸ“˜

Beta packages may not be stable. For best results use the latest stable package versions.

Add dependencies option

Add dependencies option

  1. At, 'site' at the top of the script, add the site identifier you have obtained from Deduce.
  2. At 'apiKey' at the top of the script, add the API key you have obtained from Deduce.
  3. Save your changes.

πŸ“˜

Your hook's status will stay Non-Deployed until you add it to an application.

Create a Strivacity application

  1. Go to Applications and click 'Create Application'.
  2. Add a name, description, and define the mandatory properties of the application.
  3. Scroll down to Lifecycle Event Hooks and assign your 'Before registration' hook to your Strivacity test application to integrate with Deduce.
  4. Save your changes.

βœ…

Copy the test application's self-service URL.

Test your integration

  1. Go to an incognito browser.

πŸ“˜

Make sure only one incognito window is open as multiple windows share session information.

  1. Go to the self-service portal of the Strivacity application.
  2. Try to register as you normally would.

πŸ“˜

If Deduce does not return a "TRUSTED" risk score your registration process will be blocked. For additional support in determining trust errors, please contact Deduce support.