Я пытаюсь создать несколько документов и получаю полный документ в массиве envelop_definition, но когда он сгенерирует конверт docusign, он показывает только первый.
Что мне нужно сделатьэто?
Я использую код ниже для нескольких документов.
$docs = array();
$b=1;
foreach ($fileArray as $key => $file) {
// Add a document to the envelope
$document = new DocuSign\eSign\Model\Document();
$document->setDocumentBase64(base64_encode(file_get_contents($file)));
$document->setName('Document '.$b);
$document->setDocumentId($b);
$document->setOrder($b);
$docs[] = $document;
# code...
$b++;
}
$envelop_definition->setDocuments($docs);
$envelop_definition->setTemplateRoles($all_template_roles);
// send notification about status change
$envelop_definition->setEventNotification($event_notification);
// set envelope status to "sent" to immediately send the signature request
$envelop_definition->setStatus("sent");
$envelopeApi->createEnvelope($accountId, $envelop_definition, $options);
, но получаю только первый документ.