process_invitation method