Any payments that are not outstanding will sync over.
If you delete / refund a payment, that will be reflected in QuickBooks.
If you’ve created a payment in QuickBooks first, then record the payment, it will attempt to “match up” those payments if it can. If it cannot, it will record an error.