Exact solutions of the Klein-Gordon equation for a charged particle in the presence of three spatially varying electromagnetic fields, namely,2x 3 , are studied. All these fields are generated from a systematic study of a particular type of differential equation whose coefficients are linear in independent variable. The Laplace transform approach is used to find the solutions and the corresponding eigenfunctions are expressed in terms of the hypergeometric functions 1 F 1 (a ′ , b ′ ; x) for first two cases of the above configurations while the same are expressed in terms of the Bessel functions of first kind, J n (x), for the last case.