payment function complete