Docusign iOS SDK直接发送信封而无需打开任何东西,也不会要求签名 [英] Docusign iOS SDK directly sending envelope without opening anything also not asking to do the signature
问题描述
我已经在docusign网站中创建了一个模板,并使用其模板ID,我从iOS SDK调用该函数。
I have created a template in docusign web and using its template id, i am calling the function from iOS SDK.
TemplatesManager.sharedInstance.displayTemplateForSignature(templateId: templateId, controller: self, tabData: tabData, recipientData: recipientData, customFields:customFields, onlineSign: onlineSign, attachmentUrl: attachmentUrl) { (controller, errMsg) in
print(errMsg)
}
我发送的收件人数据是
let recipientDatum = DSMRecipientDefault()
// Use recipient roleName (other option to use recipient-id) to find unique recipient in the template
recipientDatum.recipientRoleName = "Client"
recipientDatum.recipientSelectorType = .recipientRoleName
recipientDatum.recipientType = .inPersonSigner
// In-person-signer name
recipientDatum.inPersonSignerName = "Akshay Somkuwar"
// Host name (must match the name on the account) and email
recipientDatum.recipientName = "Akshay Somkuwar"
recipientDatum.recipientEmail = "akshay.s.somkuwar@gmail.com"
let recipientData: Array = [recipientDatum]
在docusign网站中为模板添加了相同的收件人
Same recipient is added for template in docusign website
我还为 DSMSigningCompleted
和 DSMSigningCancelled
来获取 envelopeId
。
现在当我调用此命令时函数 displayTemplateForSignature
没有打开任何窗口来显示PDF或要对PDF进行签名,而不要求签名,则将信封直接发送给收件人。
Now when i am calling this function displayTemplateForSignature
no screen is opening to show the PDF or To sign the PDF, without asking for signature, the envelope is directly sent to the recipient. and i am getting this response in console with notification.
name = DSMSigningCompletedNotification, object = Optional(<Public_Adjuster.AgreementSignViewController: 0x110bb8060>), userInfo = Optional([AnyHashable("templateId"): 506346f5-7adb-4132-b15f-d288aa268398, AnyHashable("signingMode"): online, AnyHashable("envelopeId"): 2eeeeda8-5b74-4930-904e-94b2ce6451ac])
我想为传递的 templateId
打开pdf文件,但是它既不打开pdf也不要求签名
,并将其直接发送给收件人。
I want to open the pdf for the passed templateId
but its not opening the pdf nor its asking for signature
, and its directly sent to the recipient.
任何帮助将不胜感激,谢谢您。
Any help will be appreciated, Thank you.
推荐答案
当DocuSign SDK在模板/信封中找不到任何签名者时,将触发直接发送信封的行为。与登录用户匹配。假设您使用的是 recipientDefaults
,请确保模板上的签名者信息(DocuSign网站上的预设签名者)与完全匹配帐户信息receiveDefaults
对象。
This behaviour, sending the envelope directly, is triggered when DocuSign SDK can not find any signers in the template/envelope that matches the logged-in user. Given that you are using the recipientDefaults
, ensure that your signer information on the template (preset signer on the DocuSign web) matches the Account information exactly with the recipientDefaults
object.
您可以将其与。
我注意到的一个问题是签名者类型设置为需要签名,这对应于
remoteSigner
在DocuSign网站上。在 recipientDefaults
对象上,将其设置为 inPersonSigner
。应该是 .signer
对应于 DSMRecipientTypeSigner
。
One issue I noticed is the signer type is set to need to sign
which corresponds to a remoteSigner
on the DocuSign web. And on the recipientDefaults
object it's set as inPersonSigner
. It should be .signer
corresponding to DSMRecipientTypeSigner
.
recipientDatum.recipientType = .signer
。
或者您可以将需要签名更改为
亲自签名者
在DocuSign网站上。
Or you may change the need to sign
to in person signer
on the DocuSign web.
另一个建议是删除名称
&共享了模板截图中的电子邮件
,并在客户端应用传递 name
&时保持空白。 电子邮件
和 recipientDefaults
对象发送到SDK。
Another suggestion is to remove the name
& email
from the template screenshot shared and keep that empty as the client app is passing name
& email
with the recipientDefaults
object to the SDK.
更多详细信息:< a href = https://github.com/docusign/native-ios-sdk/issues/43#issuecomment-670092132 rel = nofollow noreferrer>如何设置收件人默认值
这篇关于Docusign iOS SDK直接发送信封而无需打开任何东西,也不会要求签名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!