How to create and update payments