Katya said that you should save the value from the scan and then pass it to another service to get product information or anything else you need to do. That's exactly what I have been saying above.
The barcode scanner only knows how to scan. It doesn't do anything else. It's up to you to add logic to do something with the value that you get. It's like the camera in your phone -- it only takes pictures. You can then email the picture or upload the picture to Facebook, etc.