generalize paypal template for classeses and events