DocuSignAPI嵌入式签名重定向URL

时间:2017-10-31 12:26:12

标签: php wordpress docusignapi

我已经在WordPress中集成了DocuSignAPI,它也运行良好但是一旦签名完成页面没有正确重定向。它在iframe中显示。我想将页面重定向到iframe。

我使用了EmbeddedSigning.php中的相同代码。

我的重定向页面代码是:

 // instantiate a RecipientViewRequest object
$recipient_view_request = new \DocuSign\eSign\Model\RecipientViewRequest();

// set where the recipient is re-directed once they are done signing
$recipient_view_request->setReturnUrl("https://www.docusign.com/develcenter");

// configure the embedded signer 
$recipient_view_request->setUserName($recipientName);
$recipient_view_request->setEmail($recipientEmail);

// must reference the same clientUserId that was set for the recipient when they 
// were added to the envelope in step 2

$recipient_view_request->setClientUserId("1234");

// used to indicate on the certificate of completion how the user authenticated
$recipient_view_request->setAuthenticationMethod("email");

// generate the recipient view! (aka embedded signing URL)
$signingView = $envelopeApi->createRecipientView($accountId, $envelop_summary->getEnvelopeId(), $recipient_view_request);
echo "Signing URL = " . $signingView->getUrl() . "\n";

但是网页没有正确重定向,它仍然显示在iframe中。

那么如何将页面重定向到iframe?

0 个答案:

没有答案