The program will check for an existing payment once the dollar amount and reference number is entered. A message will appear showing the details of the existing payment. Only the dollar amount and reference number are used to check for duplicates.