Payment is a credit because it increases the asset (cash) and decreases the liability (accounts payable).