It depends on the method of accounting followed.
In cash basis, only payment entry is passed.
In accrual basis, normally two entries are passed - for due and for payment, if both events occur on different dates. Else, you can pass only payment entry if paid on due date.