Coder Social home page Coder Social logo

Comments (15)

chandru9279 avatar chandru9279 commented on August 15, 2024 1

Thank you.
In the end, this was solved for me by using the DF tags (Device fingerprint Tag - its a tiny javascript include).
Using the same session ID

  1. when including the DF tag (in the web UI), and
  2. when making the payment call
    helped to fix my issue. The session id helps CYBS to correlate the fingerprint that was generated by the DF tag, and the backend REST api calls we make.

from cybersource-rest-client-node.

chandru9279 avatar chandru9279 commented on August 15, 2024

I hit this as well. @francisbrito any updates? Did you close because it was solved?

from cybersource-rest-client-node.

francisbrito avatar francisbrito commented on August 15, 2024

@chandru9279 I'm afraid not. I ended up closing the issue due to lack of response.

I ended up sticking to Simple Order API + Checkout API for authorizations and tokenizations, respectively.

from cybersource-rest-client-node.

nanettaboadafriass avatar nanettaboadafriass commented on August 15, 2024

Hello I have the same problem, I already added the DF scripts and I am sending the session_id in fingerprintSessionId using api rest from cybersource, in the transaction management panel I still get the fingerprint was not sent

from cybersource-rest-client-node.

chandru9279 avatar chandru9279 commented on August 15, 2024

when adding the DF script, did you add the same ID in the url
<script type='.....' src='......?sessionid={exactmatchingsessionid}>

from cybersource-rest-client-node.

nanettaboadafriass avatar nanettaboadafriass commented on August 15, 2024

I have added these scripts
inside the head tag:
<script type="text/javascript" src="https://h.online-metrix.net/fp/tags.js?org_id={{$df_org_id}}&session_id={{$merchant_id}}{{$session_id}}"></script>
and inside the body tag:

<noscript>
 <iframe style="width: 100px; height: 100px; border: 0; position:absolute; top: -5000px;" 
src="https://h.online-metrix.net/fp/tags?org_id={{$df_org_id}}&session_id={{$merchant_id}}{{$session_id}}"></iframe>
 </noscript>

As indicated by the cybersource documentation
Using the cybersource API specifically in the payment process, I make a request using ajax from the view that contains the fingerprint scripts
https://apitest.cybersource.com/pts/v2/payments
and sending the following information

{
  "clientReferenceInformation": {
    "code": "54323007"
  },
  "paymentInformation": {
    "card": {
      "number": "4444444444444448",
      "expirationMonth": "12",
      "expirationYear": "2020"
    }
  },
  "orderInformation": {
    "amountDetails": {
      "totalAmount": "144.14",
      "currency": "USD"
    },
    "billTo": {
      "firstName": "James",
      "lastName": "Smith",
      "address1": "96, powers street",
      "locality": "Clearwater milford",
      "administrativeArea": ​​"NH",
      "postalCode": "03055",
      "country": "US",
      "email": "[email protected]",
      "phoneNumber": "7606160717"
    }
  },
  "deviceInformation": {
    "hostName": "host.com",
    "ipAddress": "64.124.61.215",
    "userAgent": "Chrome",
    "fingerprintSessionId": "xxxxxxxxxxxxxxxxxxxxxx",
    "httpBrowserEmail": "[email protected]"
  }
}

I have an input with the same data that I build my DF script
<input type="hidden" name="fingerprintSessionId" value="{{$merchant_id}}{{$session_id}}">

in fingerprintSessionId I already tried sending only $session_id and also {{$merchant_id}}{{$session_id}} together, even in cybersource transaction panel in continuous fingerprint not submited.

I am using the php sdk that has cybersource in github, the ajax request goes directly to my controller, maybe the $session_id is not sent in fingerprintSessionId of the API....

from cybersource-rest-client-node.

chandru9279 avatar chandru9279 commented on August 15, 2024

Seems like u are doing everything right. The script tag should have both {{$merchant_id}}{{$session_id}} and the input hidden and subsequent call to payments api should have just the {{$session_id}}. If all this is correct.. perhaps you have a different org id that you need to use. (Its normal to have different orgid between prod and test) Cybersource is not able to find the session, using ur session id.. hence no fingerprint appears. It may be looking in the wrong org

from cybersource-rest-client-node.

nanettaboadafriass avatar nanettaboadafriass commented on August 15, 2024

I still can't find a solution to this issue, looking at the api rest documentation from cybersource I saw in deviceInformation, there is an array called rawData that should be sent with data from the fingerprint.

  "deviceInformation": {
     "hostName": "",
     "ipAddress": "",
     "userAgent": "",
     "fingerprintSessionId": "",
     "rawData": [
       {
         "data": "",
         "provider": ""
       }]
}

Regarding the assembly of the DF, the ORG_ID varies according to the environment.
1snn5n9w | sandbox
k8vif92e | production

from cybersource-rest-client-node.

francisbrito avatar francisbrito commented on August 15, 2024

@nanettaboadafriass could you please confirm if device fingerprinting is enabled in your CyberSource profile? If you do not have access to the profile configuration, ask your integration assistant to check for you.

If DF is enabled, could you please confirm if the DF script is been loaded and executed correctly? You can verify this by having a look at the network and console activity in your preferred browser.

If both these look OK, I'd suggest you scale the situation to your integration assistant, and if possible, open a debug session with them. That way they can indicate whether the DF is being received or not by CYBS servers.

from cybersource-rest-client-node.

nanettaboadafriass avatar nanettaboadafriass commented on August 15, 2024

@francisbrito Thank you very much, I managed to solve the problem in short the org_id was the problem, cybersource a few weeks ago I updated the credentials.

from cybersource-rest-client-node.

francisbrito avatar francisbrito commented on August 15, 2024

I'm happy to hear your issue was solved @nanettaboadafriass.

from cybersource-rest-client-node.

pedrouci92 avatar pedrouci92 commented on August 15, 2024

Could you share your answer? I have exactly the same problem you had

from cybersource-rest-client-node.

nanettaboadafriass avatar nanettaboadafriass commented on August 15, 2024

The problem was configuring the fingerprint script with the wrong org_id, I spoke to the cybersource providers in my country and they gave me an updated org_id and it worked for me, remember that there are two types of org_id one for test and one for production, check that the fingerprint script is loading correctly in your browser in the network section of the development console

from cybersource-rest-client-node.

bnapky avatar bnapky commented on August 15, 2024

@nanettaboadafriass

1snn5n9w | sandbox
k8vif92e | production

Are these the org_id values you used in the end or do you mean they gave you other values?

from cybersource-rest-client-node.

andeanbiz avatar andeanbiz commented on August 15, 2024

Thank you.
In the end, this was solved for me by using the DF tags (Device fingerprint Tag - its a tiny javascript include).
Using the same session ID

  1. when including the DF tag (in the web UI), and
  2. when making the payment call
    helped to fix my issue. The session id helps CYBS to correlate the fingerprint that was generated by the DF tag, and the backend REST api calls we make.

Anyone that can help me with fingerprint generation? My Skype andeanbizz

from cybersource-rest-client-node.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.