Please follow the links on how to create a custom field and make it available on the form.
How to add custom fields on a web form
How to make a custom field visible on public web forms
Then add the custom field to the field set on the Payment Item Object->Field Set->externalMemberDetails