add payments functionality