Reply
Highlighted
Member
Posts: 6
Registered: ‎03-04-2015

Java SDK, form.jsp file -- Any restrictions on the random sequence used for fingerprint creation?

The java SDK file form.jsp shown here:

 

https://github.com/AuthorizeNet/sdk-java

 

includes the following line of code...

 

    Fingerprint fingerprint = Fingerprint.createFingerprint(
        apiLoginId,
        transactionKey,
        1234567890, // random sequence used for the finger print creation

        amount);

 

Can anyonne tell me the significance of that number, 1234567890? Is this number fine to leave as it is, forever? Or, should I replace it with a 10-digit number that is randomly generated each time? Or, something else?

Highlighted
Member
Posts: 6
Registered: ‎03-04-2015

Re: Java SDK, form.jsp file -- Any restrictions on the random sequence used for fingerprint creation

Based on trail and error, it appears this must be a different number each time. In java, you can use the following to generate a random 10 digit number:

 

long random10DigitNumber = (long) Math.floor(Math.random() * 9000000000L) + 1000000000L;