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?
03-05-2015 07:54 AM
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;
03-05-2015 01:31 PM