added framework for payments