Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Synchronize the CheckRepeatTransactions

 
Post new topic   Reply to topic    Infralution Support Forum Index -> IPN.NET Support
View previous topic :: View next topic  
Author Message
marco



Joined: 27 Nov 2006
Posts: 11
Location: Los Angeles

PostPosted: Fri Dec 08, 2006 11:24 pm    Post subject: Synchronize the CheckRepeatTransactions Reply with quote

I received two activation keys when a user checked out. I think you have to synchronize the check on the log file with the actual writing to the log file.

The two activation keys were generated wit the same time stamp (but there must be some miliseconds difference):



// have we already processed this transaction
//
lock (synchObject) {
if (settings.CheckRepeatTransactions)
{
if (File.Exists(logPath))
{
Trace.Write("Log File Exists => finish");
return false;
}
}
logFile = logPath;
log = new XmlTextWriter(logFile, Encoding.Unicode);
log.Formatting = Formatting.Indented;
log.WriteStartDocument();
log.WriteStartElement("Payment");
}
return true;
Back to top
View user's profile Send private message Visit poster's website
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Sun Dec 10, 2006 9:50 pm    Post subject: Reply with quote

Are you saying that this situation (receiving two real PayPal posts within milliseconds) actually occurred in reality? The main intention of the repeat transaction checking is to avoid the possibility of a customer resubmitting the PayPal data to (potentially) obtain a second license key.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> IPN.NET Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group