Docusign嵌入式签名 - 处理成功签名的回调 [英] Docusign Embedded Signing - Handling Callback for successful signing

查看:362
本文介绍了Docusign嵌入式签名 - 处理成功签名的回调的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个基于 AngularJS 的网站,该网站与在 Django / Python 上创建的API进行交互。

I am developing a website based on AngularJS which interact with API's made on Django/Python.

我有一个 iframe ,它使用 Docusign的嵌入式签名写在 Python

I have an iframe which uses Docusign's Embedded Signing written on Python.

我知道 returnUrl 和查询参数它有。但是我想要成功完成的是关闭(从DOM中移除) iframe
任何人都可以帮我解决这个问题吗?

I know about returnUrl and the query parameters it has. But what I'm trying to achieve is to close(remove from DOM) the iframe on successful completion. Can anyone help me on how to go about on this?

推荐答案

我不确定您正在使用的技术的实现细节,但也许您可以在ASP.NET应用程序中实现类似于我以前所做的方法:

I'm not sure about implementation specifics with the technologies you're using, but perhaps you can implement a similar approach to what I've done before in an ASP.NET app:


  1. 在对DocuSign的POST收件人视图API请求中,指定 returnUrl 属性以指定DocuSign应重定向到的位置完成 - 在我的示例中,我将此页面称为 DSComplete.aspx 。因此,当DocuSign会话结束时,iFrame内容将呈现 DSComplete.aspx

  1. In the "POST Recipient View" API request to DocuSign, specify returnUrl property to specify where DocuSign should redirect to upon completion -- in my example, I'll call this page DSComplete.aspx. So, when the DocuSign session concludes, the iFrame content will render DSComplete.aspx.

DSComplete.aspx ,然后我使用JavaScript立即将内容页面(即iframe的父页面)重定向到另一个目的地 - 在我的示例中,我们称之为目标 DSResults.aspx 。这就是让我们离开iFrame,回到另一个常规/非iFrame页面的原因。我还将来自DocuSign的完整查询字符串(作为重定向URL的一部分)传递给returnUrl页面:

In DSComplete.aspx, I then use JavaScript to immediately redirect the "content page" (i.e., the parent page of the iframe) to another destination -- in my example, let's call that destination DSResults.aspx. This is what gets us out of the iFrame, and back into just another regular/non-iFrame page. I also pass along (as part of the redirect URL) the full querystring that came from DocuSign to the returnUrl page:

ClientScript.RegisterStartupScript(GetType(),Load ,window.parent.location.href ='DSResults.aspx?+ Request.QueryString.ToString()+';);

ClientScript.RegisterStartupScript(GetType(), "Load", "window.parent.location.href = 'DSResults.aspx?" + Request.QueryString.ToString() + "'; ");

最后,在 DSResults.aspx 中,我评估查询字符串参数(尤其是DocuSign用于指定嵌入式会话结果的事件参数),并采取适当的措施(即显示)根据签名会议的结果等对用户进行适当的消息传递。)。

Finally, in DSResults.aspx, I evaluate querystring parameters (especially the event parameter that DocuSign used to specify the outcome of the embedded session), and take appropriate action (i.e., display appropriate messaging to the user according to the outcome of the signing session, etc.).

所以,无论什么您正在使用的语言,关键是 returnUrl 页面需要立即将内容页面(即iFrame的父页面)重定向到另一个常规/非iFrame页面(通过设置窗口 .parent.location.href使用上面#2中描述的JavaScript,然后是其他pag e实际上是对事件查询字符串参数等的评估(上面的#3)。

So, regardless of what language you're using, the key is really that the returnUrl page needs to immediately redirect the content page (i.e., parent page of the iFrame) to another regular/non-iFrame page (by setting "window.parent.location.href" using JavaScript as described in #2 above), and then that other page actually does the evaluation of the event querystring parameter, etc. (#3 above).

这篇关于Docusign嵌入式签名 - 处理成功签名的回调的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆