How to save and complete a transaction later