Yeah, but that should only prevent duplicates due to technical errors, but not duplicates because the person actually made a number of distinct purchases my mistake.
Take a look also at edwinwee's answer below.
Take a look also at edwinwee's answer below.