You find a very good treatment on this in both
Landau, Lifshitz, Course on Theoretical Physics, Vol 4 (although not my preferred source to learn QED in the beginning, because it's pretty old-fashioned concerning the methods, but it's great for the applications treated there)
S. Weinberg, Quantum Theory of Fields, Vol. 1