public static TemplateRole addPhoneAuthToRecipient(TemplateRole templateRole, string phonenumber) { var phoneList = new List <string> { phonenumber }; var phoneAuth = new RecipientPhoneAuthentication(); phoneAuth.SenderProvidedNumbers = phoneList; phoneAuth.RecipMayProvideNumber = "true"; phoneAuth.RecordVoicePrint = "true"; return(templateRole); }
public static Signer addPhoneAuthToRecipient(Signer recipient, string phonenumber) { // Not enabled in demo recipient.RequireIdLookup = "true"; recipient.IdCheckConfigurationName = "Phone Auth $"; var phoneList = new List <string> { phonenumber }; var phoneAuth = new RecipientPhoneAuthentication(); phoneAuth.SenderProvidedNumbers = phoneList; phoneAuth.RecipMayProvideNumber = "true"; phoneAuth.RecordVoicePrint = "true"; recipient.PhoneAuthentication = phoneAuth; return(recipient); }