If the Total Amount Paid field owing is added after all txns are created (payment, refund, etc), it needs at least one txn to go through the matching process to update that field on the opportunity.
Change any related txn to Matching Start, and when it goes to Matching Complete the field will update. Only one txn is required to do this step, not all related txns.