Merge the duplicate records and then apply the payment to the charge