PhoneAuthentication.SenderProvidedNumbers 在 DocuSign IdCheckConfigurationName 中始终为 null == "Phone Auth $"
PhoneAuthentication.SenderProvidedNumbers always null in DocuSign IdCheckConfigurationName == "Phone Auth $"
我创建了一个带有签名者的信封并设置了Phone以这种方式进行身份验证
signer.IdCheckConfigurationName = "Phone 验证 $";
收件人Phone身份验证 phoneAuthentication = 新收件人Phone身份验证
{
RecipMayProvideNumber = "真",
SenderProvidedNumbers = 新列表()
};
phoneAuthentication.SenderProvidedNumbers.Add(signerDto.SignerCountryCode + signerDto.SignerPhoneNumber);
signer.PhoneAuthentication = 电话认证;
signer.RequireIdLookup = signerDto.RequireIdLookup ? “真”:“假”;`
但是当我获取 ListRecipients - Signers- IdCheckConfigurationName == "Phone Auth $" PhoneAuthentication always null
你能说明为什么它是空的吗?
是的,所以您使用的是旧方法,需要更改为新方法。
您可以在开发者中心找到 detailed article on this topic。
看起来您正在使用 C#,C# 代码如下所示:
string workflowId = phoneAuthWorkflow.WorkflowId;
EnvelopeDefinition env = new EnvelopeDefinition()
{
EnvelopeIdStamping = "true",
EmailSubject = "Please Sign",
EmailBlurb = "Sample text for email body",
Status = "Sent"
};
byte[] buffer = System.IO.File.ReadAllBytes(docPdf);
// Add a document
Document doc1 = new Document()
{
DocumentId = "1",
FileExtension = "pdf",
Name = "Lorem",
DocumentBase64 = Convert.ToBase64String(buffer)
};
// Create your signature tab
env.Documents = new List<Document> { doc1 };
SignHere signHere1 = new SignHere
{
AnchorString = "/sn1/",
AnchorUnits = "pixels",
AnchorXOffset = "10",
AnchorYOffset = "20"
};
// Tabs are set per recipient/signer
Tabs signer1Tabs = new Tabs
{
SignHereTabs = new List<SignHere> { signHere1 }
};
string workflowId = workflowId;
RecipientIdentityVerification workflow = new RecipientIdentityVerification()
{
WorkflowId = workflowId,
InputOptions = new List<RecipientIdentityInputOption> {
new RecipientIdentityInputOption
{
Name = "phone_number_list",
ValueType = "PhoneNumberList",
PhoneNumberList = new List<RecipientIdentityPhoneNumber>
{
new RecipientIdentityPhoneNumber
{
Number = phoneNumber,
CountryCode = countryAreaCode,
}
}
}
}
};
Signer signer1 = new Signer()
{
Name = signerName,
Email = signerEmail,
RoutingOrder = "1",
Status = "Created",
DeliveryMethod = "Email",
RecipientId = "1", //represents your {RECIPIENT_ID},
Tabs = signer1Tabs,
IdentityVerification = workflow,
};
Recipients recipients = new Recipients();
recipients.Signers = new List<Signer> { signer1 };
env.Recipients = recipients;
我创建了一个带有签名者的信封并设置了Phone以这种方式进行身份验证
signer.IdCheckConfigurationName = "Phone 验证 $"; 收件人Phone身份验证 phoneAuthentication = 新收件人Phone身份验证 { RecipMayProvideNumber = "真", SenderProvidedNumbers = 新列表() }; phoneAuthentication.SenderProvidedNumbers.Add(signerDto.SignerCountryCode + signerDto.SignerPhoneNumber); signer.PhoneAuthentication = 电话认证; signer.RequireIdLookup = signerDto.RequireIdLookup ? “真”:“假”;`
但是当我获取 ListRecipients - Signers- IdCheckConfigurationName == "Phone Auth $" PhoneAuthentication always null
你能说明为什么它是空的吗?
是的,所以您使用的是旧方法,需要更改为新方法。 您可以在开发者中心找到 detailed article on this topic。 看起来您正在使用 C#,C# 代码如下所示:
string workflowId = phoneAuthWorkflow.WorkflowId;
EnvelopeDefinition env = new EnvelopeDefinition()
{
EnvelopeIdStamping = "true",
EmailSubject = "Please Sign",
EmailBlurb = "Sample text for email body",
Status = "Sent"
};
byte[] buffer = System.IO.File.ReadAllBytes(docPdf);
// Add a document
Document doc1 = new Document()
{
DocumentId = "1",
FileExtension = "pdf",
Name = "Lorem",
DocumentBase64 = Convert.ToBase64String(buffer)
};
// Create your signature tab
env.Documents = new List<Document> { doc1 };
SignHere signHere1 = new SignHere
{
AnchorString = "/sn1/",
AnchorUnits = "pixels",
AnchorXOffset = "10",
AnchorYOffset = "20"
};
// Tabs are set per recipient/signer
Tabs signer1Tabs = new Tabs
{
SignHereTabs = new List<SignHere> { signHere1 }
};
string workflowId = workflowId;
RecipientIdentityVerification workflow = new RecipientIdentityVerification()
{
WorkflowId = workflowId,
InputOptions = new List<RecipientIdentityInputOption> {
new RecipientIdentityInputOption
{
Name = "phone_number_list",
ValueType = "PhoneNumberList",
PhoneNumberList = new List<RecipientIdentityPhoneNumber>
{
new RecipientIdentityPhoneNumber
{
Number = phoneNumber,
CountryCode = countryAreaCode,
}
}
}
}
};
Signer signer1 = new Signer()
{
Name = signerName,
Email = signerEmail,
RoutingOrder = "1",
Status = "Created",
DeliveryMethod = "Email",
RecipientId = "1", //represents your {RECIPIENT_ID},
Tabs = signer1Tabs,
IdentityVerification = workflow,
};
Recipients recipients = new Recipients();
recipients.Signers = new List<Signer> { signer1 };
env.Recipients = recipients;