finalizing payment work