Menu
Feedback
Start here
Tutorials


Tutorials
Payment Settings
Setting up Nethone antifraud
4 min read

Nethone is an anti-fraud solution that identifies specific aspects of user behavior and minimizes the risk of fraud in your store's transactions by using artificial intelligence and machine learning.

You can integrate your store with Nethone via Application Key (App Key) and Application Token (App Token). You will find this information in the plugin package that Nethone will send you after you sign the contract. If you have any questions, please contact the Nethone support team.

To set up Nethone in your store, you will need to:

Once the configuration process is complete, each purchase attempt will be analyzed by the anti-fraud solution and displayed on your Nethone dashboard.

Configuring Nethone’s anti-fraud solution

  1. Go to the VTEX Admin.
  2. Access the Payments module.
  3. Click on Settings.
  4. In Gateway Affiliations, click on the green “+” button.
  5. In the Anti-fraud section, select the Nethone option.
  6. In the Affiliation name field, enter Nethone.
  7. In the Application Key and Application Token fields, enter the data you received in the plugin package.
  8. Click on Save.

Associating Nethone’s solution with a payment condition

To perform the anti-fraud analysis, the Nethone affiliation must be associated with a payment condition. You can either use an existing condition or create a new one. Follow the instructions below:

  1. Go to the VTEX Admin.
  2. Access the Payments module.
  3. Click on Settings.
  4. In the Payment conditions tab, select an existing condition, or check out the Configuring a payment condition tutorial to create a new one.
  5. Make sure the payment condition is Active.
  6. After selecting or creating a new condition, enable the option Use anti-fraud solution.
  7. Select the Nethone option.
  8. Click on Save.

Enabling Google Tag Manager at checkout

The next step for configuring the Nethone affiliation is integrating with Google Tag Manager via Javascript.

  1. Click here to access Google Tag Manager.
  2. Log in to your account. If you don't have an account yet, please create one.
  3. In the Google Tag Manager workspace, look for a number that starts with GTM-XXXX. Copy that number.
  4. Go to your VTEX Admin.
  5. Access the Store setup section.
  6. Click on the Checkout option.
  7. In the Default card, click on the gear icon.
  8. In the top menu, select the Checkout tab.
  9. In the Google Tag Manager field, paste the identifier number you copied from the workspace.
  10. Click on Save.

Configuring Google Tag Manager

The configurations documented below are to be performed on a system external to VTEX and may be discontinued without notice.

Once you have configured your account ID number at checkout, follow the instructions below to track purchase attempts made in your store.

  1. Click here and sign in to Google Tag Manager.
  2. On the left sidebar, click on Variables.
  3. In the User-Defined Variables section, click on New.
  4. In Variable Configuration, click on the pencil icon.
  5. In the Utilities section, select the Constant option.
  6. Name the variable profilerUrl.
  7. In the Value field, enter the link provided by Nethone in the plugin package you received.
  8. Click on Save.

Creating a tag trigger

Once the variable has been created, follow the steps below to define the triggers:

  1. In Google Tag Manager’s sidebar, click on Triggers.
  2. Click on New.
  3. Name the trigger Profiler Trigger.
  4. In Trigger Configuration, click on the pencil icon.
  5. In the Other option, click on Custom Event.
  6. In the Event name field, enter the following information including the parentheses: (email|profile|shipping|payment).
  7. Enable the Use regex matching option.
  8. In This trigger fires on, select Some Custom Events.
  9. Select the options Page Path, Matches RegEx, Checkout.
  10. Click on Save.
  11. Return to the workspace and click on Tags.
  12. Click on New.
  13. Under Tag Configuration, click on the pencil icon.
  14. In the Custom section, select the Custom HTML option.
  15. Paste the following code into the HTML field, and ensure that the value in the src="your profiling link" field is the same as the one provided by Nethone in the plugin package.

<script type="text/javascript" id="nthScript" crossorigin="use-credentials"
src="yourprofilinglink" async></script>
<script>
(function() {
function uuidv4() {
return
'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r &
0x3 | 0x8);
return v.toString(16);
});
}
var attRef = uuidv4();
window.vtex.deviceFingerprint = attRef;
var options = {
attemptReference: attRef,
sensitiveFields: []
};
if (window.dftp) {
dftp.init(options);
} else {
var el = document.getElementById("nthScript");
el.addEventListener("load", function() {
dftp.init(options);
});
}
})()
</script>

  1. Enable the Support document.write option.
  2. Expand the Advanced Settings, and in the Tag firing option field, select Once per page.
  3. On the Triggers menu, click on the pencil icon.
  4. Select the Profiler Trigger option and click on Save.
  5. Click on Submit.
  6. In the Version Name field, enter Nethone Profiler and click on Publish.

Once this is done, the Nethone Anti-Fraud will have been installed correctly and will be ready to process your transactions.

Contributors
1
Photo of the contributor
+ 1 contributors
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Setting up Mercado Pago Offline and Wallet as payment methods
« Previous
Setting up offline payment conditions using MercadoPago (Latin America)
Next »
Contributors
1
Photo of the contributor
+ 1 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX Community
Join our community
Request VTEX support
For personalized assistance, contact our experts
Open a support ticket
GitHubDeveloper PortalCommunityFeedback