The energy supplier agrees to pay after it failed to issue credit to customers cancelling contracts.