Cleanup Process Purchase Function