Payslips are a record of how much an employee has been paid, and a way to track any deductions from their pay (such as through salary sacrifice schemes or tax).
In the past, payslips were always printed on paper, but more companies are switching to a paperless system for extra convenience and to help reduce their environmental impact. Either way, the information it must include is the same.