简体   繁体   English

Webhook通知仅对嵌入式签名附加“事件”

[英]Webhook Notifications Only Append “event” For Embedded Signing

Our application implements both the local/embedded signing and the non-embedded emailed signing, using Docusign's own "eSign client" SDK. 我们的应用程序使用Docusign自己的“ eSign客户端” SDK来实现本地/嵌入式签名和非嵌入式电子邮件签名。 I always include envelope- and recipient-level event notifications and rely on the webhooks to tell me what happened. 我总是包括信封级和收件人级的事件通知,并依靠网络鸣叫告诉我发生了什么。 The "embedded" version always appends something like "&event=cancel" to the callback URL I set in the envelope definition, but the remote version never does; “嵌入式”版本始终将类似“&event = cancel”的内容附加到我在信封定义中设置的回调URL中,但是远程版本从不添加; it only sends back the exact callback URL I sent to it. 它只会发回我发送它的确切回调URL。 There is, therefore, no way at all to tell what the signer did if the document was emailed to them to be signed. 因此,如果通过电子邮件将文档发送给签名者,则根本无法告诉签名者做了什么。

How do I make it append the "event" to the query string for remote signing like it does for local? 我如何像在本地一样将“事件”附加到查询字符串中以进行远程签名?

You're mixing apples and oranges: 您正在混合苹果和橙子:

  1. When you use the embedded signing feature, you supply a url. 使用嵌入式签名功能时,将提供一个URL。 When the recipient has completed their action, your url is re-directed to with an event query parameter. 收件人完成其操作后, 使用event查询参数您的网址重定向到 This mechanism is not webhooks or eventNotification . 此机制不是 webhooks或eventNotification Rather, it enables your app to regain control of the signer's browser after they've completed their embedded session with DocuSign. 相反,它可以使您的应用在签署者完成与DocuSign的嵌入式会话之后,重新获得对其签名者浏览器的控制。

  2. eventNotification creates a webhook (Connect) subscription for just that envelope. eventNotification仅为该信封创建eventNotification (连接)订阅。 When an event occurs, your app receives a POST request from DocuSign. 发生事件时,您的应用程序会收到来自DocuSign的POST请求。 That request's body includes an XML file with lots of information on the new status of the envelope. 该请求的主体包括一个XML文件,其中包含有关信封的新状态的大量信息。

  3. You can include an eventNotification object when you're doing embedded signing. 进行嵌入式签名时,可以包括一个eventNotification对象。 In this case, your app would be re-directed to after the embedded session completes. 在这种情况下,嵌入式会话完成后,您的应用将被重定向到。 A bit later you'll receive a POST from the eventNotification (Connect webhook) system 稍后,您将从eventNotification(Connect webhook)系统收到POST

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM