Menu
Feedback
Start here
Tutorials


Tutorials
Explore in-depth tutorials for operating your VTEX store.
Tutorials
Payments
Payment Settings
Setting up the device fingerprint for Braspag

Device Fingerprint is an identifier that acts in payment processing to improve fraud risk analysis.

By collecting non-sensitive data, Device Fingerprint identifies and analyzes the security level of the device used to perform a given transaction. It also analyzes transactions previously performed with that device.

Each store must have only one Device Fingerprint registered. Check if you have already registered the Device Fingerprint in another connector, before proceeding with the steps below.

This article will explain how to associate the Device Fingerprint feature with the Braspag affiliation.

The settings documented in this article take place in an environment that is external to VTEX, therefore they may be outdated.

To enter the device fingerprint scripts required by Braspag/CyberSource, you will need to use Google Tag Manager. To do so, go to http://www.google.com/tagmanager and access your account.

Creation of variables (macros) and driver

  • Create a variable named trasactionPaymentId, ype Variável da camada de dados, by reading the detalayer transactionPayment.id variable.[]
    {"base64":"  ","img":{"width":1024,"height":590,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":79607,"url":"https://images.ctfassets.net/alneenqid6w5/2iGloCXR32IMAyWAKe8qWy/cf1108ad17e944adc63f189e67cfa93d/gtm-cybersource-variavel1-1.png"}}
  • Create a variable named cs_sessionId, of type JavaScript personalizado and the following code:

function() {
var transactionPaymentId = {{transactionPaymentId}}
return transactionPaymentId.toLowerCase();
}

  • Create the variables cs_orgId and cs_merchantId of type Permanente. The values of these two variables should be filled out with the contents informed by Braspag.

{"base64":"","img":{"src":"//images.contentful.com/alneenqid6w5/5EFSTIM6TCKUE4GEOA66kc/8c2f37cdd8cc94571f6f2ac72ec1d35b/gtm-cybersource-variavel3-permanente.png","width":800,"height":600,"type":"image/png"}}

  • Create or edit a driver for the orderPlaced screen (screen that shows purchases successfully closed) for it to be compatible with the Evento personalizado type and the orderPlaced value.

{"base64":"","img":{"src":"//images.contentful.com/alneenqid6w5/51IPOyaAjmowkEQ24sYyw4/7b11cddfb71c200dd1cd2c85149c7726/gtm-cybersource-acionador-orderplaced.png","width":800,"height":600,"type":"image/png"}}

Creation of a Braspag tag

  • Create a new tag of type HTML personalizado;
  • Name it according to your preference.

Fill it out with the HTML below:


<p style="background:url(https://h.online-metrix.net/fp/clear.png?org_id={{cs_orgId}}&amp;session_id={{cs_merchantId}}{{cs_sessionId}}&amp;m=1)"></p>
<img src="https://h.online-metrix.net/fp/clear.png?org_id={{cs_orgId}}&amp;session_id={{cs_merchantId}}{{cs_sessionId}}&amp;m=2" alt="">
<object type="application/x-shockwave-flash" data="https://h.online-metrix.net/fp/fp.swf?org_id={{cs_orgId}}&amp;session_id={{cs_merchantId}}{{cs_sessionId}}" width="1" height="1"id="thm_fp">
<param name="movie" value="https://h.online-metrix.net/fp/fp.swf?org_id={{cs_orgId}}&amp;session_id={{cs_merchantId}}{{cs_sessionId}}" /><div></div></object>
<script src="https://h.online-metrix.net/fp/check.js?org_id={{cs_orgId}}&amp;session_id={{cs_merchantId}}{{cs_sessionId}}" type="text/javascript"></script>

{"base64":"","img":{"width":330,"height":250,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":28832,"url":"//images.ctfassets.net/alneenqid6w5/JTnL01Ko0DMc7Pu8Bp1CQ/84f93e14dac3c4471bb1d30b09fbf62e/image.png_h_250"}}

At last, post the changes.

Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Setting the device fingerprint up for Stelo
« Previous
Setting the grace period for order cancellation
Next »
Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX community.
Join our community
Request support from VTEX
For personalized assistance, contact our experts.
Open a support ticket
GithubDeveloper portalCommunityFeedback