Closed iyyappanpwilco closed 3 years ago
* Get specific template arguments
*
* @return array
*/
private function getTemplateArgs(): array
{
$signer2_name = preg_replace('/([^\w \-\@\.\,])+/', '', $_SESSION['signer2_name']);
$signer2_email = preg_replace('/([^\w \-\@\.\,])+/', '', $_SESSION['signer2_email']);
$receipent_arguments =[
'signer_email' => '#### ',
'signer_name' => 'MH',
'signer_client_id' => '#### ',,
'ds_return_url' => $GLOBALS['app_url'] . 'index.php?page=ds_return',
'recipient_id' => '2',
'routing_order' => '2',
'role_name' => 'p',
];
$args = [
'account_id' => $_SESSION['ds_account_id'],
'base_path' => $_SESSION['ds_base_path'],
'ds_access_token' => $_SESSION['ds_access_token'],
'pause_envelope_id' => '#### ',
'receipent_arguments' => $receipent_arguments,
];
return $args;
}
}
Certain parts of this look like they need to be reworked - there's an extra comma next to the signer_client_id that could be causing you problems. I see that the recipient id routing order and role name are hardcoded as args for the 2nd user. The view request client user id, name, and email need to match or the view request will not work. You're sending those off to the view request that presumably generates per each user - that would mean those args need to be tailored to each user per each getRecipientViewRequest
.
also 'email' => ' '#### ',
had an extra single quote but I don't think that's your issue.
I tried to run your code but was unable to replicate your issue (and ran into my own separate unrelated issue that made it impossible to get your snippet working. Is there a specific stacktrace your getting this in relation to in the code, like a line number for this file or perhaps it leads from an error in a different file that ex 33 is using?
Closing
Hi I am using the template ID with embedded sign using the example 32 and envelope update for the 33 Kindly help me to resolve the issue this is for the envelope Update