On my site I want to allow two parties to trade between each other without me posing as a middle man. That means that vendor would provide his own address to which a negotiated amount would be deposited. My site would only scrape the public bitcoin transaction list for given address to find out if the payment was done to trigger post processing on my site.
Since people generally reuse bitcoin addresses, checking an immediate balance will not give me a proof that transaction really came through, thus I want to parse all transactions for a given address, filter out those transactions that are older than defined time frame (assume I have timestamp of offer's creation time) and calculate the sum from the rest.
Is this a valid solution or am I missing something?