Integration and Testing

Authorize.Net API questions and help with your payment integration.

Reply
Member
Posts: 5
Registered: ‎02-11-2012
Accepted Solution

Silent Post best practices question

Programming Languages:  ASP.net, VB.net

 

Afternoon All!

 

In my silent post listener, I am generating a random number to append to the file name of my received post data to make the name unique when saving.  That seems to work for the most part, however, it seems that on occasion when I receive multiple posts at the same time, I have two files that get the same random number (resulting in the same file name) and the second overwrites the first.  I am thinking about replacing the random number generator with a Guid.NewGuid() reference, but I thought I would check with the Developer Community first to see if anyone has a better solution.

 

Any thoughts?

 

Thanks!

 

Josh


Accepted Solutions
Solution
Accepted by topic author sasartiglia
‎08-21-2015 01:58 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Silent Post best practices question

The return transaction ID and authorization code should be unique.

View solution in original post


All Replies
Solution
Accepted by topic author sasartiglia
‎08-21-2015 01:58 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Silent Post best practices question

The return transaction ID and authorization code should be unique.

Member
Posts: 5
Registered: ‎02-11-2012

Re: Silent Post best practices question

I'm overthinking things as usual.  Thanks!