payment update_attribute bug changing to execute sql query