Debit and Credit not equal for Payment Entry Bug

For me it was a missing entries in Party Type. These are type to Account Types

This was my problem as well. Info on how I had to fix it here.