The process by which plant cells convert light from the sun into adenosine triphosphate (ATP), a source of energy for the cell.