initial paypal controller and defined constructor function