[docusign]嵌入的签名无法正常显示签名页面 [英] [docusign]Embedded signature cannot display the signature page normally

查看:174
本文介绍了[docusign]嵌入的签名无法正常显示签名页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的要求是:在网站上,用户可以单击[我们]平台上的签名按钮直接弹出要签名的文档并在该文档上签名

my requirement is: on the website, users can click the sign button on the [Our] platform to directly pop up the document to be signed and sign on the document

目前,根据DocuSign嵌入式发送和签名文档,我们使用JWT +管理员授权方法来获取访问权限_用户可以通过文档 信封视图:创建收件人",

At present, according to the DocuSign embedded sending and signing document, we use JWT + admin authorization method to obtain access_ The user can open and sign the document URL through the document "envelopeviews: create recipient",

问题:

如果我们直接复制DocuSign URL并在浏览器中打开它,则该页面将正确显示要签名的文档页面。如果签名URL嵌入在平台网页中,DocuSign将直接重定向到" envelopeviews:createrecipient 提交returnurl地址,参数event = send

If we directly copy the DocuSign URL and open it in the browser, the page will correctly display the document page to be signed. If the signature URL is embedded in the platform web page, DocuSign will directly redirect to the "envelopeviews: createrecipient" to submit the returnurl address, and the parameter event = send

我做错了什么

这里有一些详细信息:

        List<Signers> signersList = new ArrayList<>();
        signersList.add(signers);
        signersList.add(signers1);
        Recipients recipients = new Recipients();
        recipients.setSigners(signersList);
        dataJson.put("documents",docsignDocumentList);
        dataJson.put("emailSubject",propertyName);
        dataJson.put("recipients",recipients);
        dataJson.put("status","sent");
        String data = dataJson.toJSONString();
        String envelopesJson = HttpDocusignUtils.httpPostJson("https://demo.docusign.net/restapi/v2.1/accounts/xxxx/envelopes",access_token,data);
        log.info("envelopesJson:{}",envelopesJson);
       

        JSONObject json_test = JSONObject.parseObject(envelopesJson);
        String envelopeId=json_test.get("envelopeId").toString();
        log.info("envelopeId:{}",envelopeId);


        String Url="https://xxxxxx.com/?propertyId={propertyIdTemp}".replace("{propertyIdTemp}",propertyId);


        JSONObject recipient_data = new JSONObject();
        recipient_data.put("userName",signers.getName());
        recipient_data.put("email",signers.getEmail());
        recipient_data.put("recipientId","1");
        recipient_data.put("clientUserId","2");
        recipient_data.put("authenticationMethod","None");
        recipient_data.put("returnUrl",Url);

        System.out.println("sender_data==========="+recipient_data.toJSONString());
        String results_recipient = HttpDocusignUtils.httpPostJson("https://demo.docusign.net/restapi/v2.1/accounts/xxxx/envelopes/{envelopeIdTemp}/views/sender".replace("{envelopeIdTemp}",envelopeId),access_token,recipient_data.toJSONString());
        JSONObject results_senderJson = JSONObject.parseObject(results_recipient);


推荐答案

是的,这是两个不同的端点。一个用于发送者,一个用于接收者(签名者)。
不论哪种情况,它都是您可以在应用程序中使用的嵌入式视图。然后,您在签名(或发送)完成后指定重定向的位置。

Yes, these are two different endpoints. One for the sender and one for a recipient (signer). In either case, it's the embedded view that you can use from your app. You then specify where to redirect once signing (or sending) is complete.

这篇关于[docusign]嵌入的签名无法正常显示签名页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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